Skip to content

Commit 504356c

Browse files
authored
refactor(tests): add tf_acc_sysdig and unit tags for tests (#286)
1 parent fec59bd commit 504356c

File tree

57 files changed

+115
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+115
-3
lines changed

GNUmakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ sweep:
3131
go test $(TEST) -v -sweep=$(SWEEP) $(SWEEPARGS)
3232

3333
test: fmtcheck
34-
go test $(TEST) -timeout=30s -parallel=4
34+
go test $(TEST) -tags=unit -timeout=30s -parallel=4
3535

3636
testacc: fmtcheck
37-
CGO_ENABLED=1 TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m -race
37+
CGO_ENABLED=1 TF_ACC=1 go test $(TEST) -v $(TESTARGS) -tags=tf_acc_sysdig -timeout 120m -race
3838

3939
junit-report: fmtcheck
4040
@go install github.com/jstemmer/go-junit-report/v2@latest
41-
CGO_ENABLED=1 TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m -race 2>&1 | go-junit-report -iocopy -out junit-report.xml
41+
CGO_ENABLED=1 TF_ACC=1 go test $(TEST) -v $(TESTARGS) -tags=tf_acc_sysdig -timeout 120m -race 2>&1 | go-junit-report -iocopy -out junit-report.xml
4242

4343
vet:
4444
@echo "go vet ."

sysdig/data_source_sysdig_current_user_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build tf_acc_sysdig
2+
13
package sysdig_test
24

35
import (

sysdig/data_source_sysdig_fargate_ECS_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build unit
2+
13
package sysdig
24

35
import (

sysdig/data_source_sysdig_fargate_workload_agent_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build tf_acc_sysdig
2+
13
package sysdig_test
24

35
import (

sysdig/data_source_sysdig_monitor_notification_channel_email_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build tf_acc_sysdig
2+
13
package sysdig_test
24

35
import (

sysdig/data_source_sysdig_monitor_notification_channel_pagerduty_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build tf_acc_sysdig
2+
13
package sysdig_test
24

35
import (

sysdig/data_source_sysdig_secure_current_connection_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build tf_acc_sysdig
2+
13
package sysdig_test
24

35
import (

sysdig/data_source_sysdig_secure_notification_channel_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build tf_acc_sysdig
2+
13
package sysdig_test
24

35
import (

sysdig/data_source_sysdig_secure_trusted_cloud_identity_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build tf_acc_sysdig
2+
13
package sysdig_test
24

35
import (

sysdig/data_source_sysdig_user_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build tf_acc_sysdig
2+
13
package sysdig_test
24

35
import (

0 commit comments

Comments
 (0)