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

Fix bugs in Librato provider #8984

Closed
wants to merge 2 commits into from

Conversation

elblivion
Copy link
Contributor

Adds test cases and fixes for:

@stack72
Copy link
Contributor

stack72 commented Sep 22, 2016

Hi @elblivion

Thanks for the work here :) Will start testing this now

Paul

@stack72
Copy link
Contributor

stack72 commented Sep 22, 2016

Hi @elblivion

These changes LGTM! I manually merged and also used this as a chance to randomize the acceptance test names:

% make testacc TEST=./builtin/providers/librato TESTARGS='-run='                                                                                           
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/09/22 12:40:37 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/librato -v -run= -timeout 120m
=== RUN   TestProvider
--- PASS: TestProvider (0.00s)
=== RUN   TestProvider_impl
--- PASS: TestProvider_impl (0.00s)
=== RUN   TestAccLibratoAlert_Basic
--- PASS: TestAccLibratoAlert_Basic (1.53s)
=== RUN   TestAccLibratoAlert_Full
--- PASS: TestAccLibratoAlert_Full (2.93s)
=== RUN   TestAccLibratoAlert_Updated
--- PASS: TestAccLibratoAlert_Updated (1.85s)
=== RUN   TestAccLibratoAlert_FullUpdate
--- PASS: TestAccLibratoAlert_FullUpdate (3.12s)
=== RUN   TestAccLibratoService_Basic
--- PASS: TestAccLibratoService_Basic (3.25s)
=== RUN   TestAccLibratoService_Updated
--- PASS: TestAccLibratoService_Updated (2.87s)
=== RUN   TestAccLibratoSpaceChart_Basic
--- PASS: TestAccLibratoSpaceChart_Basic (1.87s)
=== RUN   TestAccLibratoSpaceChart_Full
--- PASS: TestAccLibratoSpaceChart_Full (2.32s)
=== RUN   TestAccLibratoSpaceChart_Updated
--- PASS: TestAccLibratoSpaceChart_Updated (2.89s)
=== RUN   TestAccLibratoSpace_Basic
--- PASS: TestAccLibratoSpace_Basic (1.28s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/librato        23.929s

Thanks for all the work here :)

Paul

@stack72 stack72 closed this Sep 22, 2016
@elblivion elblivion deleted the fix-librato-bugs branch September 22, 2016 14:30
@elblivion
Copy link
Contributor Author

Thanks and sorry for the shoddy work the first time around - still working on getting this rolled out in our environment. 😭

BTW if you have the time: are there any helper functions or useful patterns for calculating hashes of sets in test configs? I had to copy & paste the test config and run Terraform manually to work out the right hash value for the new tests (cf. https://github.com/hashicorp/terraform/blob/master/builtin/providers/librato/resource_librato_alert_test.go#L53)

Thanks!

@stack72
Copy link
Contributor

stack72 commented Sep 23, 2016

Nothing to apologise for at all sir! :) Providers are an ever evolving thing!

I wish i could say there was a tip for the hash calculation but there isn't. I usually run the test in debug mode and read the logs along the CREATE: log to get the hashes then make the test pass the second time :)

P.

@ghost
Copy link

ghost commented Apr 22, 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 22, 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