Skip to content

Commit

Permalink
Fix test TestAccDataflowJob_withProviderDefaultLabels (#11757)
Browse files Browse the repository at this point in the history
  • Loading branch information
zli82016 authored Sep 20, 2024
1 parent 31d7dca commit 7f1b8e6
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 7f1b8e6

Please sign in to comment.