-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
[escalation] Single recipient per rule #58
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, the opsgenie api and docs can be a bit off - nice catch on the result if multiple recipients are sent
/terratest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/terratest |
f3e8ced
to
3f2784d
Compare
Opsgenie only accepts a single recipient per rule. Worst than that, if we send more than one recipient, OpsGenie API will accept the payload will add only the first recipient and will return 200.
3f2784d
to
3479e92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if we are going to make rules
dynamic (which it should be) and an array we should do it across the board for consistency. lots of places should be updated to use rules
instead of rule
9908e1d
to
835049e
Compare
835049e
to
59ab19b
Compare
/terratest |
/terratest |
Tests are currently failing because delay is non optional based on the missing |
Co-authored-by: Benjamin Smith <[email protected]>
/terratest |
/terratest |
/terratest |
This is now failling due to test collisions and not cleaning up, going to merge and fix tests in later PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now failing due to test collisions and not cleaning up, going to merge and fix tests in future PR
what
Rename
recipients
torecipient
into Escalation rules.And add the possibility to add multiple rules per escalation.
why
Opsgenie only accepts a single recipient per escalation rule.
Worst than that, if we send more than one recipient, OpsGenie API will accept the payload will add only the first recipient and will return 200.
references
opsgenie_escalation terraform module