2023-09-02 11:16:24 +03:00
|
|
|
#!/bin/bash
|
|
|
|
set -Eeuo pipefail
|
|
|
|
|
|
|
|
|
|
|
|
set +eo pipefail
|
|
|
|
# Check error message when curl/libcurl on this system does not support --aws-sigv4
|
|
|
|
# simply ignore test if option is available on the system
|
|
|
|
# FIXME: remove this test once all integration test targets have aws-sigv4 support in libcurl
|
|
|
|
if curl --aws-sigv4 2>&1 | grep -qv 'option --aws-sigv4: is unknown'; then
|
2023-09-29 14:39:15 +03:00
|
|
|
cat tests_failed/aws_sigv4_option.err >&2
|
2023-09-02 11:16:24 +03:00
|
|
|
exit 3
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -Eeuo pipefail
|
2023-09-29 14:39:15 +03:00
|
|
|
hurl --user someAccessKeyId:someSecretKey tests_ok/aws_sigv4_option.hurl
|