DeclarativeJobsets: test basic functionality

This commit is contained in:
Graham Christensen
2022-01-15 13:42:09 -05:00
parent eef633c1cc
commit b2cdde0901
4 changed files with 97 additions and 0 deletions

View File

@ -162,6 +162,8 @@ sub updateProject {
, declvalue => trim($c->stash->{params}->{declarative}->{value})
});
if (length($project->declfile)) {
# This logic also exists in the DeclarativeJobets tests.
# TODO: refactor and deduplicate.
$project->jobsets->update_or_create(
{ name=> ".jobsets"
, nixexprinput => ""