Skip to content

Commit

Permalink
PMM-7 fix post upgrade password change test (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurkovychv authored Nov 3, 2023
1 parent ea9c887 commit 69ab62e
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions tests/upgradePMM_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1207,15 +1207,16 @@ if (versionMinor >= 32) {
}

// This test must be executed last
Scenario(
'PMM-T1189 - verify user is able to change password after upgrade @post-upgrade @pmm-upgrade',
async ({
I, homePage,
}) => {
const newPass = process.env.NEW_ADMIN_PASSWORD || 'admin1';
await I.unAuthorize();
await I.verifyCommand(`docker exec pmm-server change-admin-password ${newPass}`);
await I.Authorize('admin', newPass);
await homePage.open();
},
);
if (versionMinor >= 35) {
Scenario(
'PMM-T1189 - verify user is able to change password after upgrade @post-upgrade @pmm-upgrade',
async ({ I, homePage }) => {
const newPass = process.env.NEW_ADMIN_PASSWORD || 'admin1';

await I.unAuthorize();
await I.verifyCommand(`docker exec pmm-server change-admin-password ${newPass}`);
await I.Authorize('admin', newPass);
await homePage.open();
},
);
}

0 comments on commit 69ab62e

Please sign in to comment.