Skip to content

Commit

Permalink
fix pre check
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinBettati committed Apr 26, 2024
1 parent 9b706ac commit 4ece18d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ func TestAccConfigAlertConfiguration_PagerDutyUsingIntegrationID(t *testing.T) {
)

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acc.PreCheckPagerDutyIntegrationID(t); acc.PreCheckBasic(t) },
PreCheck: func() { acc.PreCheckBasic(t) },
ProtoV6ProviderFactories: acc.TestAccProviderV6FactoriesWithProxy(proxyPort),
CheckDestroy: checkDestroyUsingProxy(proxyPort),
Steps: []resource.TestStep{
Expand Down
7 changes: 0 additions & 7 deletions internal/testutil/acc/pre_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,3 @@ func PreCheckS3Bucket(tb testing.TB) {
tb.Fatal("`AWS_S3_BUCKET` must be set ")
}
}

func PreCheckPagerDutyIntegrationID(tb testing.TB) {
tb.Helper()
if os.Getenv("MONGODB_ATLAS_PAGER_DUTY_THIRD_PARTY_INTEGRATION_ID") == "" {
tb.Fatal("`MONGODB_ATLAS_PAGER_DUTY_THIRD_PARTY_INTEGRATION_ID` must be set ")
}
}

0 comments on commit 4ece18d

Please sign in to comment.