@@ -240,12 +240,12 @@ func TestAccDataflowJob_withLabels(t *testing.T) {
240
240
{
241
241
Config : testAccDataflowJob_labels (bucket , job , key , value ),
242
242
Check : resource .ComposeTestCheckFunc (
243
- testAccDataflowJobExists (t , "google_dataflow_job.with_labels " ),
244
- testAccDataflowJobHasLabels (t , "google_dataflow_job.with_labels " , key ),
243
+ testAccDataflowJobExists (t , "google_dataflow_job.big_data " ),
244
+ testAccDataflowJobHasLabels (t , "google_dataflow_job.big_data " , key ),
245
245
),
246
246
},
247
247
{
248
- ResourceName : "google_dataflow_job.with_labels " ,
248
+ ResourceName : "google_dataflow_job.big_data " ,
249
249
ImportState : true ,
250
250
ImportStateVerify : true ,
251
251
ImportStateVerifyIgnore : []string {"on_delete" , "parameters" , "skip_wait_on_job_termination" , "state" , "labels" , "terraform_labels" },
@@ -273,42 +273,42 @@ func TestAccDataflowJob_withProviderDefaultLabels(t *testing.T) {
273
273
{
274
274
Config : testAccDataflowJob_withProviderDefaultLabels (bucket , job ),
275
275
Check : resource .ComposeTestCheckFunc (
276
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.%" , "2" ),
277
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.env" , "foo" ),
278
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.default_expiration_ms" , "3600000" ),
276
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.%" , "2" ),
277
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.env" , "foo" ),
278
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.default_expiration_ms" , "3600000" ),
279
279
280
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.%" , "3" ),
281
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.default_key1" , "default_value1" ),
282
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.env" , "foo" ),
283
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.default_expiration_ms" , "3600000" ),
280
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.%" , "3" ),
281
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.default_key1" , "default_value1" ),
282
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.env" , "foo" ),
283
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.default_expiration_ms" , "3600000" ),
284
284
285
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "effective_labels.%" , "6" ),
285
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "effective_labels.%" , "6" ),
286
286
),
287
287
},
288
288
{
289
- ResourceName : "google_dataflow_job.with_labels " ,
289
+ ResourceName : "google_dataflow_job.big_data " ,
290
290
ImportState : true ,
291
291
ImportStateVerify : true ,
292
292
ImportStateVerifyIgnore : []string {"on_delete" , "parameters" , "skip_wait_on_job_termination" , "state" , "labels" , "terraform_labels" },
293
293
},
294
294
{
295
295
Config : testAccDataflowJob_resourceLabelsOverridesProviderDefaultLabels (bucket , job ),
296
296
Check : resource .ComposeTestCheckFunc (
297
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.%" , "3" ),
298
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.env" , "foo" ),
299
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.default_expiration_ms" , "3600000" ),
300
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.default_key1" , "value1" ),
297
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.%" , "3" ),
298
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.env" , "foo" ),
299
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.default_expiration_ms" , "3600000" ),
300
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.default_key1" , "value1" ),
301
301
302
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.%" , "3" ),
303
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.default_key1" , "value1" ),
304
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.env" , "foo" ),
305
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.default_expiration_ms" , "3600000" ),
302
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.%" , "3" ),
303
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.default_key1" , "value1" ),
304
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.env" , "foo" ),
305
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.default_expiration_ms" , "3600000" ),
306
306
307
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "effective_labels.%" , "6" ),
307
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "effective_labels.%" , "6" ),
308
308
),
309
309
},
310
310
{
311
- ResourceName : "google_dataflow_job.with_labels " ,
311
+ ResourceName : "google_dataflow_job.big_data " ,
312
312
ImportState : true ,
313
313
ImportStateVerify : true ,
314
314
// The labels field in the state is decided by the configuration.
@@ -318,57 +318,58 @@ func TestAccDataflowJob_withProviderDefaultLabels(t *testing.T) {
318
318
{
319
319
Config : testAccDataflowJob_moveResourceLabelToProviderDefaultLabels (bucket , job ),
320
320
Check : resource .ComposeTestCheckFunc (
321
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.%" , "2" ),
322
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.default_expiration_ms" , "3600000" ),
323
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.default_key1" , "value1" ),
321
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.%" , "2" ),
322
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.default_expiration_ms" , "3600000" ),
323
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.default_key1" , "value1" ),
324
324
325
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.%" , "3" ),
326
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.default_key1" , "value1" ),
327
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.env" , "foo" ),
328
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.default_expiration_ms" , "3600000" ),
325
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.%" , "3" ),
326
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.default_key1" , "value1" ),
327
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.env" , "foo" ),
328
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.default_expiration_ms" , "3600000" ),
329
329
330
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "effective_labels.%" , "6" ),
330
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "effective_labels.%" , "6" ),
331
331
),
332
332
},
333
333
{
334
- ResourceName : "google_dataflow_job.with_labels " ,
334
+ ResourceName : "google_dataflow_job.big_data " ,
335
335
ImportState : true ,
336
336
ImportStateVerify : true ,
337
337
ImportStateVerifyIgnore : []string {"on_delete" , "parameters" , "skip_wait_on_job_termination" , "state" , "labels" , "terraform_labels" },
338
338
},
339
339
{
340
340
Config : testAccDataflowJob_resourceLabelsOverridesProviderDefaultLabels (bucket , job ),
341
341
Check : resource .ComposeTestCheckFunc (
342
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.%" , "3" ),
343
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.env" , "foo" ),
344
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.default_expiration_ms" , "3600000" ),
345
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "labels.default_key1" , "value1" ),
342
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.%" , "3" ),
343
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.env" , "foo" ),
344
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.default_expiration_ms" , "3600000" ),
345
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "labels.default_key1" , "value1" ),
346
346
347
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.%" , "3" ),
348
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.default_key1" , "value1" ),
349
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.env" , "foo" ),
350
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "terraform_labels.default_expiration_ms" , "3600000" ),
347
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.%" , "3" ),
348
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.default_key1" , "value1" ),
349
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.env" , "foo" ),
350
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "terraform_labels.default_expiration_ms" , "3600000" ),
351
351
352
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "effective_labels.%" , "6" ),
352
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "effective_labels.%" , "6" ),
353
353
),
354
354
},
355
355
{
356
- ResourceName : "google_dataflow_job.with_labels " ,
356
+ ResourceName : "google_dataflow_job.big_data " ,
357
357
ImportState : true ,
358
358
ImportStateVerify : true ,
359
359
ImportStateVerifyIgnore : []string {"on_delete" , "parameters" , "skip_wait_on_job_termination" , "state" , "labels" , "terraform_labels" },
360
360
},
361
361
{
362
362
Config : testAccDataflowJob_zone (bucket , job , zone ),
363
363
Check : resource .ComposeTestCheckFunc (
364
- resource .TestCheckNoResourceAttr ("google_dataflow_job.with_labels " , "labels.%" ),
365
- resource .TestCheckResourceAttr ("google_dataflow_job.with_labels " , "effective_labels.%" , "3" ),
364
+ resource .TestCheckNoResourceAttr ("google_dataflow_job.big_data " , "labels.%" ),
365
+ resource .TestCheckResourceAttr ("google_dataflow_job.big_data " , "effective_labels.%" , "3" ),
366
366
),
367
367
},
368
368
{
369
- ResourceName : "google_dataflow_job.with_labels" ,
370
- ImportState : true ,
371
- ImportStateVerify : true ,
369
+ ResourceName : "google_dataflow_job.big_data" ,
370
+ ImportState : true ,
371
+ ImportStateVerify : true ,
372
+ ImportStateVerifyIgnore : []string {"on_delete" , "parameters" , "skip_wait_on_job_termination" , "zone" , "state" },
372
373
},
373
374
},
374
375
})
@@ -1073,7 +1074,7 @@ resource "google_storage_bucket" "temp" {
1073
1074
force_destroy = true
1074
1075
}
1075
1076
1076
- resource "google_dataflow_job" "with_labels " {
1077
+ resource "google_dataflow_job" "big_data " {
1077
1078
name = "%s"
1078
1079
1079
1080
labels = {
@@ -1105,7 +1106,7 @@ resource "google_storage_bucket" "temp" {
1105
1106
force_destroy = true
1106
1107
}
1107
1108
1108
- resource "google_dataflow_job" "with_labels " {
1109
+ resource "google_dataflow_job" "big_data " {
1109
1110
name = "%s"
1110
1111
1111
1112
labels = {
@@ -1138,7 +1139,7 @@ resource "google_storage_bucket" "temp" {
1138
1139
force_destroy = true
1139
1140
}
1140
1141
1141
- resource "google_dataflow_job" "with_labels " {
1142
+ resource "google_dataflow_job" "big_data " {
1142
1143
name = "%s"
1143
1144
1144
1145
labels = {
@@ -1173,7 +1174,7 @@ resource "google_storage_bucket" "temp" {
1173
1174
force_destroy = true
1174
1175
}
1175
1176
1176
- resource "google_dataflow_job" "with_labels " {
1177
+ resource "google_dataflow_job" "big_data " {
1177
1178
name = "%s"
1178
1179
1179
1180
labels = {
0 commit comments