Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vsinghal13 committed Jul 28, 2023
1 parent cc643f7 commit 19d6fca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions sumologic/resource_sumologic_cloudwatch_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,13 @@ resource "sumologic_cloudwatch_source" "cloudwatch" {
namespace = "AWS/Route53"
tags = ["k1=v1"]
}
use_versioned_api = false
}
lifecycle {
ignore_changes = [
path["use_versioned_api"]
]
}
}
`, cName, cDescription, cCategory, sName, sDescription, sCategory, testAwsRoleArn)
}
3 changes: 2 additions & 1 deletion sumologic/resource_sumologic_gcp_metrics_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,10 @@ func testAccSumologicGcpMetricsSourceConfig(t *testing.T, cName, cDescription, c
service_name = "compute_instance_and_guests"
prefixes = ["%s" ,"compute.googleapis.com/guest/", "compute.googleapis.com/instance/"]
}
use_versioned_api = false
}
lifecycle {
ignore_changes = [authentication[0].private_key]
ignore_changes = [authentication[0].private_key, path["use_versioned_api"]]
}
}
`, cName, cDescription, cCategory, sName, sDescription, sCategory,
Expand Down
2 changes: 1 addition & 1 deletion sumologic/resource_sumologic_s3_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestAccSumologicS3Source_create(t *testing.T) {
s3ResourceName := "sumologic_s3_source.s3"
testAwsRoleArn := os.Getenv("SUMOLOGIC_TEST_ROLE_ARN")
testAwsBucket := os.Getenv("SUMOLOGIC_TEST_BUCKET_NAME")
useVersionedApi := false
useVersionedApi := true
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheckWithAWS(t) },
Providers: testAccProviders,
Expand Down

0 comments on commit 19d6fca

Please sign in to comment.