fix: expose remaining settable properties via :report
Adds the missing raw/global/computed report keys for ten settable properties across the ps, builder, scheduler, proxy, openresty, nginx, and scheduler-k3s plugins so external tooling can verify drift through `:report --format json`. The scheduler-k3s `token` is masked as `*******` in default stdout output and only unmasked when the report is requested via `--format json` or when the flag is queried explicitly by name; the same explicit-query unmasking rule is extended to the existing traefik `dns-provider-<env_var>` keys.
This commit is contained in:
@@ -7,6 +7,7 @@ setup() {
|
||||
}
|
||||
|
||||
teardown() {
|
||||
dokku builder:set --global skip-cleanup >/dev/null 2>/dev/null || true
|
||||
destroy_app
|
||||
}
|
||||
|
||||
@@ -307,6 +308,55 @@ teardown() {
|
||||
assert_success
|
||||
}
|
||||
|
||||
@test "(builder:report) skip-cleanup raw vs computed vs global" {
|
||||
run /bin/bash -c "dokku builder:set --global skip-cleanup"
|
||||
assert_success
|
||||
|
||||
run /bin/bash -c "dokku builder:report $TEST_APP --builder-skip-cleanup"
|
||||
assert_success
|
||||
assert_output_not_exists
|
||||
|
||||
run /bin/bash -c "dokku builder:report $TEST_APP --builder-global-skip-cleanup"
|
||||
assert_success
|
||||
assert_output_not_exists
|
||||
|
||||
run /bin/bash -c "dokku builder:report $TEST_APP --builder-computed-skip-cleanup"
|
||||
assert_success
|
||||
assert_output "false"
|
||||
|
||||
run /bin/bash -c "dokku builder:set --global skip-cleanup true"
|
||||
assert_success
|
||||
|
||||
run /bin/bash -c "dokku builder:report $TEST_APP --builder-global-skip-cleanup"
|
||||
assert_success
|
||||
assert_output "true"
|
||||
|
||||
run /bin/bash -c "dokku builder:report $TEST_APP --builder-computed-skip-cleanup"
|
||||
assert_success
|
||||
assert_output "true"
|
||||
|
||||
run /bin/bash -c "dokku builder:set $TEST_APP skip-cleanup false"
|
||||
assert_success
|
||||
|
||||
run /bin/bash -c "dokku builder:report $TEST_APP --builder-skip-cleanup"
|
||||
assert_success
|
||||
assert_output "false"
|
||||
|
||||
run /bin/bash -c "dokku builder:report $TEST_APP --builder-global-skip-cleanup"
|
||||
assert_success
|
||||
assert_output "true"
|
||||
|
||||
run /bin/bash -c "dokku builder:report $TEST_APP --builder-computed-skip-cleanup"
|
||||
assert_success
|
||||
assert_output "false"
|
||||
|
||||
run /bin/bash -c "dokku builder:set $TEST_APP skip-cleanup"
|
||||
assert_success
|
||||
|
||||
run /bin/bash -c "dokku builder:set --global skip-cleanup"
|
||||
assert_success
|
||||
}
|
||||
|
||||
@test "(builder:set)" {
|
||||
run deploy_app python
|
||||
echo "output: $output"
|
||||
|
||||
Reference in New Issue
Block a user