Skip to content

Commit

Permalink
Merge pull request #1689 from snyk/fix/skip-flaky-tests
Browse files Browse the repository at this point in the history
fix: skip flaky tests
  • Loading branch information
francescomari authored Sep 25, 2023
2 parents 2bc17c0 + 70b4f9c commit 64c2c02
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/iac/terraform/state/terraform_state_reader_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ import (
"time"

"github.com/aws/aws-sdk-go/service/s3"

"github.com/snyk/driftctl/test"
"github.com/snyk/driftctl/test/acceptance"
"github.com/snyk/driftctl/test/acceptance/awsutils"
)

func TestAcc_StateReader_WithMultipleStatesInDirectory(t *testing.T) {
t.Skip("flake")

acceptance.Run(t, acceptance.AccTestCase{
TerraformVersion: "0.14.9",
Paths: []string{
Expand Down
2 changes: 2 additions & 0 deletions pkg/resource/aws/aws_cloudfront_distribution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import (
)

func TestAcc_Aws_CloudfrontDistribution(t *testing.T) {
t.Skip("flake")

var mutatedDistribution string
acceptance.Run(t, acceptance.AccTestCase{
TerraformVersion: "0.15.5",
Expand Down
4 changes: 4 additions & 0 deletions pkg/resource/aws/aws_network_acl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (

// This test cover both aws_network_acl and `aws_network_acl_rule`
func TestAcc_Aws_NetworkAcl(t *testing.T) {
t.Skip("flake")

acceptance.Run(t, acceptance.AccTestCase{
TerraformVersion: "0.15.5",
Paths: []string{"./testdata/acc/aws_network_acl"},
Expand All @@ -33,6 +35,8 @@ func TestAcc_Aws_NetworkAcl(t *testing.T) {

// This test cover both aws_network_acl and `aws_network_acl_rule`
func TestAcc_Aws_NetworkAcl_NonDeep(t *testing.T) {
t.Skip("flake")

acceptance.Run(t, acceptance.AccTestCase{
TerraformVersion: "0.15.5",
Paths: []string{"./testdata/acc/aws_network_acl"},
Expand Down
2 changes: 2 additions & 0 deletions pkg/resource/aws/aws_route_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
)

func TestAcc_Aws_RouteTable(t *testing.T) {
t.Skip("flake")

acceptance.Run(t, acceptance.AccTestCase{
TerraformVersion: "1.0.2",
Paths: []string{"./testdata/acc/aws_route_table"},
Expand Down
2 changes: 2 additions & 0 deletions pkg/resource/aws/aws_s3_bucket_public_access_block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
)

func TestAcc_Aws_S3Bucket_PublicAccessBlock(t *testing.T) {
t.Skip("flake")

acceptance.Run(t, acceptance.AccTestCase{
TerraformVersion: "0.15.5",
Paths: []string{"./testdata/acc/aws_s3_bucket_public_access_block"},
Expand Down
3 changes: 3 additions & 0 deletions pkg/resource/aws/aws_sqs_queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/sqs"
"github.com/r3labs/diff/v2"

awsresources "github.com/snyk/driftctl/enumeration/resource/aws"
"github.com/snyk/driftctl/pkg/analyser"
"github.com/snyk/driftctl/test"
Expand All @@ -15,6 +16,8 @@ import (
)

func TestAcc_Aws_SQSQueue(t *testing.T) {
t.Skip("flake")

var mutatedQueue string
acceptance.Run(t, acceptance.AccTestCase{
TerraformVersion: "0.15.5",
Expand Down
2 changes: 2 additions & 0 deletions pkg/resource/aws/aws_vpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
)

func TestAcc_Aws_VPC(t *testing.T) {
t.Skip("flake")

acceptance.Run(t, acceptance.AccTestCase{
TerraformVersion: "0.15.5",
Paths: []string{"./testdata/acc/aws_vpc"},
Expand Down
2 changes: 2 additions & 0 deletions pkg/resource/google/google_compute_subnetwork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
)

func TestAcc_Google_ComputeSubnetwork(t *testing.T) {
t.Skip("flake")

acceptance.Run(t, acceptance.AccTestCase{
TerraformVersion: "0.15.5",
Paths: []string{"./testdata/acc/google_compute_subnetwork"},
Expand Down
2 changes: 2 additions & 0 deletions pkg/resource/google/google_dns_managed_zone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
)

func TestAcc_Google_DNSManagedZone(t *testing.T) {
t.Skip("flake")

acceptance.Run(t, acceptance.AccTestCase{
TerraformVersion: "0.15.5",
Paths: []string{"./testdata/acc/google_dns_managed_zone"},
Expand Down
2 changes: 2 additions & 0 deletions pkg/resource/google/google_storage_bucket_iam_binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
)

func TestAcc_Google_StorageBucketIAMBinding(t *testing.T) {
t.Skip("flake")

acceptance.Run(t, acceptance.AccTestCase{
TerraformVersion: "0.15.5",
Paths: []string{"./testdata/acc/google_storage_bucket_iam_binding"},
Expand Down
2 changes: 2 additions & 0 deletions pkg/resource/google/google_storage_bucket_iam_member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
)

func TestAcc_Google_StorageBucketIAMMember(t *testing.T) {
t.Skip("flake")

acceptance.Run(t, acceptance.AccTestCase{
TerraformVersion: "0.15.5",
Paths: []string{"./testdata/acc/google_storage_bucket_iam_member"},
Expand Down
2 changes: 2 additions & 0 deletions pkg/resource/google/google_storage_bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
)

func TestAcc_Google_StorageBucket(t *testing.T) {
t.Skip("flake")

acceptance.Run(t, acceptance.AccTestCase{
TerraformVersion: "0.15.5",
Paths: []string{"./testdata/acc/google_storage_bucket"},
Expand Down

0 comments on commit 64c2c02

Please sign in to comment.