aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot
diff options
context:
space:
mode:
authorMariusz Wagner <mariusz.wagner@nokia.com>2018-07-30 14:19:50 +0200
committerMariusz Wagner <mariusz.wagner@nokia.com>2018-07-30 14:36:10 +0200
commit3cbe54761c77812594cf6c497482373e814792c1 (patch)
tree8ffedf6bd1efba888c628eef3bc263f2312275c3 /test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot
parent0b8db8f3fb19c3e41a901e76c930e7f2008239f4 (diff)
Cleaning tests
Code refactor and clean TC code Issue-ID: INT-604 Change-Id: I6b47dae37eb3b3897698bab738abcc8aac97d90d Signed-off-by: Mariusz Wagner <mariusz.wagner@nokia.com>
Diffstat (limited to 'test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot')
-rw-r--r--test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot28
1 files changed, 14 insertions, 14 deletions
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 226973b97..10bc26c18 100644
--- a/test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot
+++ b/test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot
@@ -3,29 +3,29 @@ Library RequestsLibrary
Library Collections
*** Keywords ***
-Create headers
+Create header
${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- Set Suite Variable ${global_headers} ${headers}
+ Set Suite Variable ${suite_headers} ${headers}
Create sessions
Create Session dmaap_session ${DMAAP_SIMULATOR_URL}
- Set Suite Variable ${global_dmaap_session} dmaap_session
+ Set Suite Variable ${suite_dmaap_session} dmaap_session
Create Session aai_session ${AAI_SIMULATOR_URL}
- Set Suite Variable ${global_aai_session} aai_session
+ Set Suite Variable ${suite_aai_session} aai_session
Invalid event processing
[Arguments] ${input_invalid_event_in_dmaap}
[Timeout] 30s
- Set event in DMAAP ${input_invalid_event_in_dmaap}
+ Set event in DMaaP ${input_invalid_event_in_dmaap}
Wait Until Keyword Succeeds 100x 100ms Check PRH log INFO 1 --- [pool-2-thread-1] o.o.d.s.prh.tasks.DmaapConsumerTaskImpl \ : Consumed model from DmaaP: ${input_invalid_event_in_dmaap}
Valid event processing
[Arguments] ${input_valid_event_in_dmaap}
[Timeout] 30s
- ${posted_event_to_dmaap}= Create pnf ready notification ${input_valid_event_in_dmaap}
- ${pnf_name}= Create pnf name ${input_valid_event_in_dmaap}
- Set pnf name in AAI ${pnf_name}
- Set event in DMAAP ${input_valid_event_in_dmaap}
+ ${posted_event_to_dmaap}= Create PNF_Ready notification ${input_valid_event_in_dmaap}
+ ${pnf_name}= Create PNF name ${input_valid_event_in_dmaap}
+ 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
@@ -35,16 +35,16 @@ Check PRH log
Check PNF_READY notification
[Arguments] ${posted_event_to_dmaap}
- ${resp}= Get Request ${global_dmaap_session} /events/pnfReady headers=${global_headers}
+ ${resp}= Get Request ${suite_dmaap_session} /events/pnfReady headers=${suite_headers}
Should Be Equal ${resp.text} ${posted_event_to_dmaap}
-Set pnf name in AAI
+Set PNF name in AAI
[Arguments] ${pnfs_name}
${headers}= Create Dictionary Accept=application/json Content-Type=text/html
- ${resp}= Put Request ${global_aai_session} /set_pnfs headers=${headers} data=${pnfs_name}
+ ${resp}= Put Request ${suite_aai_session} /set_pnfs headers=${headers} data=${pnfs_name}
Should Be Equal As Strings ${resp.status_code} 200
-Set event in DMAAP
+Set event in DMaaP
[Arguments] ${event_in_dmaap}
- ${resp}= Put Request ${global_dmaap_session} /set_get_event headers=${global_headers} data=${event_in_dmaap}
+ ${resp}= Put Request ${suite_dmaap_session} /set_get_event headers=${suite_headers} data=${event_in_dmaap}
Should Be Equal As Strings ${resp.status_code} 200