From 18c77a6e96d20eff2178d83aa844509dba35932d Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Thu, 12 Nov 2026 11:47:27 +0000 Subject: [PATCH] e2e: assert config show --defaults has no load levels 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. --- test/e2e.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e.sh b/test/e2e.sh index 0739361..1bde19d 100755 --- a/test/e2e.sh +++ b/test/e2e.sh @@ -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"