Skip to content

Commit 8015bc8

Browse files
fix for user's name and password
1 parent daad6ca commit 8015bc8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/e2e/tests/web/critical-path/url-handling/url-handling.e2e.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ const browserPage = new BrowserPage();
1212
const databaseAPIRequests = new DatabaseAPIRequests();
1313
const databaseHelper = new DatabaseHelper();
1414

15-
let { host, port, databaseName, databaseUsername = '', databasePassword = '' } = ossStandaloneRedisGears;
15+
const { host, port, databaseName, databaseUsername = '', databasePassword = '' } = ossStandaloneRedisGears;
16+
const username = 'alice&&';
17+
const password = 'p1pp0@&';
1618

1719
function generateLink(params: Record<string, any>): string {
1820
const params1 = Common.generateUrlTParams(params);
@@ -51,20 +53,18 @@ test
5153
test
5254
.before(async() => {
5355
await databaseHelper.acceptLicenseTermsAndAddDatabaseApi(ossStandaloneRedisGears);
54-
await browserPage.Cli.sendCommandInCli('acl DELUSER alice&&');
55-
await browserPage.Cli.sendCommandInCli('ACL SETUSER alice&& on >p1pp0@& +@all ~*');
56+
await browserPage.Cli.sendCommandInCli(`acl DELUSER ${username}`);
57+
await browserPage.Cli.sendCommandInCli(`ACL SETUSER ${username} on >${password} +@all ~*`);
5658
})
5759
.after(async t => {
5860
// Delete all existing connections
5961
await t.click(myRedisDatabasePage.NavigationPanel.myRedisDBButton);
6062
await myRedisDatabasePage.clickOnDBByName(databaseName);
61-
await browserPage.Cli.sendCommandInCli('acl DELUSER alice&&');
63+
await browserPage.Cli.sendCommandInCli(`acl DELUSER ${username}`);
6264
await databaseAPIRequests.deleteAllDatabasesApi();
6365
})
6466
.page(commonUrl)('Add DB using url automatically', async t => {
65-
databaseUsername = 'alice&&';
66-
databasePassword = 'p1pp0@&';
67-
const codedUrl = `redis://${databaseUsername}:${databasePassword}@${host}:${port}`;
67+
const codedUrl = `redis://${username}:${password}@${host}:${port}`;
6868
const connectUrlParams = {
6969
redisUrl: codedUrl,
7070
databaseAlias: databaseName,

0 commit comments

Comments
 (0)