feat: expose scheduler-k3s autoscaling-auth state for read-back
Align autoscaling-auth:report with annotations and labels reporting so export tools can recover configured trigger auth via flat JSON keys and info flags, while stdout stays secret-safe unless --include-metadata is used. Closes #8800
This commit is contained in:
10 files changed
+605
-37
No files matched your search
@@ -96,3 +96,20 @@ teardown() {
|
||||
assert_success
|
||||
assert_output "$value"
|
||||
}
|
||||
|
||||
@test "(scheduler-k3s:annotations:report) rejects invalid format and info-flag combinations" {
|
||||
run /bin/bash -c "dokku scheduler-k3s:annotations:report $TEST_APP --format yaml"
|
||||
assert_failure
|
||||
assert_output_contains "Invalid format"
|
||||
|
||||
run /bin/bash -c "dokku scheduler-k3s:annotations:set $TEST_APP --resource-type deployment foo bar"
|
||||
assert_success
|
||||
|
||||
run /bin/bash -c "dokku scheduler-k3s:annotations:report $TEST_APP --format json --scheduler-k3s-annotations.global.deployment.foo"
|
||||
assert_failure
|
||||
assert_output_contains "--format flag cannot be specified when specifying an info flag"
|
||||
|
||||
run /bin/bash -c "dokku scheduler-k3s:annotations:report $TEST_APP --scheduler-k3s-annotations.global.deployment.missing"
|
||||
assert_failure
|
||||
assert_output_contains "Invalid flag passed"
|
||||
}
|
||||
Reference in new issue
Block a user