mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 09:55:44 +03:00
backfill region from job hcl in jobUpdate and jobPlan endpoints
- updated region in job metadata that gets persisted to nomad datastore - fixed many unrelated unit tests that used an invalid region value (they previously passed because hcl wasn't getting picked up and the job would default to global region)
This commit is contained in:
@@ -109,3 +109,9 @@ func MockPeriodicJob() *api.Job {
|
||||
}
|
||||
return j
|
||||
}
|
||||
|
||||
func MockRegionalJob() *api.Job {
|
||||
j := MockJob()
|
||||
j.Region = helper.StringToPtr("north-america")
|
||||
return j
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user