-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7571fad
commit adafc3e
Showing
12 changed files
with
45 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,12 +81,14 @@ func TestAlertingV3PolicyUpdateWithOptionalParams(t *testing.T) { | |
Zones: cloudflare.F([]string{"string", "string", "string"}), | ||
}), | ||
Mechanisms: cloudflare.F(map[string][]cloudflare.AlertingV3PolicyUpdateParamsMechanisms{ | ||
"foo": {{ | ||
ID: cloudflare.F[cloudflare.AlertingV3PolicyUpdateParamsMechanismsID](shared.UnionString("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")), | ||
}, { | ||
ID: cloudflare.F[cloudflare.AlertingV3PolicyUpdateParamsMechanismsID](shared.UnionString("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")), | ||
}, { | ||
ID: cloudflare.F[cloudflare.AlertingV3PolicyUpdateParamsMechanismsID](shared.UnionString("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")), | ||
"email": {{ | ||
ID: cloudflare.F[cloudflare.AlertingV3PolicyUpdateParamsMechanismsID](shared.UnionString("[email protected]")), | ||
}}, | ||
"pagerduty": {{ | ||
ID: cloudflare.F[cloudflare.AlertingV3PolicyUpdateParamsMechanismsID](shared.UnionString("e8133a15-00a4-4d69-aec1-32f70c51f6e5")), | ||
}}, | ||
"webhooks": {{ | ||
ID: cloudflare.F[cloudflare.AlertingV3PolicyUpdateParamsMechanismsID](shared.UnionString("14cc1190-5d2b-4b98-a696-c424cb2ad05f")), | ||
}}, | ||
}), | ||
Name: cloudflare.F("SSL Notification Event Policy"), | ||
|
@@ -184,12 +186,14 @@ func TestAlertingV3PolicyNotificationPoliciesNewANotificationPolicyWithOptionalP | |
AlertType: cloudflare.F(cloudflare.AlertingV3PolicyNotificationPoliciesNewANotificationPolicyParamsAlertTypeUniversalSSLEventType), | ||
Enabled: cloudflare.F(true), | ||
Mechanisms: cloudflare.F(map[string][]cloudflare.AlertingV3PolicyNotificationPoliciesNewANotificationPolicyParamsMechanisms{ | ||
"foo": {{ | ||
ID: cloudflare.F[cloudflare.AlertingV3PolicyNotificationPoliciesNewANotificationPolicyParamsMechanismsID](shared.UnionString("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")), | ||
}, { | ||
ID: cloudflare.F[cloudflare.AlertingV3PolicyNotificationPoliciesNewANotificationPolicyParamsMechanismsID](shared.UnionString("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")), | ||
}, { | ||
ID: cloudflare.F[cloudflare.AlertingV3PolicyNotificationPoliciesNewANotificationPolicyParamsMechanismsID](shared.UnionString("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")), | ||
"email": {{ | ||
ID: cloudflare.F[cloudflare.AlertingV3PolicyNotificationPoliciesNewANotificationPolicyParamsMechanismsID](shared.UnionString("[email protected]")), | ||
}}, | ||
"pagerduty": {{ | ||
ID: cloudflare.F[cloudflare.AlertingV3PolicyNotificationPoliciesNewANotificationPolicyParamsMechanismsID](shared.UnionString("e8133a15-00a4-4d69-aec1-32f70c51f6e5")), | ||
}}, | ||
"webhooks": {{ | ||
ID: cloudflare.F[cloudflare.AlertingV3PolicyNotificationPoliciesNewANotificationPolicyParamsMechanismsID](shared.UnionString("14cc1190-5d2b-4b98-a696-c424cb2ad05f")), | ||
}}, | ||
}), | ||
Name: cloudflare.F("SSL Notification Event Policy"), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters