feat: add sigil templating to CHECKS files
This enables general templating capabilities, in addition to environment variable access. Closes #3974.
This commit is contained in:
@@ -249,3 +249,16 @@ teardown() {
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
}
|
||||
|
||||
@test "(checks) checks:templated" {
|
||||
run /bin/bash -c "dokku config:set $TEST_APP HEALTHCHECK_ENDPOINT=/healthcheck"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
|
||||
run deploy_app nodejs-express dokku@dokku.me:$TEST_APP template_checks_file
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_output_contains "/healthcheck" 2
|
||||
assert_success
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user