whoops: add a test on the enable_dynamic_run_command field

This commit is contained in:
Graham Christensen 2021-12-15 15:41:55 -05:00
parent 8a96f07f58
commit 2635607b6e
2 changed files with 6 additions and 0 deletions

View file

@ -607,6 +607,9 @@ components:
enabled:
description: when set to true the project gets scheduled for evaluation
type: boolean
enable_dynamic_run_command:
description: when true the project's jobsets support executing dynamically defined RunCommand hooks. Requires the server and project's configuration to also enable dynamic RunCommand.
type: boolean
declarative:
description: declarative input configured for this project
type: object

View file

@ -46,6 +46,7 @@ subtest "Read project 'tests'" => sub {
description => "",
displayname => "Tests",
enabled => JSON::MaybeXS::true,
enable_dynamic_run_command => JSON::MaybeXS::false,
hidden => JSON::MaybeXS::false,
homepage => "",
jobsets => [],
@ -85,6 +86,7 @@ subtest "Transitioning from declarative project to normal" => sub {
description => "",
displayname => "Tests",
enabled => JSON::MaybeXS::true,
enable_dynamic_run_command => JSON::MaybeXS::false,
hidden => JSON::MaybeXS::false,
homepage => "",
jobsets => [".jobsets"],
@ -128,6 +130,7 @@ subtest "Transitioning from declarative project to normal" => sub {
description => "",
displayname => "Tests",
enabled => JSON::MaybeXS::true,
enable_dynamic_run_command => JSON::MaybeXS::false,
hidden => JSON::MaybeXS::false,
homepage => "",
jobsets => [],