Skip to content

Commit

Permalink
backport of commit a5172c2 (#17617)
Browse files Browse the repository at this point in the history
This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-nomad-core committed Jun 20, 2023
1 parent f0feebe commit 49db298
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions nomad/mock/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,26 @@ func MultiregionJob() *structs.Job {
return job
}

func MultiregionMinJob() *structs.Job {
job := MinJob()
update := *structs.DefaultUpdateStrategy
job.Update = update
job.TaskGroups[0].Update = &update
job.Multiregion = &structs.Multiregion{
Regions: []*structs.MultiregionRegion{
{
Name: "west",
Count: 1,
},
{
Name: "east",
Count: 1,
},
},
}
return job
}

func BatchJob() *structs.Job {
job := &structs.Job{
Region: "global",
Expand Down

0 comments on commit 49db298

Please sign in to comment.