fixed to demoes test and docker container image
Change-Id: I786c4ef81caa8841c9e67e1b7584618ac0b64ac5
diff --git a/src/test/cord-api/Dockerfile.k8s-api-tester b/src/test/cord-api/Dockerfile.k8s-api-tester
index 75a68db..206c62c 100644
--- a/src/test/cord-api/Dockerfile.k8s-api-tester
+++ b/src/test/cord-api/Dockerfile.k8s-api-tester
@@ -18,7 +18,7 @@
FROM python:2.7
-RUN pip install robotframework robotframework-requests pexpect \
+RUN pip install httpie robotframework robotframework-requests pexpect \
robotframework-httplibrary robotframework-ride robotframework-kafkalibrary pygments pyyaml && \
pip install -U requests && rm -rf /var/lib/apt/lists/*
diff --git a/src/test/cord-api/Tests/DemoSimpleExampleService.robot b/src/test/cord-api/Tests/DemoSimpleExampleService.robot
index 2dbb8dd..da40feb 100644
--- a/src/test/cord-api/Tests/DemoSimpleExampleService.robot
+++ b/src/test/cord-api/Tests/DemoSimpleExampleService.robot
@@ -19,9 +19,7 @@
Validate Kubernetes Service Instance
[Documentation] Modify the demo-simpleexampleservice instance and validate webserver
Wait Until Keyword Succeeds 120s 2s Obtain SimpleExampleService SI
- ${resp}= CORD Get /xosapi/v1/kubernetes/kubernetesserviceinstances/${k8_si_id}
- ${k8_pod_ip}= Get Json Value ${resp.content} /pod_ip
- Set Suite Variable ${k8_pod_ip}
+ Wait Until Keyword Succeeds 300s 2s Get Kubernetes SI Pod IP
Send Kafka Event SimpleExampleEvent {"service_instance": "My Simple Example Service Instance", "tenant_message": "world"}
Wait Until Keyword Succeeds 60s 2s Validate SI Message world
Wait Until Keyword Succeeds 120s 2s Validate WebService Message world
@@ -61,6 +59,11 @@
Set Suite Variable ${k8_si_id}
Set Suite Variable ${demo_si_id}
+Get Kubernetes SI Pod IP
+ ${resp}= CORD Get /xosapi/v1/kubernetes/kubernetesserviceinstances/${k8_si_id}
+ ${k8_pod_ip}= Get Json Value ${resp.content} /pod_ip
+ Set Suite Variable ${k8_pod_ip}
+
Validate SI Message
[Arguments] ${message}
${resp}= CORD Get /xosapi/v1/simpleexampleservice/simpleexampleserviceinstances