Skip to content

Commit

Permalink
Update resource_dataflow_job_test.go.tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisonlimh authored Feb 28, 2025
1 parent 3344612 commit 202b1c5
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1384,22 +1384,22 @@ func TestResourceDataflowJobTemplateGcsPathDiffSuppress(t *testing.T) {
ExpectDiffSuppress: true,
},
"different bucket": {
Old: "gs://template-bucket/path/to/file1",
New: "gs://template-bucket-foo/path/to/file1",
Old: "gs://template-bucket-foo/path/to/file1",
New: "gs://template-bucket/path/to/file1",
ExpectDiffSuppress: false,
},
"different object": {
Old: "gs://template-bucket/path/to/file1",
New: "gs://template-bucket-foo/path/to/file2",
Old: "gs://template-bucket-foo/path/to/file2",
New: "gs://template-bucket/path/to/file",
ExpectDiffSuppress: false,
},
"regional bucket name change is okay": {
Old: "gs://template-bucket/path/to/file1",
New: "gs://template-bucket-us-central1/path/to/file1",
Old: "gs://template-bucket-us-central1/path/to/file1",
New: "gs://template-bucket/path/to/file1",
ExpectDiffSuppress: true,
},
}
rd := &schema.ResourceData{}
rd := schema.TestResourceDataRaw(t, dataflow.ResourceDataflowJob().Schema, nil)
rd.Set("region", "us-central1")

for tn, tc := range cases {
Expand Down

0 comments on commit 202b1c5

Please sign in to comment.