@@ -46,8 +46,8 @@ func TestAccDataprocClusterLabelsMigration_withoutLabels_withoutChanges(t *testi
46
46
testAccCheckDataprocClusterExists (t , "google_dataproc_cluster.with_labels" , & cluster ),
47
47
48
48
resource .TestCheckNoResourceAttr ("google_dataproc_cluster.with_labels" , "labels.%" ),
49
- // GCP adds three and goog-dataproc-autozone is added internally, so expect 4 .
50
- resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.%" , "4 " ),
49
+ // GCP adds 4 and goog-dataproc-autozone is added internally, so expect 5 .
50
+ resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.%" , "5 " ),
51
51
),
52
52
},
53
53
{
@@ -58,8 +58,8 @@ func TestAccDataprocClusterLabelsMigration_withoutLabels_withoutChanges(t *testi
58
58
59
59
resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "labels.%" , "1" ),
60
60
resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "labels.key1" , "value1" ),
61
- // We only provide one, but GCP adds three and goog-dataproc-autozone is added internally, so expect 5 .
62
- resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.%" , "5 " ),
61
+ // We only provide one, but GCP adds 4 and goog-dataproc-autozone is added internally, so expect 6 .
62
+ resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.%" , "6 " ),
63
63
resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.key1" , "value1" ),
64
64
),
65
65
},
@@ -100,8 +100,8 @@ func TestAccDataprocClusterLabelsMigration_withLabels_withoutChanges(t *testing.
100
100
101
101
resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "labels.%" , "1" ),
102
102
resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "labels.key1" , "value1" ),
103
- // We only provide one, but GCP adds three and goog-dataproc-autozone is added internally, so expect 5 .
104
- resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.%" , "5 " ),
103
+ // We only provide one, but GCP adds 4 and goog-dataproc-autozone is added internally, so expect 6 .
104
+ resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.%" , "6 " ),
105
105
resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.key1" , "value1" ),
106
106
),
107
107
},
@@ -114,8 +114,8 @@ func TestAccDataprocClusterLabelsMigration_withLabels_withoutChanges(t *testing.
114
114
// We only provide one, so expect 1.
115
115
resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "labels.%" , "1" ),
116
116
resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "labels.key2" , "value2" ),
117
- // We only provide one, but GCP adds three and goog-dataproc-autozone is added internally, so expect 5 .
118
- resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.%" , "5 " ),
117
+ // We only provide one, but GCP adds 4 and goog-dataproc-autozone is added internally, so expect 6 .
118
+ resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.%" , "6 " ),
119
119
resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.key2" , "value2" ),
120
120
),
121
121
},
@@ -156,8 +156,8 @@ func TestAccDataprocClusterLabelsMigration_withUpdate(t *testing.T) {
156
156
157
157
resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "labels.%" , "1" ),
158
158
resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "labels.key1" , "value1" ),
159
- // We only provide one, but GCP adds three and goog-dataproc-autozone is added internally, so expect 5 .
160
- resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.%" , "5 " ),
159
+ // We only provide one, but GCP adds 4 and goog-dataproc-autozone is added internally, so expect 6 .
160
+ resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.%" , "6 " ),
161
161
resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.key1" , "value1" ),
162
162
),
163
163
},
@@ -168,8 +168,8 @@ func TestAccDataprocClusterLabelsMigration_withUpdate(t *testing.T) {
168
168
testAccCheckDataprocClusterExists (t , "google_dataproc_cluster.with_labels" , & cluster ),
169
169
170
170
resource .TestCheckNoResourceAttr ("google_dataproc_cluster.with_labels" , "labels.%" ),
171
- // We only provide one, but GCP adds three and goog-dataproc-autozone is added internally, so expect 4 .
172
- resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.%" , "4 " ),
171
+ // We only provide one, but GCP adds 4 and goog-dataproc-autozone is added internally, so expect 5 .
172
+ resource .TestCheckResourceAttr ("google_dataproc_cluster.with_labels" , "effective_labels.%" , "5 " ),
173
173
),
174
174
},
175
175
},
0 commit comments