Skip to content

Commit 3418e3c

Browse files
committed
update test
1 parent 4aa69b8 commit 3418e3c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

cloudstack/resource_cloudstack_snapshot_policy_test.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func TestAccCloudStackSnapshotPolicy_update(t *testing.T) {
9696
Config: testAccCloudStackSnapshotPolicy_update,
9797
Check: resource.ComposeTestCheckFunc(
9898
testAccCheckCloudStackSnapshotPolicyExists("cloudstack_snapshot_policy.foo", &snapshotPolicy),
99-
resource.TestCheckResourceAttr("cloudstack_snapshot_policy.foo", "max_snaps", "10"),
99+
resource.TestCheckResourceAttr("cloudstack_snapshot_policy.foo", "max_snaps", "8"),
100100
resource.TestCheckResourceAttr("cloudstack_snapshot_policy.foo", "tags.Environment", "production"),
101101
resource.TestCheckResourceAttr("cloudstack_snapshot_policy.foo", "tags.Updated", "true"),
102102
),
@@ -290,7 +290,7 @@ resource "cloudstack_disk" "foo" {
290290
resource "cloudstack_snapshot_policy" "foo" {
291291
volume_id = cloudstack_disk.foo.id
292292
interval_type = "DAILY"
293-
max_snaps = 10
293+
max_snaps = 8
294294
schedule = "02:30"
295295
timezone = "UTC"
296296
zone_ids = [data.cloudstack_zone.zone.id]
@@ -351,6 +351,8 @@ resource "cloudstack_snapshot_policy" "hourly" {
351351
timezone = "UTC"
352352
zone_ids = [data.cloudstack_zone.zone.id]
353353
custom_id = "test-hourly"
354+
355+
tags = {}
354356
}
355357
`
356358

@@ -401,6 +403,8 @@ resource "cloudstack_snapshot_policy" "weekly" {
401403
schedule = "1:03:00" # Monday at 3:00 AM
402404
timezone = "UTC"
403405
zone_ids = [data.cloudstack_zone.zone.id]
406+
407+
tags = {}
404408
}
405409
`
406410

@@ -447,9 +451,11 @@ resource "cloudstack_disk" "foo" {
447451
resource "cloudstack_snapshot_policy" "monthly" {
448452
volume_id = cloudstack_disk.foo.id
449453
interval_type = "MONTHLY"
450-
max_snaps = 12
454+
max_snaps = 8
451455
schedule = "15:01:00" # 15th day at 1:00 AM
452456
timezone = "UTC"
453457
zone_ids = [data.cloudstack_zone.zone.id]
458+
459+
tags = {}
454460
}
455461
`

0 commit comments

Comments
 (0)