@@ -2,7 +2,7 @@ import { rte } from '../../../../helpers/constants';
2
2
import { MyRedisDatabasePage } from '../../../../pageObjects' ;
3
3
import {
4
4
commonUrl ,
5
- ossStandaloneTlsConfig
5
+ ossSentinelConfig
6
6
} from '../../../../helpers/conf' ;
7
7
import { DatabaseHelper } from '../../../../helpers/database' ;
8
8
import { DatabaseAPIRequests } from '../../../../helpers/api/api-database' ;
@@ -14,27 +14,27 @@ const databaseAPIRequests = new DatabaseAPIRequests();
14
14
15
15
const dbTableParams : DbTableParameters = {
16
16
tableName : 'database_instance' ,
17
- columnName : 'caCertId ' ,
17
+ columnName : 'password ' ,
18
18
rowValue : 'invalid' ,
19
19
conditionWhereColumnName : 'name' ,
20
- conditionWhereColumnValue : ossStandaloneTlsConfig . databaseName
20
+ conditionWhereColumnValue : ossSentinelConfig . masters [ 1 ] . alias
21
21
} ;
22
22
23
23
fixture `Encryption`
24
24
. meta ( { type : 'critical_path' , rte : rte . none } )
25
25
. page ( commonUrl )
26
26
. beforeEach ( async ( ) => {
27
27
await databaseHelper . acceptLicenseTerms ( ) ;
28
- await databaseAPIRequests . addNewStandaloneDatabaseApi ( ossStandaloneTlsConfig ) ;
28
+ await databaseAPIRequests . discoverSentinelDatabaseApi ( ossSentinelConfig ) ;
29
29
await myRedisDatabasePage . reloadPage ( ) ;
30
30
} )
31
31
. afterEach ( async ( ) => {
32
- await databaseHelper . deleteDatabase ( ossStandaloneTlsConfig . databaseName ) ;
32
+ await databaseHelper . deleteDatabase ( ossSentinelConfig . masters [ 1 ] . alias ) ;
33
33
} ) ;
34
- test ( 'Verify that data encrypted using KEY' , async t => {
34
+ test . only ( 'Verify that data encrypted using KEY' , async t => {
35
35
const decryptionError = 'Unable to decrypt data' ;
36
36
// Connect to DB
37
- await myRedisDatabasePage . clickOnDBByName ( ossStandaloneTlsConfig . databaseName ) ;
37
+ await myRedisDatabasePage . clickOnDBByName ( ossSentinelConfig . masters [ 1 ] . alias ) ;
38
38
// Return back to db list page
39
39
await t . click ( myRedisDatabasePage . NavigationPanel . myRedisDBButton ) ;
40
40
@@ -43,6 +43,6 @@ test('Verify that data encrypted using KEY', async t => {
43
43
await t
44
44
. expect ( await DatabaseScripts . getColumnValueFromTableInDB ( { ...dbTableParams , columnName : 'encryption' } ) )
45
45
. eql ( 'KEY' , 'Encryption is not applied by RI_ENCRYPTION_KEY' ) ;
46
- await databaseHelper . clickOnEditDatabaseByName ( ossStandaloneTlsConfig . databaseName ) ;
46
+ await databaseHelper . clickOnEditDatabaseByName ( ossSentinelConfig . masters [ 1 ] . alias ) ;
47
47
await t . expect ( myRedisDatabasePage . Toast . toastError . textContent ) . contains ( decryptionError , 'Invalid encrypted field is decrypted' ) ;
48
48
} ) ;
0 commit comments