forked from lix-project/hydra
jobset API: expose and check the enable_dynamic_run_command
This commit is contained in:
parent
726ea80e99
commit
1affb1cfb1
|
@ -414,6 +414,7 @@ sub as_json {
|
||||||
|
|
||||||
# boolean_columns
|
# boolean_columns
|
||||||
"enableemail" => $self->get_column("enableemail") ? JSON::MaybeXS::true : JSON::MaybeXS::false,
|
"enableemail" => $self->get_column("enableemail") ? JSON::MaybeXS::true : JSON::MaybeXS::false,
|
||||||
|
"enable_dynamic_run_command" => $self->get_column("enable_dynamic_run_command") ? JSON::MaybeXS::true : JSON::MaybeXS::false,
|
||||||
"visible" => $self->get_column("hidden") ? JSON::MaybeXS::false : JSON::MaybeXS::true,
|
"visible" => $self->get_column("hidden") ? JSON::MaybeXS::false : JSON::MaybeXS::true,
|
||||||
|
|
||||||
"inputs" => { map { $_->name => $_ } $self->jobsetinputs }
|
"inputs" => { map { $_->name => $_ } $self->jobsetinputs }
|
||||||
|
|
|
@ -132,6 +132,7 @@ subtest 'Update jobset "job" to legacy type' => sub {
|
||||||
emailoverride => "",
|
emailoverride => "",
|
||||||
enabled => 3,
|
enabled => 3,
|
||||||
enableemail => JSON::MaybeXS::false,
|
enableemail => JSON::MaybeXS::false,
|
||||||
|
enable_dynamic_run_command => JSON::MaybeXS::false,
|
||||||
errortime => undef,
|
errortime => undef,
|
||||||
errormsg => "",
|
errormsg => "",
|
||||||
fetcherrormsg => "",
|
fetcherrormsg => "",
|
||||||
|
|
Loading…
Reference in a new issue