summaryrefslogtreecommitdiffstats
path: root/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts')
-rw-r--r--catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/body.txt0
-rw-r--r--catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/command13
-rw-r--r--catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/commandTrial12
-rw-r--r--catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/contentMD5.txt1
-rw-r--r--catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/headers8
-rw-r--r--catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/results1
-rw-r--r--catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/results.json12
-rw-r--r--catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/toExec1
8 files changed, 48 insertions, 0 deletions
diff --git a/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/body.txt b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/body.txt
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/body.txt
diff --git a/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/command b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/command
new file mode 100644
index 0000000000..e18ca5ba6d
--- /dev/null
+++ b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/command
@@ -0,0 +1,13 @@
+command="curl \"http://${CATALOG_BE_HOST}:${CATALOG_BE_PORT}/sdc2/rest/v1/catalog/resources/alien.nodes.Apache/2.0.0-SNAPSHOT/artifacts\" -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/14_ApacheType-GetArtifacts/commandTrial b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/commandTrial
new file mode 100644
index 0000000000..26c8be9956
--- /dev/null
+++ b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/commandTrial
@@ -0,0 +1,12 @@
+command="curl \"http://${CATALOG_BE_HOST}:${CATALOG_BE_PORT}/sdc2/rest/v1/catalog/resources/alien.nodes.Apache/2.0.0-SNAPSHOT/artifacts\" -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/14_ApacheType-GetArtifacts/contentMD5.txt b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/contentMD5.txt
new file mode 100644
index 0000000000..763af5bc63
--- /dev/null
+++ b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/contentMD5.txt
@@ -0,0 +1 @@
+YTg2Mjg4MWJhNmI5NzBiNzdmNGFmMTY4OTlhNDFkMWI= \ No newline at end of file
diff --git a/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/headers b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/headers
new file mode 100644
index 0000000000..cd1db0c52d
--- /dev/null
+++ b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/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/14_ApacheType-GetArtifacts/results b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/results
new file mode 100644
index 0000000000..da36ee26fc
--- /dev/null
+++ b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/results
@@ -0,0 +1 @@
+.*:200:.*:.*
diff --git a/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/results.json b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/results.json
new file mode 100644
index 0000000000..a50cca2af8
--- /dev/null
+++ b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/results.json
@@ -0,0 +1,12 @@
+{
+ "artifacts": [
+ {
+ "name": "start_apache.sh",
+ "url": "http://.*/v1/catalog/resources/alien.nodes.Apache/2.0.0-SNAPSHOT/artifacts/start_apache.sh"
+ },
+ {
+ "name": "install_apache.sh",
+ "url": "http://.*/v1/catalog/resources/alien.nodes.Apache/2.0.0-SNAPSHOT/artifacts/install_apache.sh"
+ }
+ ]
+}
diff --git a/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/toExec b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/toExec
new file mode 100644
index 0000000000..6fdf8907ab
--- /dev/null
+++ b/catalog-fe/src/test/resources/CI/tests/14_ApacheType-GetArtifacts/toExec
@@ -0,0 +1 @@
+curl "http://172.20.43.124:8080/sdc2/rest/v1/catalog/resources/alien.nodes.Apache/2.0.0-SNAPSHOT/artifacts" -sL -w ":%{http_code}:%{size_request} BYTES:%{time_total} \n"