Skip to content

Commit a98f432

Browse files
author
Sean Sain
committed
add precheck to collector test
1 parent 552de35 commit a98f432

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sumologic/resource_sumologic_collector_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ func TestAccSumologicCollector_basic(t *testing.T) {
1515
rname := acctest.RandomWithPrefix("tf-acc-test")
1616
resourceName := "sumologic_collector.test"
1717
resource.Test(t, resource.TestCase{
18+
PreCheck: func() { testAccPreCheck(t) },
1819
Providers: testAccProviders,
1920
CheckDestroy: testAccCheckCollectorDestroy,
2021
Steps: []resource.TestStep{
@@ -47,6 +48,7 @@ func TestAccSumologicCollector_create(t *testing.T) {
4748
rcategory := acctest.RandomWithPrefix("tf-acc-test")
4849
resourceName := "sumologic_collector.test"
4950
resource.Test(t, resource.TestCase{
51+
PreCheck: func() { testAccPreCheck(t) },
5052
Providers: testAccProviders,
5153
CheckDestroy: testAccCheckCollectorDestroy,
5254
Steps: []resource.TestStep{
@@ -76,6 +78,7 @@ func TestAccSumologicCollector_update(t *testing.T) {
7678
rcategory := acctest.RandomWithPrefix("tf-acc-test")
7779
resourceName := "sumologic_collector.test"
7880
resource.Test(t, resource.TestCase{
81+
PreCheck: func() { testAccPreCheck(t) },
7982
Providers: testAccProviders,
8083
CheckDestroy: testAccCheckCollectorDestroy,
8184
Steps: []resource.TestStep{

0 commit comments

Comments
 (0)