Skip to content

Commit 4e332fe

Browse files
committed
test: adding further tests for redisversion on get and list
1 parent dfdde59 commit 4e332fe

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

database_test.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,17 @@ func TestDatabase_List(t *testing.T) {
140140
"protocol": "redis",
141141
"provider": "AWS",
142142
"region": "eu-west-1",
143-
"queryPerformanceFactor": "Standard"
144-
143+
"queryPerformanceFactor": "Standard",
144+
"redisVersion": "6.0.5"
145145
},
146146
{
147147
"databaseId": 43,
148148
"name": "second-example",
149149
"protocol": "redis",
150150
"provider": "AWS",
151151
"region": "eu-west-1",
152-
"queryPerformanceFactor": "Standard"
152+
"queryPerformanceFactor": "Standard",
153+
"redisVersion": "6.0.5"
153154
}
154155
]
155156
}
@@ -181,6 +182,7 @@ func TestDatabase_List(t *testing.T) {
181182
Provider: redis.String("AWS"),
182183
Region: redis.String("eu-west-1"),
183184
QueryPerformanceFactor: redis.String("Standard"),
185+
RedisVersion: redis.String("6.0.5"),
184186
},
185187
{
186188
ID: redis.Int(43),
@@ -189,6 +191,7 @@ func TestDatabase_List(t *testing.T) {
189191
Provider: redis.String("AWS"),
190192
Region: redis.String("eu-west-1"),
191193
QueryPerformanceFactor: redis.String("Standard"),
194+
RedisVersion: redis.String("6.0.5"),
192195
},
193196
}, actual)
194197

@@ -219,6 +222,7 @@ func TestDatabase_Get(t *testing.T) {
219222
"value": 10000
220223
},
221224
"QueryPerformanceFactor": "Standard",
225+
"redisVersion": "6.0.5",
222226
"activatedOn": "2020-11-03T09:03:30Z",
223227
"lastModified": "2020-11-03T09:03:30Z",
224228
"publicEndpoint": "example.com:16668",
@@ -295,6 +299,7 @@ func TestDatabase_Get(t *testing.T) {
295299
Value: redis.Int(10_000),
296300
},
297301
QueryPerformanceFactor: redis.String("Standard"),
302+
RedisVersion: redis.String("6.0.5"),
298303
Clustering: &databases.Clustering{
299304
NumberOfShards: redis.Int(1),
300305
RegexRules: []*databases.RegexRule{

0 commit comments

Comments
 (0)