Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for changing trigger recipient ids
A quick attempt to add an acceptance test for changing the recipient ids of a `honeycombio_trigger` to reproduce honeycombio#267. Since I don't have a fully clean slate to work with (recipients and other global objects are shared in my org's Honeycomb API access), I can't be sure if this failure is accidental or demonstrates the problem in honeycombio#267. It currently fails on my machine in a special environment and dataset just for it with: ``` $ TF_ACC=1 go test -v -run=TestAccHoneycombIOTrigger_changingRecipientID ./... ? github.com/honeycombio/terraform-provider-honeycombio [no test files] testing: warning: no tests to run PASS ok github.com/honeycombio/terraform-provider-honeycombio/client (cached) [no tests to run] ? github.com/honeycombio/terraform-provider-honeycombio/client/internal/httputil [no test files] === RUN TestAccHoneycombIOTrigger_changingRecipientID resource_trigger_test.go:213: Step 2/2 error: Check failed: honeycombio_trigger.test: Attribute 'recipient.0.id' expected "xmbNbyhSY91", got "rX2sUPHwbjn" testing_new.go:84: Error running post-test destroy, there may be dangling resources: exit status 1 Error: 409 Conflict: Recipient rX2sUPHwbjn is being used by a trigger or burn alert and cannot be deleted --- FAIL: TestAccHoneycombIOTrigger_changingRecipientID (4.38s) FAIL FAIL github.com/honeycombio/terraform-provider-honeycombio/honeycombio 4.703s ? github.com/honeycombio/terraform-provider-honeycombio/honeycombio/internal/hashcode [no test files] ? github.com/honeycombio/terraform-provider-honeycombio/honeycombio/internal/verify [no test files] FAIL ```
- Loading branch information