Skip to content

Commit 94951e6

Browse files
committed
test: fixing subscription list test
1 parent 32809f9 commit 94951e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

subscription_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ func TestSubscription_List(t *testing.T) {
153153
"name": "sdk",
154154
"status": "active",
155155
"paymentMethodId": 2,
156+
"paymentMethodType": "credit-card",
156157
"memoryStorage": "ram",
157158
"storageEncryption": false,
158159
"numberOfDatabases": 1,
@@ -209,6 +210,7 @@ func TestSubscription_List(t *testing.T) {
209210
"name": "TF Example Subscription demo",
210211
"status": "pending",
211212
"paymentMethodId": 3,
213+
"paymentMethodType": "credit-card",
212214
"memoryStorage": "ram",
213215
"storageEncryption": false,
214216
"numberOfDatabases": 0,
@@ -259,8 +261,8 @@ func TestSubscription_List(t *testing.T) {
259261
ID: redis.Int(1),
260262
Name: redis.String("sdk"),
261263
Status: redis.String("active"),
262-
PaymentMethod: redis.String("credit-card"),
263264
PaymentMethodID: redis.Int(2),
265+
PaymentMethod: redis.String("credit-card"),
264266
MemoryStorage: redis.String("ram"),
265267
StorageEncryption: redis.Bool(false),
266268
NumberOfDatabases: redis.Int(1),
@@ -290,6 +292,7 @@ func TestSubscription_List(t *testing.T) {
290292
Name: redis.String("TF Example Subscription demo"),
291293
Status: redis.String("pending"),
292294
PaymentMethodID: redis.Int(3),
295+
PaymentMethod: redis.String("credit-card"),
293296
MemoryStorage: redis.String("ram"),
294297
StorageEncryption: redis.Bool(false),
295298
NumberOfDatabases: redis.Int(0),

0 commit comments

Comments
 (0)