@@ -916,20 +916,6 @@ func TestAccBigQueryDataTable_expandArray(t *testing.T) {
916
916
})
917
917
}
918
918
919
- func TestUnitBigQueryDataTable_schemaIsChangable (t * testing.T ) {
920
- t .Parallel ()
921
- for _ , testcase := range testUnitBigQueryDataTableIsChangableTestCases {
922
- testcase .check (t )
923
- testcaseNested := & testUnitBigQueryDataTableJSONChangeableTestCase {
924
- testcase .name + "Nested" ,
925
- fmt .Sprintf ("[{\" name\" : \" someValue\" , \" type\" : \" INTEGER\" , \" fields\" : %s }]" , testcase .jsonOld ),
926
- fmt .Sprintf ("[{\" name\" : \" someValue\" , \" type\" : \" INT64\" , \" fields\" : %s }]" , testcase .jsonNew ),
927
- testcase .changeable ,
928
- }
929
- testcaseNested .check (t )
930
- }
931
- }
932
-
933
919
func TestAccBigQueryTable_allowDestroy (t * testing.T ) {
934
920
t .Parallel ()
935
921
@@ -1081,6 +1067,43 @@ var testUnitBigQueryDataTableIsChangableTestCases = []testUnitBigQueryDataTableJ
1081
1067
jsonNew : "[{\" name\" : \" value3\" , \" type\" : \" BOOLEAN\" , \" mode\" : \" NULLABLE\" , \" description\" : \" newVal\" }, {\" name\" : \" value1\" , \" type\" : \" INTEGER\" , \" mode\" : \" NULLABLE\" , \" description\" : \" someVal\" }]" ,
1082
1068
changeable : false ,
1083
1069
},
1070
+ {
1071
+ name : "policyTags" ,
1072
+ jsonOld : `[
1073
+ {
1074
+ "mode": "NULLABLE",
1075
+ "name": "providerphone",
1076
+ "policyTags": {
1077
+ "names": ["projects/my-project/locations/us/taxonomies/12345678/policyTags/12345678"]
1078
+ },
1079
+ "type":"STRING"
1080
+ }
1081
+ ]` ,
1082
+ jsonNew : `[
1083
+ {
1084
+ "name": "providerphone",
1085
+ "type": "STRING",
1086
+ "policyTags": {
1087
+ "names": ["projects/my-project/locations/us/taxonomies/12345678/policyTags/12345678"]
1088
+ }
1089
+ }
1090
+ ]` ,
1091
+ changeable : true ,
1092
+ },
1093
+ }
1094
+
1095
+ func TestUnitBigQueryDataTable_schemaIsChangable (t * testing.T ) {
1096
+ t .Parallel ()
1097
+ for _ , testcase := range testUnitBigQueryDataTableIsChangableTestCases {
1098
+ testcase .check (t )
1099
+ testcaseNested := & testUnitBigQueryDataTableJSONChangeableTestCase {
1100
+ testcase .name + "Nested" ,
1101
+ fmt .Sprintf ("[{\" name\" : \" someValue\" , \" type\" : \" INTEGER\" , \" fields\" : %s }]" , testcase .jsonOld ),
1102
+ fmt .Sprintf ("[{\" name\" : \" someValue\" , \" type\" : \" INT64\" , \" fields\" : %s }]" , testcase .jsonNew ),
1103
+ testcase .changeable ,
1104
+ }
1105
+ testcaseNested .check (t )
1106
+ }
1084
1107
}
1085
1108
1086
1109
func testAccCheckBigQueryExtData (t * testing.T , expectedQuoteChar string ) resource.TestCheckFunc {
0 commit comments