Update VES Collector CSIT
Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com>
Change-Id: I6dd9d36a7bddbbc3d0d99b72d990907e3fe87b1b
Issue-ID: DCAEGEN2-2182
diff --git a/tests/dcaegen2/testcases/resources/DMaaP.py b/tests/dcaegen2/testcases/resources/DMaaP.py
index 779397e..500afd5 100644
--- a/tests/dcaegen2/testcases/resources/DMaaP.py
+++ b/tests/dcaegen2/testcases/resources/DMaaP.py
@@ -119,7 +119,7 @@
global EvtSchema
try:
if EvtSchema is None:
- with open(DcaeVariables.CommonEventSchemaV5) as opened_file:
+ with open(DcaeVariables.CommonEventSchema) as opened_file:
EvtSchema = json.load(opened_file)
decoded_body = json.loads(post_body)
jsonschema.validate(decoded_body, EvtSchema)
@@ -368,8 +368,8 @@
def test(handler_class=DMaaPHandler, server_class=BaseHTTPServer.HTTPServer, protocol="HTTP/1.0", port=3904):
- print "Load event schema file: " + DcaeVariables.CommonEventSchemaV5
- with open(DcaeVariables.CommonEventSchemaV5) as opened_file:
+ print "Load event schema file: " + DcaeVariables.CommonEventSchema
+ with open(DcaeVariables.CommonEventSchema) as opened_file:
global EvtSchema
EvtSchema = json.load(opened_file)
@@ -394,8 +394,8 @@
else:
port = 3904
- print "Load event schema file: " + DcaeVariables.CommonEventSchemaV5
- with open(DcaeVariables.CommonEventSchemaV5) as opened_file:
+ print "Load event schema file: " + DcaeVariables.CommonEventSchema
+ with open(DcaeVariables.CommonEventSchema) as opened_file:
global EvtSchema
EvtSchema = json.load(opened_file)
diff --git a/tests/dcaegen2/testcases/resources/DcaeVariables.py b/tests/dcaegen2/testcases/resources/DcaeVariables.py
index ac1eb9f..84d06ae 100644
--- a/tests/dcaegen2/testcases/resources/DcaeVariables.py
+++ b/tests/dcaegen2/testcases/resources/DcaeVariables.py
@@ -8,7 +8,7 @@
DCAE_HEALTH_CHECK_URL = "http://135.205.228.129:8500"
DCAE_HEALTH_CHECK_URL1 = "http://135.205.228.170:8500"
-CommonEventSchemaV5 = get_environment_variable('WORKSPACE') + "/tests/dcaegen2/testcases/assets/json_events/CommonEventFormat_28.3.json"
+CommonEventSchema = get_environment_variable('WORKSPACE') + "/tests/dcaegen2/testcases/assets/json_events/CommonEventFormat_30.1.1.json"
HttpServerThread = None
HTTPD = None
diff --git a/tests/dcaegen2/testcases/resources/dcae_keywords.robot b/tests/dcaegen2/testcases/resources/dcae_keywords.robot
index 0011ab8..89a8786 100644
--- a/tests/dcaegen2/testcases/resources/dcae_keywords.robot
+++ b/tests/dcaegen2/testcases/resources/dcae_keywords.robot
@@ -167,7 +167,8 @@
Run Healthcheck
[Documentation] Run Healthcheck
+ [Arguments] ${session}
${uuid}= Generate UUID
${headers}= Create Dictionary Accept=*/* X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID}
- ${resp}= Get Request ${http_session} /healthcheck headers=${headers}
+ ${resp}= Get Request ${session} /healthcheck headers=${headers}
Should Be Equal As Strings ${resp.status_code} 200