Skip to content

Commit

Permalink
testsuite: cover exec.service-override config
Browse files Browse the repository at this point in the history
Problem: there is no test coverage that ensures a user cannot
specify an exec service override on a job unless explicitly allowed
by configuration.

Add such a test to t2412-sdexec-perilog.t.
  • Loading branch information
garlick committed Jul 12, 2023
1 parent fc16792 commit 392afc5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/t2412-sdexec-perilog.t
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,9 @@ test_expect_success 'prolog was run under systemd' '
test_expect_success 'epilog was run under systemd' '
grep "System epilog script" dmesg.out
'
test_expect_success 'configured exec service cannot be overridden' '
test_must_fail flux run \
--setattr system.exec.bulkexec.service=rexec \
/bin/true
'
test_done

0 comments on commit 392afc5

Please sign in to comment.