summaryrefslogtreecommitdiffstats
path: root/test/csit/tests/dcaegen2/prh-testcases
diff options
context:
space:
mode:
authorMariusz Wagner <mariusz.wagner@nokia.com>2018-07-26 10:12:43 +0200
committerMariusz Wagner <mariusz.wagner@nokia.com>2018-07-26 11:21:00 +0200
commitbb011a167161f24a500494dfab91032338d5d824 (patch)
tree647137d7d2db7f8d13296bd086a306c307202394 /test/csit/tests/dcaegen2/prh-testcases
parentbd0bd931e084fc918190340c9141ff95423b2e71 (diff)
Change global var
Change global var to suite var Issue-ID: INT-600 Change-Id: Iecfe90157f52f2d459fb67c9c1d60846ae0b816a Signed-off-by: Mariusz Wagner <mariusz.wagner@nokia.com>
Diffstat (limited to 'test/csit/tests/dcaegen2/prh-testcases')
-rw-r--r--test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py1
-rw-r--r--test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot10
2 files changed, 6 insertions, 5 deletions
diff --git a/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py b/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py
index 2e52d0825..ac3fba46e 100644
--- a/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py
+++ b/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py
@@ -38,6 +38,7 @@ class PrhLibrary(object):
container = client.containers.get('aai_simulator')
container.stop()
+
def _create_pnf_name(json_file):
json_to_python = json.loads(json_file)
vendor = json_to_python["event"]["otherFields"]["pnfVendorName"]
diff --git a/test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot b/test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot
index 8a6046d9d..226973b97 100644
--- a/test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot
+++ b/test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot
@@ -5,13 +5,13 @@ Library Collections
*** Keywords ***
Create headers
${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- Set Global Variable ${global_headers} ${headers}
+ Set Suite Variable ${global_headers} ${headers}
Create sessions
Create Session dmaap_session ${DMAAP_SIMULATOR_URL}
- Set Global Variable ${global_dmaap_session} dmaap_session
+ Set Suite Variable ${global_dmaap_session} dmaap_session
Create Session aai_session ${AAI_SIMULATOR_URL}
- Set Global Variable ${global_aai_session} aai_session
+ Set Suite Variable ${global_aai_session} aai_session
Invalid event processing
[Arguments] ${input_invalid_event_in_dmaap}
@@ -27,12 +27,12 @@ Valid event processing
Set pnf name in AAI ${pnf_name}
Set event in DMAAP ${input_valid_event_in_dmaap}
Wait Until Keyword Succeeds 100x 300ms Check PNF_READY notification ${posted_event_to_dmaap}
-
+
Check PRH log
[Arguments] ${searched_log}
${status}= Check for log ${searched_log}
Should Be Equal As Strings ${status} True
-
+
Check PNF_READY notification
[Arguments] ${posted_event_to_dmaap}
${resp}= Get Request ${global_dmaap_session} /events/pnfReady headers=${global_headers}