@@ -4,7 +4,6 @@ import { BrowserPage, BulkActionsPage, MyRedisDatabasePage } from '../../../page
4
4
import { commonUrl , ossStandaloneRedisearch } from '../../../helpers/conf' ;
5
5
import { deleteStandaloneDatabaseApi } from '../../../helpers/api/api-database' ;
6
6
import { Common } from '../../../helpers/common' ;
7
- import { addHashKeyApi , addSetKeyApi } from '../../../helpers/api/api-keys' ;
8
7
import { deleteAllKeysFromDB , populateDBWithHashes } from '../../../helpers/keys' ;
9
8
10
9
const browserPage = new BrowserPage ( ) ;
@@ -13,8 +12,6 @@ const common = new Common();
13
12
const myRedisDatabasePage = new MyRedisDatabasePage ( ) ;
14
13
15
14
const keyNames = [ common . generateWord ( 20 ) , common . generateWord ( 20 ) ] ;
16
- const hashKeyParameters = { keyName : keyNames [ 0 ] , fields : [ { field : common . generateWord ( 20 ) , value : common . generateWord ( 20 ) } ] } ;
17
- const setKeyParameters = { keyName : keyNames [ 1 ] , members : [ common . generateWord ( 20 ) ] } ;
18
15
const dbParameters = { host : ossStandaloneRedisearch . host , port : ossStandaloneRedisearch . port } ;
19
16
const keyToAddParameters = { keysCount : 10000 , keyNameStartWith : 'hashKey' } ;
20
17
const keyToAddParameters2 = { keysCount : 500000 , keyNameStartWith : 'hashKey' } ;
@@ -24,8 +21,8 @@ fixture `Bulk Delete`
24
21
. page ( commonUrl )
25
22
. beforeEach ( async ( ) => {
26
23
await acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneRedisearch , ossStandaloneRedisearch . databaseName ) ;
27
- await addHashKeyApi ( hashKeyParameters , ossStandaloneRedisearch ) ;
28
- await addSetKeyApi ( setKeyParameters , ossStandaloneRedisearch ) ;
24
+ await browserPage . addHashKey ( keyNames [ 0 ] , '100000' , common . generateWord ( 20 ) , common . generateWord ( 20 ) ) ;
25
+ await browserPage . addSetKey ( keyNames [ 1 ] , '100000' , common . generateWord ( 20 ) ) ;
29
26
} )
30
27
. afterEach ( async ( ) => {
31
28
// Clear and delete database
@@ -134,7 +131,7 @@ test('Verify that when bulk deletion is completed, status Action completed is di
134
131
test
135
132
. before ( async ( ) => {
136
133
await acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneRedisearch , ossStandaloneRedisearch . databaseName ) ;
137
- await addSetKeyApi ( setKeyParameters , ossStandaloneRedisearch ) ;
134
+ await browserPage . addSetKey ( keyNames [ 1 ] , '100000' , common . generateWord ( 20 ) ) ;
138
135
// Add 10000 Hash keys
139
136
await populateDBWithHashes ( dbParameters . host , dbParameters . port , keyToAddParameters ) ;
140
137
// Filter by Hash keys
0 commit comments