aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramverma <ram.krishna.verma@est.tech>2019-02-11 14:52:47 +0000
committerramverma <ram.krishna.verma@est.tech>2019-02-11 14:52:47 +0000
commitd6e21394edcb42be6620886662e47ab2ee9a85ab (patch)
tree05f26b6bb7ccdd94d54d6bbbee6f0c55d27d378e
parent47abceca6dcbb8d559277d92ad9cc0f1ea806196 (diff)
Fix csit tests of policy/distribution
1) Changed the docker image version to 2.1.0-SNAPSHOT 2) Changed the communication protocol to https Change-Id: I042a0a1054f98fd2efb520b92443f1a9f734a9be Issue-ID: POLICY-1346 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
-rw-r--r--plans/policy/distribution/setup.sh4
-rw-r--r--tests/policy/distribution/distribution-test.robot4
2 files changed, 4 insertions, 4 deletions
diff --git a/plans/policy/distribution/setup.sh b/plans/policy/distribution/setup.sh
index 9b894e3d..40a15d12 100644
--- a/plans/policy/distribution/setup.sh
+++ b/plans/policy/distribution/setup.sh
@@ -17,11 +17,11 @@
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
-docker run -d --name policy-distribution -p 6969:6969 -it nexus3.onap.org:10001/onap/policy-distribution:2.0.0-SNAPSHOT-latest
+docker run -d --name policy-distribution -p 6969:6969 -it nexus3.onap.org:10001/onap/policy-distribution:2.1.0-SNAPSHOT-latest
POLICY_DISTRIBUTION_IP=`get-instance-ip.sh policy-distribution`
echo DISTRIBUTION IP IS ${POLICY_DISTRIBUTION_IP}
-Wait for initialization
+# Wait for initialization
for i in {1..10}; do
curl -sS ${POLICY_DISTRIBUTION_IP}:6969 && break
echo sleep $i
diff --git a/tests/policy/distribution/distribution-test.robot b/tests/policy/distribution/distribution-test.robot
index 1b9fa212..2ee11806 100644
--- a/tests/policy/distribution/distribution-test.robot
+++ b/tests/policy/distribution/distribution-test.robot
@@ -8,8 +8,8 @@ Library json
Healthcheck
[Documentation] Runs Policy Distribution Health check
${auth}= Create List healthcheck zb!XztG34
- Log Creating session http://${POLICY_DISTRIBUTION_IP}:6969
- ${session}= Create Session policy http://${POLICY_DISTRIBUTION_IP}:6969 auth=${auth}
+ Log Creating session https://${POLICY_DISTRIBUTION_IP}:6969
+ ${session}= Create Session policy https://${POLICY_DISTRIBUTION_IP}:6969 auth=${auth}
${headers}= Create Dictionary Accept=application/json Content-Type=application/json
${resp}= Get Request policy /healthcheck headers=${headers}
Log Received response from policy ${resp.text}