e2e: assert config show --defaults has no load levels
CI / test (pull_request) Successful in 3m22s

Completes the last phase-6 item of issue #2: the defaults check now
explicitly asserts max_high_jobs is absent from the output, not just
that the old assertion is gone.
This commit is contained in:
Daniel Samson committed 2026-11-12 11:47:27 +00:00
1 parent 5ee6b6021c
commit 18c77a6e96
1 file changed
+3 -1
+3 -1
View File
@@ -50,7 +50,9 @@ contains "clean --all removes it" "Cleaned 1 job" "$(Z clean --offline --all)"
contains "status empty" "No jobs found." "$(Z status --offline)"
# --- config -----------------------------------------------------------------------------
contains "config show --defaults" "retry_backoff_multiplier = 2.0" "$(Z config show --defaults)"
defaults_out=$(Z config show --defaults)
contains "config show --defaults" "retry_backoff_multiplier = 2.0" "$defaults_out"
case $defaults_out in *max_high_jobs*) fail "config show --defaults is free of load levels" ;; *) pass "config show --defaults is free of load levels" ;; esac
printf '[jobs]\nmax_retries = 0\nbogus = 1\n' >"$DIR/bad.conf"
Z config validate --file "$DIR/bad.conf" >/dev/null 2>&1; [[ $? -eq 1 ]] && pass "validate flags bad config" || fail "validate flags bad config"
printf '[jobs]\nmax_retries = 0\n' >"$DIR/good.conf"