Skip to content

Commit cd592fb

Browse files
committed
check for sentinel with pass
1 parent d644a15 commit cd592fb

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

.circleci/config.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,36 +1146,36 @@ workflows:
11461146
only:
11471147
- /^e2e/feature.*/
11481148
- /^e2e/bugfix.*/
1149-
- setup-sign-certificates:
1150-
name: Setup sign certificates (stage)
1151-
requires:
1152-
- Start E2E Tests
1153-
- setup-build:
1154-
name: Setup build (stage)
1155-
requires:
1156-
- Setup sign certificates (stage)
1157-
- linux:
1158-
name: Build app - Linux (stage)
1159-
env: stage
1160-
redisstack: false
1161-
target: AppImage
1162-
requires:
1163-
- Setup build (stage)
1149+
# - setup-sign-certificates:
1150+
# name: Setup sign certificates (stage)
1151+
# requires:
1152+
# - Start E2E Tests
1153+
# - setup-build:
1154+
# name: Setup build (stage)
1155+
# requires:
1156+
# - Setup sign certificates (stage)
1157+
# - linux:
1158+
# name: Build app - Linux (stage)
1159+
# env: stage
1160+
# redisstack: false
1161+
# target: AppImage
1162+
# requires:
1163+
# - Setup build (stage)
11641164
- docker:
11651165
name: Build docker image
11661166
requires:
11671167
- Start E2E Tests
11681168
- e2e-tests:
11691169
name: E2ETest
11701170
build: docker
1171-
parallelism: 4
1171+
parallelism: 1
11721172
requires:
11731173
- Build docker image
1174-
- e2e-app-image:
1175-
name: E2ETest (AppImage)
1176-
parallelism: 2
1177-
requires:
1178-
- Build app - Linux (stage)
1174+
# - e2e-app-image:
1175+
# name: E2ETest (AppImage)
1176+
# parallelism: 2
1177+
# requires:
1178+
# - Build app - Linux (stage)
11791179
# Workflow for feature, bugfix, main branches
11801180
feature-main-branch:
11811181
<<: *ignore-for-manual-build

tests/e2e/tests/web/critical-path/database/encryption.e2e.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { rte } from '../../../../helpers/constants';
22
import { MyRedisDatabasePage } from '../../../../pageObjects';
33
import {
44
commonUrl,
5-
ossStandaloneTlsConfig
5+
ossSentinelConfig
66
} from '../../../../helpers/conf';
77
import { DatabaseHelper } from '../../../../helpers/database';
88
import { DatabaseAPIRequests } from '../../../../helpers/api/api-database';
@@ -14,27 +14,27 @@ const databaseAPIRequests = new DatabaseAPIRequests();
1414

1515
const dbTableParams: DbTableParameters = {
1616
tableName: 'database_instance',
17-
columnName: 'caCertId',
17+
columnName: 'password',
1818
rowValue: 'invalid',
1919
conditionWhereColumnName: 'name',
20-
conditionWhereColumnValue: ossStandaloneTlsConfig.databaseName
20+
conditionWhereColumnValue: ossSentinelConfig.masters[1].alias
2121
};
2222

2323
fixture `Encryption`
2424
.meta({ type: 'critical_path', rte: rte.none })
2525
.page(commonUrl)
2626
.beforeEach(async() => {
2727
await databaseHelper.acceptLicenseTerms();
28-
await databaseAPIRequests.addNewStandaloneDatabaseApi(ossStandaloneTlsConfig);
28+
await databaseAPIRequests.discoverSentinelDatabaseApi(ossSentinelConfig);
2929
await myRedisDatabasePage.reloadPage();
3030
})
3131
.afterEach(async() => {
32-
await databaseHelper.deleteDatabase(ossStandaloneTlsConfig.databaseName);
32+
await databaseHelper.deleteDatabase(ossSentinelConfig.masters[1].alias);
3333
});
34-
test('Verify that data encrypted using KEY', async t => {
34+
test.only('Verify that data encrypted using KEY', async t => {
3535
const decryptionError = 'Unable to decrypt data';
3636
// Connect to DB
37-
await myRedisDatabasePage.clickOnDBByName(ossStandaloneTlsConfig.databaseName);
37+
await myRedisDatabasePage.clickOnDBByName(ossSentinelConfig.masters[1].alias);
3838
// Return back to db list page
3939
await t.click(myRedisDatabasePage.NavigationPanel.myRedisDBButton);
4040

@@ -43,6 +43,6 @@ test('Verify that data encrypted using KEY', async t => {
4343
await t
4444
.expect(await DatabaseScripts.getColumnValueFromTableInDB({ ...dbTableParams, columnName: 'encryption' }))
4545
.eql('KEY', 'Encryption is not applied by RI_ENCRYPTION_KEY');
46-
await databaseHelper.clickOnEditDatabaseByName(ossStandaloneTlsConfig.databaseName);
46+
await databaseHelper.clickOnEditDatabaseByName(ossSentinelConfig.masters[1].alias);
4747
await t.expect(myRedisDatabasePage.Toast.toastError.textContent).contains(decryptionError, 'Invalid encrypted field is decrypted');
4848
});

0 commit comments

Comments
 (0)