diff options
author | Albin Suresh <albin.suresh@softwareag.com> | 2022-02-25 19:22:54 +0530 |
---|---|---|
committer | Albin Suresh <albin.suresh@softwareag.com> | 2022-03-11 12:40:05 +0530 |
commit | 77408c75a7f62a80a9d6a43e9757d9980e845798 (patch) | |
tree | 36778779830abc657f1250d7cb8354d48c5dc823 /tests | |
parent | 122670b6553b1070f0914b32d1401613a7250577 (diff) |
Rename message field to text in Thin Edge JSON alarms payload
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PySys/tedge_mapper_c8y/tedge_mapper_c8y_alarms/run.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/PySys/tedge_mapper_c8y/tedge_mapper_c8y_alarms/run.py b/tests/PySys/tedge_mapper_c8y/tedge_mapper_c8y_alarms/run.py index fd3c5d0b..337f5d32 100644 --- a/tests/PySys/tedge_mapper_c8y/tedge_mapper_c8y_alarms/run.py +++ b/tests/PySys/tedge_mapper_c8y/tedge_mapper_c8y_alarms/run.py @@ -23,13 +23,13 @@ class TedgeMapperC8yAlarm(EnvironmentC8y): # Pysys seems to print and record the environment it will also print passwords in the env # Solution: only inject the variables we really need - environ={ 'HOME':os.environ.get('HOME')} + environ = {'HOME': os.environ.get('HOME')} self.startProcess( command=self.tedge, arguments=["mqtt", "pub", "-r", "tedge/alarms/warning/temperature_high", - '{"message":"temperature is high", "time":"2021-12-15T15:22:06.464247777+05:30"}'], + '{"text":"temperature is high", "time":"2021-12-15T15:22:06.464247777+05:30"}'], environs=environ ) @@ -38,7 +38,7 @@ class TedgeMapperC8yAlarm(EnvironmentC8y): command=self.tedge, arguments=["mqtt", "pub", "-r", "tedge/alarms/major/temperature_very_high", - '{"message":"temperature is very high"}'], + '{"text":"temperature is very high"}'], environs=environ ) @@ -47,7 +47,7 @@ class TedgeMapperC8yAlarm(EnvironmentC8y): command=self.tedge, arguments=["mqtt", "pub", "-r", "tedge/alarms/critical/temperature_dangerous", - '{"message":"temperature is dangerously high"}'], + '{"text":"temperature is dangerously high"}'], environs=environ ) @@ -56,7 +56,7 @@ class TedgeMapperC8yAlarm(EnvironmentC8y): command=self.tedge, arguments=["mqtt", "pub", "-r", "tedge/alarms/minor/temperature_low", - '{"message":"temperature low"}'], + '{"text":"temperature low"}'], environs=environ ) |