@@ -91,6 +91,7 @@ func TestResourceWorkspaceCreate(t *testing.T) {
91
91
CustomTags : map [string ]string {
92
92
"SoldToCode" : "1234" ,
93
93
},
94
+ ForceSendFields : []string {"IsNoPublicIpEnabled" },
94
95
}).Return (mockWaiter , nil )
95
96
a .GetMockWorkspacesAPI ().EXPECT ().Get (mock .Anything , provisioning.GetWorkspaceRequest {
96
97
WorkspaceId : 1234 ,
@@ -157,7 +158,8 @@ func TestResourceWorkspaceCreateGcp(t *testing.T) {
157
158
GcpManagedNetworkConfig : & provisioning.GcpManagedNetworkConfig {
158
159
SubnetCidr : "a" ,
159
160
},
160
- WorkspaceName : "labdata" ,
161
+ WorkspaceName : "labdata" ,
162
+ ForceSendFields : []string {"IsNoPublicIpEnabled" },
161
163
}).Return (mockWaiter , nil )
162
164
a .GetMockWorkspacesAPI ().EXPECT ().Get (mock .Anything , provisioning.GetWorkspaceRequest {
163
165
WorkspaceId : 1234 ,
@@ -253,7 +255,8 @@ func TestResourceWorkspaceCreateGcpPsc(t *testing.T) {
253
255
GcpManagedNetworkConfig : & provisioning.GcpManagedNetworkConfig {
254
256
SubnetCidr : "a" ,
255
257
},
256
- WorkspaceName : "labdata" ,
258
+ WorkspaceName : "labdata" ,
259
+ ForceSendFields : []string {"IsNoPublicIpEnabled" },
257
260
}).Return (mockWaiter , nil )
258
261
a .GetMockWorkspacesAPI ().EXPECT ().Get (mock .Anything , provisioning.GetWorkspaceRequest {
259
262
WorkspaceId : 1234 ,
@@ -329,6 +332,7 @@ func TestResourceWorkspaceCreateGcpCmk(t *testing.T) {
329
332
WorkspaceName : "labdata" ,
330
333
ManagedServicesCustomerManagedKeyId : "managed_services_cmk" ,
331
334
StorageCustomerManagedKeyId : "storage_cmk" ,
335
+ ForceSendFields : []string {"IsNoPublicIpEnabled" },
332
336
}).Return (mockWaiter , nil )
333
337
a .GetMockWorkspacesAPI ().EXPECT ().Get (mock .Anything , provisioning.GetWorkspaceRequest {
334
338
WorkspaceId : 1234 ,
@@ -396,6 +400,7 @@ func TestResourceWorkspaceCreateWithIsNoPublicIPEnabledFalse(t *testing.T) {
396
400
NetworkId : "fgh" ,
397
401
ManagedServicesCustomerManagedKeyId : "def" ,
398
402
StorageCustomerManagedKeyId : "def" ,
403
+ ForceSendFields : []string {"IsNoPublicIpEnabled" },
399
404
}).Return (mockWaiter , nil )
400
405
a .GetMockWorkspacesAPI ().EXPECT ().Get (mock .Anything , provisioning.GetWorkspaceRequest {
401
406
WorkspaceId : 1234 ,
@@ -456,6 +461,7 @@ func TestResourceWorkspaceCreateLegacyConfig(t *testing.T) {
456
461
StorageConfigurationId : "ghi" ,
457
462
NetworkId : "fgh" ,
458
463
ManagedServicesCustomerManagedKeyId : "def" ,
464
+ ForceSendFields : []string {"IsNoPublicIpEnabled" },
459
465
}).Return (mockWaiter , nil )
460
466
a .GetMockWorkspacesAPI ().EXPECT ().Get (mock .Anything , provisioning.GetWorkspaceRequest {
461
467
WorkspaceId : 1234 ,
@@ -926,6 +932,7 @@ func TestCreateFailsAndCleansUp(t *testing.T) {
926
932
NetworkId : "fgh" ,
927
933
ManagedServicesCustomerManagedKeyId : "def" ,
928
934
StorageCustomerManagedKeyId : "def" ,
935
+ ForceSendFields : []string {"IsNoPublicIpEnabled" },
929
936
}).Return (mockWaiter , nil )
930
937
931
938
// Expect the Get call to retrieve the failed workspace
@@ -1235,6 +1242,7 @@ func TestResourceWorkspaceCreateGcpManagedVPC(t *testing.T) {
1235
1242
DeploymentName : "900150983cd24fb0" ,
1236
1243
Location : "bcd" ,
1237
1244
WorkspaceName : "labdata" ,
1245
+ ForceSendFields : []string {"IsNoPublicIpEnabled" },
1238
1246
}).Return (mockWaiter , nil )
1239
1247
1240
1248
// Expect the Get call to retrieve the workspace
0 commit comments