Skip to content

Commit

Permalink
Amending tests to verify following plan apply no further diff remains (
Browse files Browse the repository at this point in the history
  • Loading branch information
bendbennett committed Oct 13, 2022
1 parent 284988d commit 3a89efb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
14 changes: 6 additions & 8 deletions internal/provider/resource_locally_signed_cert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,9 @@ func TestResourceLocallySignedCert_DetectExpiring_Refresh(t *testing.T) {
Check: r.TestCheckResourceAttr("tls_locally_signed_cert.test", "ready_for_renewal", "true"),
},
{
PreConfig: setTimeForTest("2019-06-14T21:30:00Z"),
Config: locallySignedCertConfig(10, 2),
PlanOnly: true,
ExpectNonEmptyPlan: true,
PreConfig: setTimeForTest("2019-06-14T21:30:00Z"),
Config: locallySignedCertConfig(10, 2),
Check: r.TestCheckResourceAttr("tls_locally_signed_cert.test", "ready_for_renewal", "false"),
},
},
})
Expand All @@ -244,10 +243,9 @@ func TestResourceLocallySignedCert_DetectExpired_Refresh(t *testing.T) {
Check: r.TestCheckResourceAttr("tls_locally_signed_cert.test", "ready_for_renewal", "true"),
},
{
PreConfig: setTimeForTest("2019-06-14T23:30:00Z"),
Config: locallySignedCertConfig(10, 2),
PlanOnly: true,
ExpectNonEmptyPlan: true,
PreConfig: setTimeForTest("2019-06-14T23:30:00Z"),
Config: locallySignedCertConfig(10, 2),
Check: r.TestCheckResourceAttr("tls_locally_signed_cert.test", "ready_for_renewal", "false"),
},
},
})
Expand Down
14 changes: 6 additions & 8 deletions internal/provider/resource_self_signed_cert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,9 @@ func TestResourceSelfSignedCert_DetectExpiring_Refresh(t *testing.T) {
Check: r.TestCheckResourceAttr("tls_self_signed_cert.test1", "ready_for_renewal", "true"),
},
{
PreConfig: setTimeForTest("2019-06-14T21:30:00Z"),
Config: selfSignedCertConfig(10, 2),
PlanOnly: true,
ExpectNonEmptyPlan: true,
PreConfig: setTimeForTest("2019-06-14T21:30:00Z"),
Config: selfSignedCertConfig(10, 2),
Check: r.TestCheckResourceAttr("tls_self_signed_cert.test1", "ready_for_renewal", "false"),
},
},
})
Expand All @@ -262,10 +261,9 @@ func TestResourceSelfSignedCert_DetectExpired_Refresh(t *testing.T) {
Check: r.TestCheckResourceAttr("tls_self_signed_cert.test1", "ready_for_renewal", "true"),
},
{
PreConfig: setTimeForTest("2019-06-14T23:30:00Z"),
Config: selfSignedCertConfig(10, 2),
PlanOnly: true,
ExpectNonEmptyPlan: true,
PreConfig: setTimeForTest("2019-06-14T23:30:00Z"),
Config: selfSignedCertConfig(10, 2),
Check: r.TestCheckResourceAttr("tls_self_signed_cert.test1", "ready_for_renewal", "false"),
},
},
})
Expand Down

0 comments on commit 3a89efb

Please sign in to comment.