Skip to content

Commit

Permalink
Fix test TestAccDataflowJob_withProviderDefaultLabels (#11757) (#19556)
Browse files Browse the repository at this point in the history
[upstream:7f1b8e6049398baa628f50cfb0454f7ad18ad254]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Sep 20, 2024
1 parent 4f1e830 commit bfbddd1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .changelog/11757.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
16 changes: 8 additions & 8 deletions google/services/dataflow/resource_dataflow_job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,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 @@ -299,12 +299,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 @@ -322,12 +322,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 @@ -344,12 +344,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 bfbddd1

Please sign in to comment.