Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Librato Alerts fixes #15118

Merged
merged 8 commits into from
Jun 6, 2017
Merged

Conversation

elblivion
Copy link
Contributor

This PR:

  • Fixes an error whereby updating an Alert times out due to the change not being properly taken into account, which we've run into several times already.
  • Applies a series of improvements to the and very likely bug fixes inspired by provider/librato: Enable mgmt of Librato metrics #14562

@elblivion
Copy link
Contributor Author

$ make testacc TEST=./builtin/providers/librato TESTARGS='-run=TestAccLibratoAlert'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/06/06 15:31:10 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/librato -v -run=TestAccLibratoAlert -timeout 120m
=== RUN   TestAccLibratoAlert_Minimal
--- PASS: TestAccLibratoAlert_Minimal (3.46s)
=== RUN   TestAccLibratoAlert_Basic
--- PASS: TestAccLibratoAlert_Basic (2.67s)
=== RUN   TestAccLibratoAlert_Full
--- PASS: TestAccLibratoAlert_Full (4.71s)
=== RUN   TestAccLibratoAlert_Updated
--- PASS: TestAccLibratoAlert_Updated (13.28s)
=== RUN   TestAccLibratoAlert_Rename
--- PASS: TestAccLibratoAlert_Rename (13.92s)
=== RUN   TestAccLibratoAlert_FullUpdate
--- PASS: TestAccLibratoAlert_FullUpdate (4.54s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/librato	42.590s

@elblivion
Copy link
Contributor Author

I'm also preparing a PR to add support for alerting on tagged metrics, should I roll both into one?

@stack72
Copy link
Contributor

stack72 commented Jun 6, 2017

@elblivion thanks for the PR - can you open a separate PR - that way we can merge them separately

Thanks

P.

@stack72
Copy link
Contributor

stack72 commented Jun 6, 2017

LGTM! thanks for this

% make testacc TEST=./builtin/providers/librato
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/06/06 19:26:30 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/librato -v  -timeout 120m
=== RUN   TestProvider
--- PASS: TestProvider (0.00s)
=== RUN   TestProvider_impl
--- PASS: TestProvider_impl (0.00s)
=== RUN   TestAccLibratoAlert_Minimal
--- PASS: TestAccLibratoAlert_Minimal (1.72s)
=== RUN   TestAccLibratoAlert_Basic
--- PASS: TestAccLibratoAlert_Basic (1.24s)
=== RUN   TestAccLibratoAlert_Full
--- PASS: TestAccLibratoAlert_Full (2.73s)
=== RUN   TestAccLibratoAlert_Updated
--- PASS: TestAccLibratoAlert_Updated (10.61s)
=== RUN   TestAccLibratoAlert_Rename
--- PASS: TestAccLibratoAlert_Rename (10.63s)
=== RUN   TestAccLibratoAlert_FullUpdate
--- PASS: TestAccLibratoAlert_FullUpdate (2.75s)
=== RUN   TestAccLibratoMetrics
--- PASS: TestAccLibratoMetrics (46.78s)
=== RUN   TestAccLibratoService_Basic
--- PASS: TestAccLibratoService_Basic (1.74s)
=== RUN   TestAccLibratoService_Updated
--- PASS: TestAccLibratoService_Updated (11.28s)
=== RUN   TestAccLibratoSpaceChart_Basic
--- PASS: TestAccLibratoSpaceChart_Basic (1.90s)
=== RUN   TestAccLibratoSpaceChart_Full
--- PASS: TestAccLibratoSpaceChart_Full (1.95s)
=== RUN   TestAccLibratoSpaceChart_Updated
--- PASS: TestAccLibratoSpaceChart_Updated (11.66s)
=== RUN   TestAccLibratoSpace_Basic
--- PASS: TestAccLibratoSpace_Basic (1.08s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/librato	106.093s

@stack72 stack72 merged commit 8acd564 into hashicorp:master Jun 6, 2017
@elblivion elblivion deleted the librato-alerts-fixes branch June 6, 2017 17:29
elblivion added a commit to elblivion/terraform-provider-librato that referenced this pull request Jun 19, 2017
@ghost
Copy link

ghost commented Apr 11, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants