@@ -25,6 +25,7 @@ func TestDatabase_Create(t *testing.T) {
25
25
"useExternalEndpointForOSSClusterApi": false,
26
26
"dataPersistence": "none",
27
27
"dataEvictionPolicy": "allkeys-lru",
28
+ "queryPerformanceFactor": "6x",
28
29
"replication": true,
29
30
"throughputMeasurement": {
30
31
"by": "operations-per-second",
@@ -94,6 +95,7 @@ func TestDatabase_Create(t *testing.T) {
94
95
UseExternalEndpointForOSSClusterAPI : redis .Bool (false ),
95
96
DataPersistence : redis .String ("none" ),
96
97
DataEvictionPolicy : redis .String ("allkeys-lru" ),
98
+ QueryPerformanceFactor : redis .String ("6x" ),
97
99
Replication : redis .Bool (true ),
98
100
ThroughputMeasurement : & databases.CreateThroughputMeasurement {
99
101
By : redis .String ("operations-per-second" ),
@@ -135,14 +137,16 @@ func TestDatabase_List(t *testing.T) {
135
137
"name": "first-example",
136
138
"protocol": "redis",
137
139
"provider": "AWS",
138
- "region": "eu-west-1"
140
+ "region": "eu-west-1",
141
+ "queryPerformanceFactor": "Standard"
139
142
},
140
143
{
141
144
"databaseId": 43,
142
145
"name": "second-example",
143
146
"protocol": "redis",
144
147
"provider": "AWS",
145
- "region": "eu-west-1"
148
+ "region": "eu-west-1",
149
+ "queryPerformanceFactor": "Standard"
146
150
}
147
151
]
148
152
}
@@ -168,18 +172,20 @@ func TestDatabase_List(t *testing.T) {
168
172
169
173
assert .Equal (t , []* databases.Database {
170
174
{
171
- ID : redis .Int (42 ),
172
- Name : redis .String ("first-example" ),
173
- Protocol : redis .String ("redis" ),
174
- Provider : redis .String ("AWS" ),
175
- Region : redis .String ("eu-west-1" ),
175
+ ID : redis .Int (42 ),
176
+ Name : redis .String ("first-example" ),
177
+ Protocol : redis .String ("redis" ),
178
+ Provider : redis .String ("AWS" ),
179
+ Region : redis .String ("eu-west-1" ),
180
+ QueryPerformanceFactor : redis .String ("Standard" ),
176
181
},
177
182
{
178
- ID : redis .Int (43 ),
179
- Name : redis .String ("second-example" ),
180
- Protocol : redis .String ("redis" ),
181
- Provider : redis .String ("AWS" ),
182
- Region : redis .String ("eu-west-1" ),
183
+ ID : redis .Int (43 ),
184
+ Name : redis .String ("second-example" ),
185
+ Protocol : redis .String ("redis" ),
186
+ Provider : redis .String ("AWS" ),
187
+ Region : redis .String ("eu-west-1" ),
188
+ QueryPerformanceFactor : redis .String ("Standard" ),
183
189
},
184
190
}, actual )
185
191
@@ -209,6 +215,7 @@ func TestDatabase_Get(t *testing.T) {
209
215
"by": "operations-per-second",
210
216
"value": 10000
211
217
},
218
+ "QueryPerformanceFactor": "Standard",
212
219
"activatedOn": "2020-11-03T09:03:30Z",
213
220
"lastModified": "2020-11-03T09:03:30Z",
214
221
"publicEndpoint": "example.com:16668",
@@ -284,6 +291,7 @@ func TestDatabase_Get(t *testing.T) {
284
291
By : redis .String ("operations-per-second" ),
285
292
Value : redis .Int (10_000 ),
286
293
},
294
+ QueryPerformanceFactor : redis .String ("Standard" ),
287
295
Clustering : & databases.Clustering {
288
296
NumberOfShards : redis .Int (1 ),
289
297
RegexRules : []* databases.RegexRule {
@@ -355,7 +363,8 @@ func TestDatabase_Update(t *testing.T) {
355
363
"value": 80
356
364
}
357
365
],
358
- "enableDefaultUser": false
366
+ "enableDefaultUser": false,
367
+ "queryPerformanceFactor": "2x"
359
368
}` , `{
360
369
"taskId": "task",
361
370
"commandType": "databaseUpdateRequest",
@@ -415,7 +424,8 @@ func TestDatabase_Update(t *testing.T) {
415
424
Value : redis .Int (80 ),
416
425
},
417
426
},
418
- EnableDefaultUser : redis .Bool (false ),
427
+ EnableDefaultUser : redis .Bool (false ),
428
+ QueryPerformanceFactor : redis .String ("2x" ),
419
429
})
420
430
require .NoError (t , err )
421
431
}
0 commit comments