aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/dcaegen2/testcases/resources/DcaeVariables.py
diff options
context:
space:
mode:
authorMariusz Wagner <mariusz.wagner@nokia.com>2018-09-14 14:24:02 +0200
committerMariusz Wagner <mariusz.wagner@nokia.com>2018-09-14 14:24:02 +0200
commit831baffde96cd7f644375a2e24f3c39fdd2b7616 (patch)
tree69d5a90cbac279c40afd4bffc928dffebda6f8eb /test/csit/tests/dcaegen2/testcases/resources/DcaeVariables.py
parent856c8b960d127d1a425c70070c92406f9239c831 (diff)
Added keyword to common.robot
- add new keyword to read files in common.robot - fix one keyword in common.robot - used new keyword in PRH suite - use new keyword in dcaegen2 suite Issue-ID: INT-661 Change-Id: I36cd2d5b82a20938a7b0775c9792dc2364a21922 Signed-off-by: Mariusz Wagner <mariusz.wagner@nokia.com>
Diffstat (limited to 'test/csit/tests/dcaegen2/testcases/resources/DcaeVariables.py')
-rw-r--r--test/csit/tests/dcaegen2/testcases/resources/DcaeVariables.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/csit/tests/dcaegen2/testcases/resources/DcaeVariables.py b/test/csit/tests/dcaegen2/testcases/resources/DcaeVariables.py
index 4d51a8f5a..a9456d0fa 100644
--- a/test/csit/tests/dcaegen2/testcases/resources/DcaeVariables.py
+++ b/test/csit/tests/dcaegen2/testcases/resources/DcaeVariables.py
@@ -1,13 +1,14 @@
+import os
-import os, time
-def GetEnvironmentVariable(envVarstr):
- return os.environ.get(envVarstr)
+def get_environment_variable(env_varstr):
+ return os.environ.get(env_varstr)
+
DCAE_HEALTH_CHECK_URL = "http://135.205.228.129:8500"
DCAE_HEALTH_CHECK_URL1 = "http://135.205.228.170:8500"
-CommonEventSchemaV5 = GetEnvironmentVariable('WORKSPACE') + "/test/csit/tests/dcaegen2/testcases/assets/json_events/CommonEventFormat_28.3.json"
+CommonEventSchemaV5 = get_environment_variable('WORKSPACE') + "/test/csit/tests/dcaegen2/testcases/assets/json_events/CommonEventFormat_28.3.json"
HttpServerThread = None
HTTPD = None