@@ -57,7 +57,8 @@ func TestServerlessInstances_List(t *testing.T) {
57
57
"backingProviderName": "AWS",
58
58
"regionName": "US_EAST_1"
59
59
},
60
- "stateName": "IDLE"
60
+ "stateName": "IDLE",
61
+ "tags": [ { "key": "key1", "value": "value1" } ]
61
62
},{
62
63
"connectionStrings": {
63
64
"standardSrv" : "mongodb+srv://instance1.example.com"
@@ -76,7 +77,8 @@ func TestServerlessInstances_List(t *testing.T) {
76
77
"backingProviderName": "AWS",
77
78
"regionName": "US_EAST_1"
78
79
},
79
- "stateName": "IDLE"
80
+ "stateName": "IDLE",
81
+ "tags": [ { "key": "key1", "value": "value1" } ]
80
82
}],
81
83
"totalCount": 2
82
84
}` )
@@ -104,6 +106,12 @@ func TestServerlessInstances_List(t *testing.T) {
104
106
StateName : "IDLE" ,
105
107
ConnectionStrings : & ConnectionStrings {StandardSrv : "mongodb+srv://instance1.example.com" },
106
108
CreateDate : "2021-06-25T21:32:06Z" ,
109
+ Tags : []* Tag {
110
+ {
111
+ Key : "key1" ,
112
+ Value : "value1" ,
113
+ },
114
+ },
107
115
Links : []* Link {
108
116
{
109
117
Rel : "self" ,
@@ -120,6 +128,12 @@ func TestServerlessInstances_List(t *testing.T) {
120
128
StateName : "IDLE" ,
121
129
ConnectionStrings : & ConnectionStrings {StandardSrv : "mongodb+srv://instance1.example.com" },
122
130
CreateDate : "2021-06-25T21:32:06Z" ,
131
+ Tags : []* Tag {
132
+ {
133
+ Key : "key1" ,
134
+ Value : "value1" ,
135
+ },
136
+ },
123
137
Links : []* Link {
124
138
{
125
139
Rel : "self" ,
@@ -217,7 +231,8 @@ func TestServerlessInstances_Create(t *testing.T) {
217
231
"backingProviderName": "AWS",
218
232
"regionName": "US_EAST_1"
219
233
},
220
- "stateName": "IDLE"
234
+ "stateName": "IDLE",
235
+ "tags": [ { "key": "key1", "value": "value1" } ]
221
236
}` )
222
237
})
223
238
@@ -246,6 +261,12 @@ func TestServerlessInstances_Create(t *testing.T) {
246
261
Href : "http://cloud.mongodb.com/api/atlas/v1.0/groups/{groupId}/serverless/{instanceName1}" ,
247
262
},
248
263
},
264
+ Tags : []* Tag {
265
+ {
266
+ Key : "key1" ,
267
+ Value : "value1" ,
268
+ },
269
+ },
249
270
}
250
271
251
272
if diff := deep .Equal (serverlessInstance , expected ); diff != nil {
@@ -287,7 +308,8 @@ func TestServerlessInstances_Update(t *testing.T) {
287
308
"serverlessContinuousBackupEnabled" : true
288
309
},
289
310
"stateName" : "IDLE",
290
- "terminationProtectionEnabled": true
311
+ "terminationProtectionEnabled": true,
312
+ "tags": [ { "key": "key1", "value": "value1" } ]
291
313
}` )
292
314
})
293
315
@@ -326,6 +348,12 @@ func TestServerlessInstances_Update(t *testing.T) {
326
348
Href : "http://cloud.mongodb.com/api/atlas/v1.0/groups/{groupId}/serverless/{instanceName1}/backup/snapshots" ,
327
349
},
328
350
},
351
+ Tags : []* Tag {
352
+ {
353
+ Key : "key1" ,
354
+ Value : "value1" ,
355
+ },
356
+ },
329
357
}
330
358
331
359
if diff := deep .Equal (serverlessInstance , expected ); diff != nil {
0 commit comments