diff --git a/sumologic/resource_sumologic_cloudwatch_source_test.go b/sumologic/resource_sumologic_cloudwatch_source_test.go index 5c801de6..e58e904d 100644 --- a/sumologic/resource_sumologic_cloudwatch_source_test.go +++ b/sumologic/resource_sumologic_cloudwatch_source_test.go @@ -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) } diff --git a/sumologic/resource_sumologic_gcp_metrics_source_test.go b/sumologic/resource_sumologic_gcp_metrics_source_test.go index 45256f06..27cd07fb 100644 --- a/sumologic/resource_sumologic_gcp_metrics_source_test.go +++ b/sumologic/resource_sumologic_gcp_metrics_source_test.go @@ -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, diff --git a/sumologic/resource_sumologic_s3_source_test.go b/sumologic/resource_sumologic_s3_source_test.go index c5d2b31f..8bfb3c38 100644 --- a/sumologic/resource_sumologic_s3_source_test.go +++ b/sumologic/resource_sumologic_s3_source_test.go @@ -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,