@@ -33,7 +33,7 @@ func TestAccDatastreamStream_update(t *testing.T) {
33
33
ResourceName : "google_datastream_stream.default" ,
34
34
ImportState : true ,
35
35
ImportStateVerify : true ,
36
- ImportStateVerifyIgnore : []string {"gtid" , "binaryLogPosition" , " create_without_validation" , "stream_id" , "location" , "desired_state" , "labels" , "terraform_labels" },
36
+ ImportStateVerifyIgnore : []string {"create_without_validation" , "stream_id" , "location" , "desired_state" , "labels" , "terraform_labels" },
37
37
},
38
38
{
39
39
Config : testAccDatastreamStream_datastreamStreamBasicUpdate (context , "RUNNING" , true ),
@@ -43,7 +43,7 @@ func TestAccDatastreamStream_update(t *testing.T) {
43
43
ResourceName : "google_datastream_stream.default" ,
44
44
ImportState : true ,
45
45
ImportStateVerify : true ,
46
- ImportStateVerifyIgnore : []string {"gtid" , "binaryLogPosition" , " create_without_validation" , "stream_id" , "location" , "desired_state" , "labels" , "terraform_labels" },
46
+ ImportStateVerifyIgnore : []string {"create_without_validation" , "stream_id" , "location" , "desired_state" , "labels" , "terraform_labels" },
47
47
},
48
48
{
49
49
Config : testAccDatastreamStream_datastreamStreamBasicUpdate (context , "PAUSED" , true ),
@@ -53,7 +53,7 @@ func TestAccDatastreamStream_update(t *testing.T) {
53
53
ResourceName : "google_datastream_stream.default" ,
54
54
ImportState : true ,
55
55
ImportStateVerify : true ,
56
- ImportStateVerifyIgnore : []string {"gtid" , "binaryLogPosition" , " create_without_validation" , "stream_id" , "location" , "desired_state" , "labels" , "terraform_labels" },
56
+ ImportStateVerifyIgnore : []string {"create_without_validation" , "stream_id" , "location" , "desired_state" , "labels" , "terraform_labels" },
57
57
},
58
58
{
59
59
Config : testAccDatastreamStream_datastreamStreamBasicUpdate (context , "RUNNING" , true ),
@@ -63,22 +63,22 @@ func TestAccDatastreamStream_update(t *testing.T) {
63
63
ResourceName : "google_datastream_stream.default" ,
64
64
ImportState : true ,
65
65
ImportStateVerify : true ,
66
- ImportStateVerifyIgnore : []string {"gtid" , "binaryLogPosition" , "create_without_validation" , "stream_id" , "location" , "desired_state" , "labels" , "terraform_labels" },
66
+ ImportStateVerifyIgnore : []string {"create_without_validation" , "stream_id" , "location" , "desired_state" , "labels" , "terraform_labels" },
67
+ },
68
+ {
69
+ ResourceName : "google_datastream_stream.gtid" ,
70
+ ImportState : true ,
71
+ ImportStateVerify : true ,
72
+ ImportStateVerifyIgnore : []string {"create_without_validation" , "stream_id" , "location" , "desired_state" , "labels" , "terraform_labels" },
67
73
},
68
74
{
69
75
// Disable prevent_destroy
70
76
Config : testAccDatastreamStream_datastreamStreamBasicUpdate (context , "RUNNING" , false ),
71
77
},
72
- {
78
+ {
73
79
Config : testAccDatastreamStream_datastreamStreamBasicExample (context ),
74
80
Check : resource .TestCheckResourceAttr ("google_datastream_stream.gtid" , "state" , "NOT_STARTED" ),
75
81
},
76
- {
77
- ResourceName : "google_datastream_stream.gtid" ,
78
- ImportState : true ,
79
- ImportStateVerify : true ,
80
- ImportStateVerifyIgnore : []string {"gtid" , "binaryLogPosition" , "create_without_validation" , "stream_id" , "location" , "desired_state" , "labels" , "terraform_labels" },
81
- },
82
82
},
83
83
})
84
84
}
@@ -215,8 +215,8 @@ resource "google_datastream_stream" "default" {
215
215
source_connection_profile = google_datastream_connection_profile.source_connection_profile.id
216
216
217
217
mysql_source_config {
218
- binary_log_position {}
219
- }
218
+ binary_log_position {}
219
+ }
220
220
}
221
221
destination_config {
222
222
destination_connection_profile = google_datastream_connection_profile.destination_connection_profile.id
@@ -251,8 +251,8 @@ resource "google_datastream_stream" "gtid" {
251
251
source_connection_profile = google_datastream_connection_profile.source_connection_profile.id
252
252
253
253
mysql_source_config {
254
- gtid {}
255
- }
254
+ gtid {}
255
+ }
256
256
}
257
257
destination_config {
258
258
destination_connection_profile = google_datastream_connection_profile.destination_connection_profile.id
0 commit comments