-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Conversation
Hi @elblivion Thanks for the work here :) Will start testing this now Paul |
Hi @elblivion These changes LGTM! I manually merged and also used this as a chance to randomize the acceptance test names:
Thanks for all the work here :) Paul |
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! |
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. |
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. |
Adds test cases and fixes for:
name
andconditions
attributes weren't being sent on Update unless changed