aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-fe/src/test/resources/CI/tests/07_NormativeTypeCI-webApplication/commandTrial
blob: 0496ab340daacbc367664424524953722913ff39 (plain)
1
2
3
4
5
6
7
8
9
10
11
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"