Skip to content

Commit a2ec78b

Browse files
committed
update test to use cardinals as opposed to frequency of interval type
1 parent 618b338 commit a2ec78b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cloudstack/resource_cloudstack_snapshot_policy_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ resource "cloudstack_disk" "foo" {
234234
235235
resource "cloudstack_snapshot_policy" "foo" {
236236
volume_id = cloudstack_disk.foo.id
237-
interval_type = "DAILY"
237+
interval_type = 1
238238
max_snaps = 7
239239
schedule = "02:30"
240240
timezone = "UTC"
@@ -345,7 +345,7 @@ resource "cloudstack_disk" "foo" {
345345
346346
resource "cloudstack_snapshot_policy" "hourly" {
347347
volume_id = cloudstack_disk.foo.id
348-
interval_type = "HOURLY"
348+
interval_type = 0
349349
max_snaps = 6
350350
schedule = "0"
351351
timezone = "UTC"
@@ -396,7 +396,7 @@ resource "cloudstack_disk" "foo" {
396396
397397
resource "cloudstack_snapshot_policy" "weekly" {
398398
volume_id = cloudstack_disk.foo.id
399-
interval_type = "WEEKLY"
399+
interval_type = 2
400400
max_snaps = 4
401401
schedule = "1:03:00" # Monday at 3:00 AM
402402
timezone = "UTC"
@@ -446,7 +446,7 @@ resource "cloudstack_disk" "foo" {
446446
447447
resource "cloudstack_snapshot_policy" "monthly" {
448448
volume_id = cloudstack_disk.foo.id
449-
interval_type = "MONTHLY"
449+
interval_type = 3
450450
max_snaps = 12
451451
schedule = "15:01:00" # 15th day at 1:00 AM
452452
timezone = "UTC"

0 commit comments

Comments
 (0)