add color support in sslproxy Jenkinsfile, and removed curl flag for no progress meter.
This commit is contained in:
@@ -54,7 +54,7 @@ function assertMisdirectedRequest() {
|
||||
domain=$2
|
||||
set -e
|
||||
echo -e "\033[94m${proto}://${domain}\033[39m testing for mistrected request"
|
||||
curl --no-progress-meter -IskH "Host: ${domain}" "${proto}://localhost" | tee "$LOG" | grep "421 Misdirected Request"
|
||||
curl -IskH "Host: ${domain}" "${proto}://localhost" | tee "$LOG" | grep "421 Misdirected Request"
|
||||
}
|
||||
|
||||
function assertBadGateway() {
|
||||
@@ -62,7 +62,7 @@ function assertBadGateway() {
|
||||
domain=$2
|
||||
set -e
|
||||
echo -e "\033[94m${proto}://${domain}\033[39m"
|
||||
curl --no-progress-meter -IskH "Host: ${domain}" "${proto}://localhost" | tee "$LOG" | grep "502 Bad Gateway"
|
||||
curl -IskH "Host: ${domain}" "${proto}://localhost" | tee "$LOG" | grep "502 Bad Gateway"
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ function assertTeapot() {
|
||||
domain=$2
|
||||
set -e
|
||||
echo -e "\033[94m${proto}://${domain}\033[39m"
|
||||
curl --no-progress-meter -IskH "Host: ${domain}" "${proto}://localhost" | tee "$LOG" | grep "418"
|
||||
curl -IskH "Host: ${domain}" "${proto}://localhost" | tee "$LOG" | grep "418"
|
||||
}
|
||||
|
||||
build_save() {
|
||||
|
||||
@@ -78,7 +78,7 @@ function assertOK() {
|
||||
domain=$2
|
||||
set -e
|
||||
echo -e "\033[94m${proto}://${domain}\033[39m"
|
||||
curl --no-progress-meter -IskH "Host: ${domain}" "${proto}://dkhost.xai-corp.net" \
|
||||
curl -IskH "Host: ${domain}" "${proto}://dkhost.xai-corp.net" \
|
||||
| tee "$LOG" | grep -P "200 OK|302 Found|403 Forbidden"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user