get.porter.sh/porter@v1.3.0/tests/integration/testdata/bundles/outputs-example/helpers.sh (about) 1 #!/usr/bin/env bash 2 set -euo pipefail 3 4 dump-config() { 5 echo '{"user": "sally"}' 6 } 7 8 dump() { 9 echo $1 10 } 11 12 assert-output-value() { 13 if [ "$1" != "$2" ]; then 14 echo "'$1' does not match the expected output value of '$2'." 15 exit 1 16 fi 17 } 18 19 # Call the requested function and pass the arguments as-is 20 "$@"