Skip to content

Commit

Permalink
Modifying refresh tests to use the option to check expect non-empty p…
Browse files Browse the repository at this point in the history
  • Loading branch information
bendbennett committed Oct 6, 2022
1 parent 60601c7 commit 5cf8851
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions internal/provider/resource_locally_signed_cert_test.go
Expand Up @@ -211,10 +211,10 @@ func TestResourceLocallySignedCert_DetectExpiring_Refresh(t *testing.T) {
Check: r.TestCheckResourceAttr("tls_locally_signed_cert.test", "ready_for_renewal", "false"),
},
{
PreConfig: setTimeForTest("2019-06-14T21:30:00Z"),
Config: locallySignedCertConfig(10, 2),
RefreshState: true,
Check: r.TestCheckResourceAttr("tls_locally_signed_cert.test", "ready_for_renewal", "true"),
PreConfig: setTimeForTest("2019-06-14T21:30:00Z"),
RefreshState: true,
ExpectNonEmptyPlan: true,
Check: r.TestCheckResourceAttr("tls_locally_signed_cert.test", "ready_for_renewal", "true"),
},
{
PreConfig: setTimeForTest("2019-06-14T21:30:00Z"),
Expand All @@ -238,10 +238,10 @@ func TestResourceLocallySignedCert_DetectExpired_Refresh(t *testing.T) {
Check: r.TestCheckResourceAttr("tls_locally_signed_cert.test", "ready_for_renewal", "false"),
},
{
PreConfig: setTimeForTest("2019-06-14T23:30:00Z"),
Config: locallySignedCertConfig(10, 2),
RefreshState: true,
Check: r.TestCheckResourceAttr("tls_locally_signed_cert.test", "ready_for_renewal", "true"),
PreConfig: setTimeForTest("2019-06-14T23:30:00Z"),
RefreshState: true,
ExpectNonEmptyPlan: true,
Check: r.TestCheckResourceAttr("tls_locally_signed_cert.test", "ready_for_renewal", "true"),
},
{
PreConfig: setTimeForTest("2019-06-14T23:30:00Z"),
Expand Down
16 changes: 8 additions & 8 deletions internal/provider/resource_self_signed_cert_test.go
Expand Up @@ -229,10 +229,10 @@ func TestResourceSelfSignedCert_DetectExpiring_Refresh(t *testing.T) {
Check: r.TestCheckResourceAttr("tls_self_signed_cert.test1", "ready_for_renewal", "false"),
},
{
PreConfig: setTimeForTest("2019-06-14T21:30:00Z"),
Config: selfSignedCertConfig(10, 2),
RefreshState: true,
Check: r.TestCheckResourceAttr("tls_self_signed_cert.test1", "ready_for_renewal", "true"),
PreConfig: setTimeForTest("2019-06-14T21:30:00Z"),
RefreshState: true,
ExpectNonEmptyPlan: true,
Check: r.TestCheckResourceAttr("tls_self_signed_cert.test1", "ready_for_renewal", "true"),
},
{
PreConfig: setTimeForTest("2019-06-14T21:30:00Z"),
Expand All @@ -256,10 +256,10 @@ func TestResourceSelfSignedCert_DetectExpired_Refresh(t *testing.T) {
Check: r.TestCheckResourceAttr("tls_self_signed_cert.test1", "ready_for_renewal", "false"),
},
{
PreConfig: setTimeForTest("2019-06-14T23:30:00Z"),
Config: selfSignedCertConfig(10, 2),
RefreshState: true,
Check: r.TestCheckResourceAttr("tls_self_signed_cert.test1", "ready_for_renewal", "true"),
PreConfig: setTimeForTest("2019-06-14T23:30:00Z"),
RefreshState: true,
ExpectNonEmptyPlan: true,
Check: r.TestCheckResourceAttr("tls_self_signed_cert.test1", "ready_for_renewal", "true"),
},
{
PreConfig: setTimeForTest("2019-06-14T23:30:00Z"),
Expand Down

0 comments on commit 5cf8851

Please sign in to comment.