Skip to content

Commit c36727e

Browse files
committed
testsuite: allow root jobs for t2812-flux-job-last.t
Problem: t2812-flux-job-last.t needs to submit a job as root in order to test handling of uid=0 in the history plugin, but job-ingest denies all root jobs by default. Reload the job-ingest module with `allow-root-jobs` to bypass the ingest error and allow the test.
1 parent 1f0f861 commit c36727e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

t/t2812-flux-job-last.t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ submit_as_root()
6666

6767
# issue #5475
6868
# Execution may fail but submission should work - enough for this test
69+
test_expect_success FLUX_SECURITY 'reload job-ingest with allow-root-jobs' '
70+
flux module reload job-ingest allow-root-jobs
71+
'
6972
test_expect_success FLUX_SECURITY 'run a job as fake root' '
7073
submit_as_root true &&
7174
FLUX_HANDLE_USERID=0 flux job last

0 commit comments

Comments
 (0)