@@ -78,7 +78,7 @@ func TestStreamConnectionSDKToTFModel(t *testing.T) {
78
78
providedAuthConfig : nil ,
79
79
expectedTFModel : & streamconnection.TFStreamConnectionModel {
80
80
ProjectID : types .StringValue (dummyProjectID ),
81
- InstanceName : types .StringValue (instanceName ),
81
+ WorkspaceName : types .StringValue (instanceName ),
82
82
ConnectionName : types .StringValue (connectionName ),
83
83
Type : types .StringValue ("Cluster" ),
84
84
ClusterName : types .StringValue (clusterName ),
@@ -108,7 +108,7 @@ func TestStreamConnectionSDKToTFModel(t *testing.T) {
108
108
providedAuthConfig : nil ,
109
109
expectedTFModel : & streamconnection.TFStreamConnectionModel {
110
110
ProjectID : types .StringValue (dummyProjectID ),
111
- InstanceName : types .StringValue (instanceName ),
111
+ WorkspaceName : types .StringValue (instanceName ),
112
112
ConnectionName : types .StringValue (connectionName ),
113
113
Type : types .StringValue ("Cluster" ),
114
114
ClusterName : types .StringValue (clusterName ),
@@ -143,7 +143,7 @@ func TestStreamConnectionSDKToTFModel(t *testing.T) {
143
143
providedAuthConfig : & authConfigWithPasswordDefined ,
144
144
expectedTFModel : & streamconnection.TFStreamConnectionModel {
145
145
ProjectID : types .StringValue (dummyProjectID ),
146
- InstanceName : types .StringValue (instanceName ),
146
+ WorkspaceName : types .StringValue (instanceName ),
147
147
ConnectionName : types .StringValue (connectionName ),
148
148
Type : types .StringValue ("Kafka" ),
149
149
Authentication : tfAuthenticationObject (t , authMechanism , authUsername , "raw password" ), // password value is obtained from config, not api resp.
@@ -181,7 +181,7 @@ func TestStreamConnectionSDKToTFModel(t *testing.T) {
181
181
providedAuthConfig : & authConfigWithOAuth ,
182
182
expectedTFModel : & streamconnection.TFStreamConnectionModel {
183
183
ProjectID : types .StringValue (dummyProjectID ),
184
- InstanceName : types .StringValue (instanceName ),
184
+ WorkspaceName : types .StringValue (instanceName ),
185
185
ConnectionName : types .StringValue (connectionName ),
186
186
Type : types .StringValue ("Kafka" ),
187
187
Authentication : tfAuthenticationObjectForOAuth (t , authMechanismOAuth , clientID , clientSecret , tokenEndpointURL , scope , saslOauthbearerExtentions , httpsCaPem ), // password value is obtained from config, not api resp.
@@ -205,7 +205,7 @@ func TestStreamConnectionSDKToTFModel(t *testing.T) {
205
205
providedAuthConfig : nil ,
206
206
expectedTFModel : & streamconnection.TFStreamConnectionModel {
207
207
ProjectID : types .StringValue (dummyProjectID ),
208
- InstanceName : types .StringValue (instanceName ),
208
+ WorkspaceName : types .StringValue (instanceName ),
209
209
ConnectionName : types .StringValue (connectionName ),
210
210
Type : types .StringValue ("Kafka" ),
211
211
Authentication : types .ObjectNull (streamconnection .ConnectionAuthenticationObjectType .AttrTypes ),
@@ -238,7 +238,7 @@ func TestStreamConnectionSDKToTFModel(t *testing.T) {
238
238
providedAuthConfig : nil ,
239
239
expectedTFModel : & streamconnection.TFStreamConnectionModel {
240
240
ProjectID : types .StringValue (dummyProjectID ),
241
- InstanceName : types .StringValue (instanceName ),
241
+ WorkspaceName : types .StringValue (instanceName ),
242
242
ConnectionName : types .StringValue (connectionName ),
243
243
Type : types .StringValue ("Kafka" ),
244
244
Authentication : tfAuthenticationObjectWithNoPassword (t , authMechanism , authUsername ),
@@ -261,7 +261,7 @@ func TestStreamConnectionSDKToTFModel(t *testing.T) {
261
261
providedInstanceName : instanceName ,
262
262
expectedTFModel : & streamconnection.TFStreamConnectionModel {
263
263
ProjectID : types .StringValue (dummyProjectID ),
264
- InstanceName : types .StringValue (instanceName ),
264
+ WorkspaceName : types .StringValue (instanceName ),
265
265
ConnectionName : types .StringValue (sampleConnectionName ),
266
266
Type : types .StringValue ("Sample" ),
267
267
Authentication : types .ObjectNull (streamconnection .ConnectionAuthenticationObjectType .AttrTypes ),
@@ -284,7 +284,7 @@ func TestStreamConnectionSDKToTFModel(t *testing.T) {
284
284
providedInstanceName : instanceName ,
285
285
expectedTFModel : & streamconnection.TFStreamConnectionModel {
286
286
ProjectID : types .StringValue (dummyProjectID ),
287
- InstanceName : types .StringValue (instanceName ),
287
+ WorkspaceName : types .StringValue (instanceName ),
288
288
ConnectionName : types .StringValue (awslambdaConnectionName ),
289
289
Type : types .StringValue ("AWSLambda" ),
290
290
Authentication : types .ObjectNull (streamconnection .ConnectionAuthenticationObjectType .AttrTypes ),
@@ -522,7 +522,6 @@ func TestStreamConnectionsSDKToTFModel(t *testing.T) {
522
522
type connectionsSDKToTFModelErrorTestCase struct {
523
523
SDKResp * admin.PaginatedApiStreamsConnection
524
524
providedConfig * streamconnection.TFStreamConnectionsDSModel
525
- expectedTFModel * streamconnection.TFStreamConnectionsDSModel
526
525
expectedErrorString string
527
526
name string
528
527
}
0 commit comments