Skip to content

Commit

Permalink
add test to verify rule is correctly set
Browse files Browse the repository at this point in the history
  • Loading branch information
qs-ndejesus committed Oct 24, 2023
1 parent 2dc93a6 commit 0a6f629
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions minio/resource_minio_ilm_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ func TestAccILMPolicy_expireNoncurrentVersion(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckMinioILMPolicyExists(resourceName, &lifecycleConfig),
testAccCheckMinioLifecycleConfigurationValid(&lifecycleConfig),
resource.TestCheckResourceAttr(
resourceName, "rule.0.noncurrent_version_expiration_days", "5"),
),
},
},
Expand Down

0 comments on commit 0a6f629

Please sign in to comment.