Skip to content

Commit

Permalink
UI block added to testJob for structs testing
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed May 14, 2024
1 parent 03de583 commit 6a0fda7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions nomad/structs/structs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,19 @@ func testJob() *Job {
AllAtOnce: false,
Datacenters: []string{"*"},
NodePool: NodePoolDefault,
UI: &JobUIConfig{
Description: "A job",
Links: []JobUILink{
{
Label: "Nomad Project",
Url: "https://nomadproject.io",
},
{
Label: "Nomad on GitHub",
Url: "https://github.com/hashicorp/nomad",
},
},
},
Constraints: []*Constraint{
{
LTarget: "$attr.kernel.name",
Expand Down

0 comments on commit 6a0fda7

Please sign in to comment.