Skip to content

Commit

Permalink
Remote cluster - Functional UI test to change the superuser to a test…
Browse files Browse the repository at this point in the history
…_user with limited role (#77212)

* wip - remote cluster

* update chromedriver to 85

* remote cluster test_user

* Revert "update chromedriver to 85"

This reverts commit 4abbc54.

Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
3 people committed Sep 14, 2020
1 parent 61c4e6f commit 65b5f94
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x-pack/test/functional/apps/remote_clusters/home_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@ import { FtrProviderContext } from '../../ftr_provider_context';

export default ({ getPageObjects, getService }: FtrProviderContext) => {
const pageObjects = getPageObjects(['common', 'remoteClusters']);
const security = getService('security');

describe('Home page', function () {
before(async () => {
await security.testUser.setRoles(['global_ccr_role']);
await pageObjects.common.navigateToApp('remoteClusters');
});

after(async () => {
await security.testUser.restoreDefaults();
});

it('Loads the app', async () => {
const remoteClusterButton = await pageObjects.remoteClusters.remoteClusterCreateButton();
expect(await remoteClusterButton.isDisplayed()).to.be(true);
Expand Down
3 changes: 3 additions & 0 deletions x-pack/test/functional/apps/remote_clusters/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

import { FtrProviderContext } from '../../ftr_provider_context';

// refer to the below docs for CCR, Remote Clusters
// https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-getting-started.html#ccr-getting-started-prerequisites
// https://www.elastic.co/guide/en/kibana/7.9/working-remote-clusters.html
export default ({ loadTestFile }: FtrProviderContext) => {
describe('Remote Clusters app', function () {
this.tags(['ciGroup4', 'skipCloud']);
Expand Down
1 change: 1 addition & 0 deletions x-pack/test/functional/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ export default async function ({ readConfigFile }) {
],
},

// using this role even for remote clusters
global_ccr_role: {
elasticsearch: {
cluster: ['manage', 'manage_ccr'],
Expand Down

0 comments on commit 65b5f94

Please sign in to comment.