-
Notifications
You must be signed in to change notification settings - Fork 249
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(entity_tags): fixed improper error handling in newrelic_entity_tags
resource
#2710
Conversation
@shashank-reddy-nr if you find we have no relevant test cases that validate errors thrown inside the response body of entity tags create and update mutations, can you please add a relevant test case which throws the error you've added (and can be validated by regex of the error) |
newrelic_entity_tags
resource
@shashank-reddy-nr please also add a note to the docs of this resource stating that modifying values of restricted tags is not supported by the create and update mutations; consequently, this is not supported by this resource as well - you can add this link as a reference to these restricted tags |
Added integration test cases to validate errors thrown : newrelic/newrelic-client-go#1188 |
newrelic_entity_tags
resourcenewrelic_entity_tags
resource
f2934cb
to
f361485
Compare
Description
Currently, In newrelic_entity_tags resource there is improper error handling when we try to update reserved tags(default tags which will be added when we create entity). Please check out the below JIRA ticket for more info.
JIRA Ticket: https://new-relic.atlassian.net/browse/NR-273648
Fixes
Added a new function CreateErrorDiagnostics which will print all errors if present in the response called nerdgraph APIs. The CreateErrorDiagnostics function is called in resourceNewRelicEntityTagsCreate, resourceNewRelicEntityTagsUpdate, resourceNewRelicEntityTagsDelete.
Type of change
Please delete options that are not relevant.
Checklist:
Please delete options that are not relevant.