diff options
author | Michael Lando <ml636r@att.com> | 2017-02-19 10:28:42 +0200 |
---|---|---|
committer | Michael Lando <ml636r@att.com> | 2017-02-19 10:51:01 +0200 |
commit | 451a3400b76511393c62a444f588a4ed15f4a549 (patch) | |
tree | e4f5873a863d1d3e55618eab48b83262f874719d /catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer | |
parent | 5abfe4e1fb5fae4bbd5fbc340519f52075aff3ff (diff) |
Initial OpenECOMP SDC commit
Change-Id: I0924d5a6ae9cdc161ae17c68d3689a30d10f407b
Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer')
7 files changed, 39 insertions, 0 deletions
diff --git a/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/body.txt b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/body.txt new file mode 100644 index 0000000000..0ca83ed662 --- /dev/null +++ b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/body.txt @@ -0,0 +1 @@ +{"payloadName":"normative-types-webServer.zip","isEncoded":true,"isCompressed":true,"artifactList":[],"payloadData":"UEsDBAoAAAAIAApebEb/fQgElQEAAJMDAAAdAAAAbm9ybWF0aXZlLXR5cGVzLXdlYlNlcnZlci55bWyVUk1r4zAQvftXDL3bpOzNh0IIhT21BRv2UIpQrHEjsDViNEnov+9YtRO3ZBfWutiaeR/zPEKps8Zh74MXTyGZE3LSlxokl5If44Dmw46DuTcbPWe3+VUUgnpvBU2wI87NZSAerfgTlvIRMZVn3DfIynhtt0c5ENfQPje7LbS7a+UifF9t9EwyZfO0fWl+P7dF4TB17KPkjh0FsT4kkAPCRRSyKFyHqQo1TyypLgBKuLttkomkvqF59y9Qol7OlnFHqhAw/IWhCOTQZMjkIXNV012q/izZTAUAu0/CthONko+YrxyyCjrTM431N2zzU33uX0X0kK8AWk3oK+uLIDwpCbRqChgjY1KCBDZcPMAyHXSLABBDUrTvNOaDFfAJOhvtfkCgHg6UxId3JXEQmU7eTV+jDfYdxwyPyDYvGPRKpZwT40iqob62MQ6+y3XIE2bzmd8P+iu/0ssxxWgwuEg+yJLJuq96nItzf8LuyPhfkGmWRQ7yTt1EzTuou7206uA65drt9Jzs4J1Z7QG8/tyD9fhvxSdQSwECFAAKAAAACAAKXmxG/30IBJUBAACTAwAAHQAAAAAAAAAAAAAAAAAAAAAAbm9ybWF0aXZlLXR5cGVzLXdlYlNlcnZlci55bWxQSwUGAAAAAAEAAQBLAAAA0AEAAAAA"}
\ No newline at end of file diff --git a/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/command b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/command new file mode 100644 index 0000000000..c9a5b38dc4 --- /dev/null +++ b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/command @@ -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" + + + diff --git a/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/commandTrial b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/commandTrial new file mode 100644 index 0000000000..0496ab340d --- /dev/null +++ b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/commandTrial @@ -0,0 +1,12 @@ +command="curl -XPOST \"http://${CATALOG_FE_HOST}:${CATALOG_FE_PORT}/sdc2/rest/v1/catalog/resources\" -d \"@body.txt\"" +command="$command `paste -s -d\" \" headers`" +command="$command -sL -w \":%{http_code}:%{size_request} BYTES:%{time_total} \\n\"" + +echo $command > 1.log + +$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" + + + diff --git a/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/contentMD5.txt b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/contentMD5.txt new file mode 100644 index 0000000000..da3c1fb22c --- /dev/null +++ b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/contentMD5.txt @@ -0,0 +1 @@ +YmZkOGVhZjgxMmRjMjNmODgxMzQ3N2NkOGMzNmViMGI=
\ No newline at end of file diff --git a/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/headers b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/headers new file mode 100644 index 0000000000..cd1db0c52d --- /dev/null +++ b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/headers @@ -0,0 +1,8 @@ +--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 "HTTP_CSP_WSTYPE: HTTP_CSP_WSTYPE" +--header "USER_ID: USER_ID" +--header "Content-MD5: `cat contentMD5.txt`" diff --git a/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/results b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/results new file mode 100644 index 0000000000..6bce5fe69a --- /dev/null +++ b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/results @@ -0,0 +1 @@ +.*:204:.*:.* diff --git a/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/toExec b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/toExec new file mode 100644 index 0000000000..b74e582498 --- /dev/null +++ b/catalog-fe/src/test/resources/CI/tests/06_NormativeTypeCI-webServer/toExec @@ -0,0 +1 @@ +curl -XPOST "http://172.20.43.122:8080/sdc1/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 "HTTP_CSP_WSTYPE: HTTP_CSP_WSTYPE" --header "USER_ID: USER_ID" --header "Content-MD5: `cat contentMD5.txt`" -sL -w ":%{http_code}:%{size_request} BYTES:%{time_total} \n" |