Skip to content

Commit

Permalink
Fix test TestAccDataflowJob_withProviderDefaultLabels (GoogleCloudPla…
Browse files Browse the repository at this point in the history
  • Loading branch information
zli82016 authored and Philip Jonany committed Nov 4, 2024
1 parent 73c7ea5 commit b381b7e
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,12 @@ func TestAccDataflowJob_withProviderDefaultLabels(t *testing.T) {
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "labels.env", "foo"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "labels.default_expiration_ms", "3600000"),

resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.%", "3"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.%", "4"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.default_key1", "default_value1"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.env", "foo"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.default_expiration_ms", "3600000"),

resource.TestCheckResourceAttr("google_dataflow_job.big_data", "effective_labels.%", "6"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "effective_labels.%", "7"),
),
},
{
Expand All @@ -302,12 +302,12 @@ func TestAccDataflowJob_withProviderDefaultLabels(t *testing.T) {
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "labels.default_expiration_ms", "3600000"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "labels.default_key1", "value1"),

resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.%", "3"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.%", "4"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.default_key1", "value1"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.env", "foo"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.default_expiration_ms", "3600000"),

resource.TestCheckResourceAttr("google_dataflow_job.big_data", "effective_labels.%", "6"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "effective_labels.%", "7"),
),
},
{
Expand All @@ -325,12 +325,12 @@ func TestAccDataflowJob_withProviderDefaultLabels(t *testing.T) {
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "labels.default_expiration_ms", "3600000"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "labels.default_key1", "value1"),

resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.%", "3"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.%", "4"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.default_key1", "value1"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.env", "foo"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.default_expiration_ms", "3600000"),

resource.TestCheckResourceAttr("google_dataflow_job.big_data", "effective_labels.%", "6"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "effective_labels.%", "7"),
),
},
{
Expand All @@ -347,12 +347,12 @@ func TestAccDataflowJob_withProviderDefaultLabels(t *testing.T) {
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "labels.default_expiration_ms", "3600000"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "labels.default_key1", "value1"),

resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.%", "3"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.%", "4"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.default_key1", "value1"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.env", "foo"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "terraform_labels.default_expiration_ms", "3600000"),

resource.TestCheckResourceAttr("google_dataflow_job.big_data", "effective_labels.%", "6"),
resource.TestCheckResourceAttr("google_dataflow_job.big_data", "effective_labels.%", "7"),
),
},
{
Expand Down

0 comments on commit b381b7e

Please sign in to comment.