summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/test/reset-verify-mockserver.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cds-regression-test/test/reset-verify-mockserver.sh')
-rw-r--r--cds-regression-test/test/reset-verify-mockserver.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/cds-regression-test/test/reset-verify-mockserver.sh b/cds-regression-test/test/reset-verify-mockserver.sh
new file mode 100644
index 0000000..8b3ecf6
--- /dev/null
+++ b/cds-regression-test/test/reset-verify-mockserver.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+TEST_NUMBER=$RANDOM
+RESPONSE_HEADERS_FILE="$RESPONSES_DIRECTORY/reset-mockserver-$TEST_NUMBER-response-headers"
+
+. ./$TEST_DIRECTORY/utils.sh
+
+echo "Reset mockserver - $TEST_NUMBER"
+curl -v -X PUT "http://$MOCKSERVER_URL:$MOCKSERVER_PORT/mockserver/reset" > /dev/null 2> $RESPONSE_HEADERS_FILE
+echo 'Assert status 200'
+assert_status_code 200 $RESPONSE_HEADERS_FILE