5370a0dc30
Previously Nomad acceptance tests would look for a `404` response from the Nomad API when querying a nomad job after it had been stopped. Nomad has, for a while now, cached jobs such that they are still returnable from the API but have `"dead"` as their status. ``` $ make testacc TEST=./builtin/providers/nomad ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /terraform/vendor/) 2017/05/03 16:27:31 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/nomad -v -timeout 120m === RUN TestProvider --- PASS: TestProvider (0.00s) === RUN TestResourceJob_basic --- PASS: TestResourceJob_basic (0.03s) === RUN TestResourceJob_refresh --- PASS: TestResourceJob_refresh (0.04s) === RUN TestResourceJob_disableDestroyDeregister --- PASS: TestResourceJob_disableDestroyDeregister (0.05s) === RUN TestResourceJob_idChange --- PASS: TestResourceJob_idChange (0.06s) === RUN TestResourceJob_parameterizedJob --- PASS: TestResourceJob_parameterizedJob (0.02s) PASS ok github.com/hashicorp/terraform/builtin/providers/nomad 0.222s ``` |
||
---|---|---|
.. | ||
provider.go | ||
provider_test.go | ||
resource_job.go | ||
resource_job_test.go |