aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreconwar <conor.ward@ericsson.com>2018-08-08 17:17:18 +0000
committereconwar <conor.ward@ericsson.com>2018-08-08 19:38:52 +0000
commit6d5e8086c2647e38d817ae5040f18f6af62045be (patch)
tree7d94874fa26dfb4c6ba25d03b3db1bac8182ac52
parent81708b8b4db473e7dd9738fce13844ef48d7fcb7 (diff)
Add Delete Feed Test Case
-DB container updated Change-Id: I374032aa167e9725668f1997873fe5b52c3a87a4 Signed-off-by: Conor Ward <conor.ward@ericsson.com> Issue-ID: DMAAP-65
-rwxr-xr-xtest/csit/plans/dmaap-datarouter/dr-suite/setup.sh6
-rwxr-xr-xtest/csit/plans/dmaap-datarouter/dr-suite/teardown.sh2
-rwxr-xr-xtest/csit/tests/dmaap-datarouter/dr-suite/dr-suite.robot8
3 files changed, 12 insertions, 4 deletions
diff --git a/test/csit/plans/dmaap-datarouter/dr-suite/setup.sh b/test/csit/plans/dmaap-datarouter/dr-suite/setup.sh
index c1bb75967..3e02a0d74 100755
--- a/test/csit/plans/dmaap-datarouter/dr-suite/setup.sh
+++ b/test/csit/plans/dmaap-datarouter/dr-suite/setup.sh
@@ -12,14 +12,14 @@ git pull
cd $WORKSPACE/archives/dmaapdr/datarouter/datarouter-prov/src/main/resources/docker-compose/
# start DMaaP DR containers with docker compose and configuration from docker-compose.yml
-docker login -u docker -p docker nexus3.onap.org:10001
+docker login -u docker -p docker nexus3.onap.org:10003
docker-compose up -d
-# Wait for initialization of Docker container for datarouter-node, datarouter-prov and mysql
+# Wait for initialization of Docker container for datarouter-node, datarouter-prov and mariadb
for i in {1..50}; do
if [ $(docker inspect --format '{{ .State.Running }}' datarouter-node) ] && \
[ $(docker inspect --format '{{ .State.Running }}' datarouter-prov) ] && \
- [ $(docker inspect --format '{{ .State.Running }}' mysql) ]
+ [ $(docker inspect --format '{{ .State.Running }}' mariadb) ]
then
echo "DR Service Running"
break
diff --git a/test/csit/plans/dmaap-datarouter/dr-suite/teardown.sh b/test/csit/plans/dmaap-datarouter/dr-suite/teardown.sh
index f3ddf4774..546bea6d6 100755
--- a/test/csit/plans/dmaap-datarouter/dr-suite/teardown.sh
+++ b/test/csit/plans/dmaap-datarouter/dr-suite/teardown.sh
@@ -2,4 +2,4 @@
kill-instance.sh datarouter-node
kill-instance.sh datarouter-prov
-kill-instance.sh mysql
+kill-instance.sh mariadb
diff --git a/test/csit/tests/dmaap-datarouter/dr-suite/dr-suite.robot b/test/csit/tests/dmaap-datarouter/dr-suite/dr-suite.robot
index c966c6985..b5092f86a 100755
--- a/test/csit/tests/dmaap-datarouter/dr-suite/dr-suite.robot
+++ b/test/csit/tests/dmaap-datarouter/dr-suite/dr-suite.robot
@@ -70,6 +70,14 @@ Run Delete Subscription
Should Be Equal As Strings ${resp.status_code} 204
log 'JSON Response Code:'${resp}
+Run Delete Feed
+ [Documentation] Delete Feed
+ [Timeout] 1 minute
+ ${resp}= DeleteCall ${TARGET_URL_FEED} rs873m
+ log ${resp.text}
+ Should Be Equal As Strings ${resp.status_code} 204
+ log 'JSON Response Code:'${resp}
+
*** Keywords ***
PostCall
[Arguments] ${url} ${data} ${content_type} ${user}