Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes for upgrade assistant functional test to incorporate test user #70071

Merged
merged 20 commits into from
Jul 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
bad7e81
changes for upgrade assistant functional test to incorporate test user
rashmivkulkarni Jun 26, 2020
71bdcc9
Merge branch 'master' into upgrade_assistant
elasticmachine Jun 26, 2020
3d58783
Merge branch 'master' of github.com:elastic/kibana into upgrade_assis…
rashmivkulkarni Jun 26, 2020
fe79a6d
changes to toggle on/off
rashmivkulkarni Jun 26, 2020
7cf0199
Merge branch 'upgrade_assistant' of github.com:rasroh/kibana into upg…
rashmivkulkarni Jun 26, 2020
9bbbdb6
Merge branch 'master' into upgrade_assistant
elasticmachine Jun 26, 2020
49990b3
upgrade assistant role
rashmivkulkarni Jun 30, 2020
6a8a80d
Merge branch 'master' into upgrade_assistant
rashmivkulkarni Jun 30, 2020
e4836c3
upgrade_assistant role
rashmivkulkarni Jul 1, 2020
eb4c3e1
upgrade assistant
rashmivkulkarni Jul 1, 2020
d03c04f
Merge branch 'master' into upgrade_assistant
elasticmachine Jul 1, 2020
98927e7
more debug statements to check on cloud
rashmivkulkarni Jul 2, 2020
12ef1ef
Merge branch 'upgrade_assistant' of github.com:rasroh/kibana into upg…
rashmivkulkarni Jul 2, 2020
2a80bdb
Merge branch 'master' into upgrade_assistant
elasticmachine Jul 6, 2020
d7cc26e
commented the sleeps to check toggle button
rashmivkulkarni Jul 7, 2020
b493829
Merge branch 'master' into upgrade_assistant
elasticmachine Jul 7, 2020
1b339a3
Merge branch 'master' into upgrade_assistant
elasticmachine Jul 9, 2020
94188d6
reduced the sleep to 2 seconds to test on cloud
rashmivkulkarni Jul 13, 2020
288512c
Merge branch 'master' into upgrade_assistant
elasticmachine Jul 13, 2020
14c5459
Merge branch 'master' into upgrade_assistant
elasticmachine Jul 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions x-pack/test/functional/apps/upgrade_assistant/upgrade_assistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,22 @@ export default function upgradeAssistantFunctionalTests({
getPageObjects,
}: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const PageObjects = getPageObjects(['upgradeAssistant']);
const PageObjects = getPageObjects(['upgradeAssistant', 'common']);
const security = getService('security');
const log = getService('log');

describe('Upgrade Checkup', function () {
this.tags('includeFirefox');
before(async () => await esArchiver.load('empty_kibana'));

before(async () => {
await esArchiver.load('empty_kibana');
await security.testUser.setRoles(['global_upgrade_assistant_role']);
});

after(async () => {
await PageObjects.upgradeAssistant.expectTelemetryHasFinish();
await esArchiver.unload('empty_kibana');
await security.testUser.restoreDefaults();
});

it('allows user to navigate to upgrade checkup', async () => {
Expand All @@ -28,9 +36,17 @@ export default function upgradeAssistantFunctionalTests({

it('allows user to toggle deprecation logging', async () => {
await PageObjects.upgradeAssistant.navigateToPage();
log.debug('expect initial state to be ON');
await PageObjects.upgradeAssistant.expectDeprecationLoggingLabel('On');
log.debug('Now toggle to off');
await PageObjects.upgradeAssistant.toggleDeprecationLogging();
await PageObjects.common.sleep(2000);
log.debug('expect state to be OFF after toggle');
await PageObjects.upgradeAssistant.expectDeprecationLoggingLabel('Off');
await PageObjects.upgradeAssistant.toggleDeprecationLogging();
await PageObjects.common.sleep(2000);
log.debug('expect state to be ON after toggle');
await PageObjects.upgradeAssistant.expectDeprecationLoggingLabel('On');
});

it('allows user to open cluster tab', async () => {
Expand Down
14 changes: 14 additions & 0 deletions x-pack/test/functional/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,20 @@ export default async function ({ readConfigFile }) {
],
},

global_upgrade_assistant_role: {
elasticsearch: {
cluster: ['manage'],
},
kibana: [
{
feature: {
discover: ['read'],
},
spaces: ['*'],
},
],
},

global_ccr_role: {
elasticsearch: {
cluster: ['manage', 'manage_ccr'],
Expand Down