aboutsummaryrefslogtreecommitdiffstats
path: root/tests/so
diff options
context:
space:
mode:
authorwaqas.ikram <waqas.ikram@est.tech>2019-08-22 10:25:24 +0000
committerWaqas Ikram <waqas.ikram@est.tech>2019-08-22 10:25:42 +0000
commitcb3218e5d11a586a935c0c4394ba4f7e5775ae0e (patch)
tree0a0ded71401c6782d820501cbaeefe967e35d3b7 /tests/so
parent6e6227ceeca68aa3d5a066ef10bfe1e8db8ef346 (diff)
Fixing test assertions and adding correct override.yaml
Change-Id: I9bb25b51734907fef191d6f548b28a65d147e3b9 Issue-ID: SO-2144 Signed-off-by: waqas.ikram <waqas.ikram@est.tech>
Diffstat (limited to 'tests/so')
-rw-r--r--tests/so/etsi/etsi_tests.robot6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/so/etsi/etsi_tests.robot b/tests/so/etsi/etsi_tests.robot
index a3b658c9..b2bf3ede 100644
--- a/tests/so/etsi/etsi_tests.robot
+++ b/tests/so/etsi/etsi_tests.robot
@@ -14,6 +14,7 @@ Distribute Service Template
&{headers}= Create Dictionary Authorization=Basic bXNvX2FkbWluOnBhc3N3b3JkMSQ= resource-location=/distribution-test-zip/unzipped Content-Type=application/json Accept=application/json
${resp}= Post Request sdc_controller_session /test/treatNotification/v1 data=${data} headers=${headers}
Run Keyword If '${resp.status_code}' == '200' log to console \nexecuted with expected result
+ Should Be Equal As Strings '${resp.status_code}' '200'
Invoke Service Instantiation
Create Session api_handler_session http://${REPO_IP}:8080
@@ -32,9 +33,10 @@ Invoke Service Instantiation
\ log to console ${orchestration_status_request.content}
\ ${orchestration_json_responce}= Evaluate json.loads("""${orchestration_status_request.content}""") json
\ ${actual_request_state}= SET VARIABLE ${orchestration_json_responce}[request][requestStatus][requestState]
+ \ Log To Console Received actual repsonse status:${actual_request_state}
\ RUN KEYWORD IF '${actual_request_state}' == 'COMPLETE' or '${actual_request_state}' == 'FAILED' Exit For Loop
- \ log to console Received actual repsonse status:${actual_request_state}
\ log to console Will try again after 5 seconds
\ SLEEP 5s
-
+ Log To Console final repsonse status received: ${actual_request_state}
Run Keyword If '${actual_request_state}' == 'COMPLETE' log to console \nexecuted with expected result
+ Should Be Equal As Strings '${actual_request_state}' 'COMPLETE'