Skip to content

Commit

Permalink
turn of notiication policy, fix value for routing rule, add user for …
Browse files Browse the repository at this point in the history
…config
  • Loading branch information
Benbentwo committed Jul 23, 2024
1 parent 7b92338 commit d732b48
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions examples/config/resources/users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ users:
role: User
locale: "en_US"
timezone: "America/New_York"

- username: opsgenie-test-2@cloudposse.com
full_name: Opsgenie Test User 2
role: User
locale: "en_US"
timezone: "America/New_York"
4 changes: 4 additions & 0 deletions test/src/examples_notification_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ func TestExamplesNotificationPolicyDeDuplicationAction(t *testing.T) {
}

func TestExamplesNotificationPolicyDelayAction(t *testing.T) {
// We are skipping this test because of the following error:
// Error: Error occurred with Status code: 403, Message: You are not authorized to use policies!, Took: 0.001000, RequestId: 66e46694-8e4c-4e20-9644-178db4b2f4c1
t.SkipNow()

t.Parallel()
randID := strings.ToLower(random.UniqueId())
attributes := []string{randID}
Expand Down
4 changes: 2 additions & 2 deletions test/src/examples_team_routing_rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func TestExamplesTeamRoutingRule(t *testing.T) {

// Run `terraform output` to get the value of an output variable
outputTeamRoutingRuleName := terraform.Output(t, terraformOptions, "team_routing_rule_name")

expectedTeamRoutingRuleName := "eg-test-team-routing-rule" + randID
// Verify we're getting back the outputs we expect
assert.Regexp(t, "^eg-test-team-routing-rule$", outputTeamRoutingRuleName)
assert.Equal(t, expectedTeamRoutingRuleName, outputTeamRoutingRuleName)
}

0 comments on commit d732b48

Please sign in to comment.