diff options
author | Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> | 2021-03-24 23:44:17 +0100 |
---|---|---|
committer | Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> | 2021-04-07 07:04:39 +0000 |
commit | a19a5d2bfc58597b7b02bca70d4a42329cf93b6c (patch) | |
tree | f742baba2789784fe5028f718c52a8ba7f649a5d /robot/resources/dcae | |
parent | fbee3c47b31d0292ffeff03cca9fb30e6245bdd6 (diff) |
[ROBOT] Add new E2E test for 5G BulkPM usecase from HTTP server to ONAP gating
The goal is to add test suite for new E2E test for 5G BulkPM use case
using HTTPS server as an origin for PM files to be downloaded from.
Connection between DFC and HTTPS will be based on CMPv2 Certificate-based authentication
Issue-ID: INT-1815
Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>
Change-Id: Iebb71eb68538618cbc0c42444a039bd0f8effcf5
Diffstat (limited to 'robot/resources/dcae')
-rw-r--r-- | robot/resources/dcae/deployment.robot | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/robot/resources/dcae/deployment.robot b/robot/resources/dcae/deployment.robot index 30a5efce..4c8098cd 100644 --- a/robot/resources/dcae/deployment.robot +++ b/robot/resources/dcae/deployment.robot @@ -10,7 +10,7 @@ ${DEPLOYMENT_ENDPOINT} dcae-deployments *** Keywords *** Deploy Service - [Arguments] ${inputs} ${deployment_name} ${wait_time}=5 minute + [Arguments] ${inputs} ${deployment_name} ${wait_time}=5 minute ${check_deployment_status}=true Disable Warnings ${headers}= Create Dictionary content-type=application/json ${deployment_data}= Set Variable ${inputs} @@ -18,7 +18,12 @@ Deploy Service ${resp}= Put Request deployment_session /${DEPLOYMENT_ENDPOINT}/${deployment_name} data=${deployment_data} headers=${headers} ${operationLink} Set Variable ${resp.json().get('links').get('status')} ${operationId} Fetch From Right ${operationLink} / - Wait Until Keyword Succeeds ${wait_time} 20 sec Deployment Status ${deployment_name} ${operationId} + Run Keyword If "${check_deployment_status}"=="true" Check Deployment Status ${deployment_name} ${operationId} ${wait_time} + [Return] ${operationId} + +Check Deployment Status + [Arguments] ${deployment_name} ${operationId} ${wait_time} + Wait Until Keyword Succeeds ${wait_time} 20 sec Deployment Status ${deployment_name} ${operationId} Deployment Status [Arguments] ${deployment_name} ${operationId} @@ -27,6 +32,7 @@ Deployment Status ${resp}= Get Request deployment_session /${DEPLOYMENT_ENDPOINT}/${deployment_name}/operation/${operationId} ${status} Set Variable ${resp.json().get('status')} Should Be Equal As Strings ${status} succeeded + [Return] ${status} Undeploy Service [Arguments] ${deployment_name} |