Skip to content

Commit

Permalink
update go-sdk-v2 version (#203)
Browse files Browse the repository at this point in the history
Signed-off-by: Fahri YARDIMCI <[email protected]>
  • Loading branch information
Fahri YARDIMCI authored Dec 4, 2020
1 parent c5062d9 commit 349d437
Show file tree
Hide file tree
Showing 8 changed files with 134 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ go 1.14
require (
github.com/hashicorp/go-retryablehttp v0.6.6
github.com/hashicorp/terraform-plugin-sdk v1.15.0
github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.2-0.20200911071451-adf7a1c79aac
github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.3-0.20201204102414-d90cad05198b
github.com/pkg/errors v0.8.1
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.2-0.20200911071451-adf7a1c79aac h1:SxtpD9CfTncbSkcNVYeqW46DXJqz5b7HH8/BB43D+h0=
github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.2-0.20200911071451-adf7a1c79aac/go.mod h1:VOkJ7STzYj+nXRhMcBTcmt8uZZ17KZKJdZtJpgHLbT8=
github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.3-0.20201204102414-d90cad05198b h1:Nzbg89GTBuyy6Cy0+M3bwHyy1YHO3W9CS3Z909GImlE=
github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.3-0.20201204102414-d90cad05198b/go.mod h1:VOkJ7STzYj+nXRhMcBTcmt8uZZ17KZKJdZtJpgHLbT8=
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
Expand Down
60 changes: 59 additions & 1 deletion opsgenie/resource_opsgenie_schedule_rotation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,19 @@ resource "opsgenie_schedule" "test" {
owner_team_id = "${opsgenie_team.test.id}"
}
resource "opsgenie_escalation" "test" {
name ="genieescalationsched-%s"
rules {
condition = "if-not-acked"
notify_type = "default"
recipient {
type = "user"
id = "${opsgenie_user.test.id}"
}
delay = 1
}
}
resource "opsgenie_schedule_rotation" "test" {
schedule_id = "${opsgenie_schedule.test.id}"
name = "test-%s"
Expand Down Expand Up @@ -270,5 +283,50 @@ resource "opsgenie_schedule_rotation" "test2" {
}
}
}
`, randomName, randomTeam, randomSchedule, randomRotation, randomRotation2)
resource "opsgenie_schedule_rotation" "none" {
schedule_id = "${opsgenie_schedule.test.id}"
name = "schedulenone-%s"
start_date = "2019-06-18T17:30:00Z"
end_date ="2019-06-20T17:00:00Z"
type ="hourly"
length = 6
participant {
type = "none"
}
time_restriction {
type ="time-of-day"
restriction {
start_hour = 1
start_min = 0
end_hour = 10
end_min = 0
}
}
}
resource "opsgenie_schedule_rotation" "esc" {
schedule_id = "${opsgenie_schedule.test.id}"
name = "schedule-escalation-%s"
start_date = "2019-06-18T17:30:00Z"
end_date ="2019-06-20T17:00:00Z"
type ="hourly"
length = 6
participant {
type = "escalation"
id = "${opsgenie_escalation.test.id}"
}
time_restriction {
type ="time-of-day"
restriction {
start_hour = 1
start_min = 0
end_hour = 10
end_min = 0
}
}
}
`, randomName, randomTeam, randomSchedule, randomRotation, randomRotation2, randomRotation2, randomRotation2, randomRotation2)
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions vendor/github.com/opsgenie/opsgenie-go-sdk-v2/og/entity.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,12 @@ github.com/mitchellh/mapstructure
github.com/mitchellh/reflectwalk
# github.com/oklog/run v1.0.0
github.com/oklog/run
# github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.2-0.20200911071451-adf7a1c79aac
# github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.3-0.20201204102414-d90cad05198b
## explicit
github.com/opsgenie/opsgenie-go-sdk-v2/alert
github.com/opsgenie/opsgenie-go-sdk-v2/client
github.com/opsgenie/opsgenie-go-sdk-v2/contact
github.com/opsgenie/opsgenie-go-sdk-v2/custom_user_role
github.com/opsgenie/opsgenie-go-sdk-v2/escalation
github.com/opsgenie/opsgenie-go-sdk-v2/heartbeat
github.com/opsgenie/opsgenie-go-sdk-v2/incident
Expand Down

0 comments on commit 349d437

Please sign in to comment.