Initial OpenECOMP SDC commit
[sdc.git] / catalog-fe / src / test / resources / CI / tests / 07_NormativeTypeCI-webApplication / command
diff --git a/catalog-fe/src/test/resources/CI/tests/07_NormativeTypeCI-webApplication/command b/catalog-fe/src/test/resources/CI/tests/07_NormativeTypeCI-webApplication/command
new file mode 100644 (file)
index 0000000..c9a5b38
--- /dev/null
@@ -0,0 +1,15 @@
+headers=`paste -s -d" " headers`
+
+command="curl  -XPOST \"http://${CATALOG_FE_HOST}:${CATALOG_FE_PORT}/sdc1/rest/v1/catalog/resources\" -d \"@body.txt\" ${headers} -sL -w \":%{http_code}:%{size_request} BYTES:%{time_total} \\n\"  "
+
+echo $command > toExec
+chmod +x toExec
+./toExec
+
+
+#$command
+
+#curl  -XPOST "http://${CATALOG_FE_HOST}:${CATALOG_FE_PORT}/sdc2/rest/v1/catalog/resources" -d "@body.txt" --header "Content-Type: application/json" --header "HTTP_IV_USER: HTTP_IV_USER" --header "HTTP_CSP_FIRSTNAME: HTTP_CSP_FIRSTNAME" --header "HTTP_CSP_LASTNAME: HTTP_CSP_LASTNAME" --header "HTTP_IV_REMOTE_ADDRESS: HTTP_IV_REMOTE_ADDRESS" --header "Content-MD5: `cat contentMD5.txt`"  -sL -w ":%{http_code}:%{size_request} BYTES:%{time_total} \\n"
+
+
+