aboutsummaryrefslogtreecommitdiffstats
path: root/tests/aaf/certservice/resources/cert-service-keywords.robot
diff options
context:
space:
mode:
authorTomasz Wrobel <tomasz.wrobel@nokia.com>2020-03-05 16:43:50 +0100
committerTomasz Wrobel <tomasz.wrobel@nokia.com>2020-03-10 13:04:29 +0100
commit75573b0409eeabbd08f3a2801fd11c47078a249f (patch)
tree47a6f52a7eb3f3a57677dcd082fd6c03a210c8c7 /tests/aaf/certservice/resources/cert-service-keywords.robot
parentb133879ebd28e6e8c6cbb65534ac361f2a7550a8 (diff)
Add CSIT for Cert Service Client
Issue-ID: AAF-996 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: If29633f8ce382c4bef2c14ff7ec9b5377c866d4a
Diffstat (limited to 'tests/aaf/certservice/resources/cert-service-keywords.robot')
-rw-r--r--tests/aaf/certservice/resources/cert-service-keywords.robot8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/aaf/certservice/resources/cert-service-keywords.robot b/tests/aaf/certservice/resources/cert-service-keywords.robot
index 5f25f0b0..a8315e7f 100644
--- a/tests/aaf/certservice/resources/cert-service-keywords.robot
+++ b/tests/aaf/certservice/resources/cert-service-keywords.robot
@@ -3,6 +3,7 @@
Library RequestsLibrary
Library HttpLibrary.HTTP
Library Collections
+Library ../libraries/CertClientManager.py
Resource ../../../common.robot
Resource ./cert-service-properties.robot
@@ -81,3 +82,10 @@ Send Post Request And Validate Response
[Arguments] ${path} ${resp_code}
${resp}= Post Request ${http_session} ${path}
Should Be Equal As Strings ${resp.status_code} ${resp_code}
+
+Run Cert Service Client Container And Validate Exit Code
+ [Documentation] Run Cert Service Client Container And Validate Exit Code
+ [Arguments] ${env_file} ${expected_code}
+ ${exitcode}= Run Client Container ${DOCKER_CLIENT_IMAGE} ${CLIENT_CONTAINER_NAME} ${env_file} ${CERT_ADDRESS} ${CERT_SERVICE_NETWORK}
+ Remove Client Container ${CLIENT_CONTAINER_NAME}
+ Should Be Equal As Strings ${exitcode} ${expected_code}