open-nomad/e2e/e2eutil
Drew Bailey 630babb886
prevent double job status update (#9768)
* Prevent Job Statuses from being calculated twice

https://github.com/hashicorp/nomad/pull/8435 introduced atomic eval
insertion iwth job (de-)registration. This change removes a now obsolete
guard which checked if the index was equal to the job.CreateIndex, which
would empty the status. Now that the job regisration eval insetion is
atomic with the registration this check is no longer necessary to set
the job statuses correctly.

* test to ensure only single job event for job register

* periodic e2e

* separate job update summary step

* fix updatejobstability to use copy instead of modified reference of job

* update envoygatewaybindaddresses copy to prevent job diff on null vs empty

* set ConsulGatewayBindAddress to empty map instead of nil

fix nil assertions for empty map

rm unnecessary guard
2021-01-22 09:18:17 -05:00
..
allocs.go e2e deflake namespaces: only check namespace jobs 2021-01-21 10:26:24 -05:00
cli.go e2e: show command output on failure 2021-01-21 10:32:16 -05:00
consul.go e2e: add e2e test for service registration 2021-01-05 08:48:12 -06:00
deployments.go
e2ejob.go client: add NetworkStatus to Allocation (#8657) 2020-10-12 13:43:04 -04:00
job.go prevent double job status update (#9768) 2021-01-22 09:18:17 -05:00
node.go
utils.go e2e: use jobspec2 Parse for parsing jobfile in e2e utils 2021-01-13 14:00:40 -06:00
wait.go