Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Feb 11, 2021
1 parent 2ac0bde commit e7a9f2f
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
});

describe('global dashboard all with manage_security', () => {
describe('global dashboard read with manage_security', () => {
before(async () => {
await security.testUser.setRoles(['global_dashboard_read', 'manage_security'], true);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
});

describe('global dashboard all with ccr_user', () => {
describe('global dashboard read with ccr_user', () => {
before(async () => {
await security.testUser.setRoles(['global_dashboard_read', 'ccr_user'], true);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
});

describe('global dashboard all with manage_ilm', () => {
describe('global dashboard read with manage_ilm', () => {
before(async () => {
await security.testUser.setRoles(['global_dashboard_all', 'manage_ilm'], true);
await security.testUser.setRoles(['global_dashboard_read', 'manage_ilm'], true);
});
after(async () => {
await security.testUser.restoreDefaults();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
});

describe('global dashboard all with index_management_user', () => {
describe('global dashboard read with index_management_user', () => {
before(async () => {
await security.testUser.setRoles(['global_dashboard_read', 'index_management_user'], true);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
});

describe('global dashboard all with ingest_pipelines_user', () => {
describe('global dashboard read with ingest_pipelines_user', () => {
before(async () => {
await security.testUser.setRoles(['global_dashboard_read', 'ingest_pipelines_user'], true);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
});

describe('global dashboard all with license_management_user', () => {
describe('global dashboard read with license_management_user', () => {
before(async () => {
await security.testUser.setRoles(['global_dashboard_all', 'license_management_user'], true);
await security.testUser.setRoles(
['global_dashboard_read', 'license_management_user'],
true
);
});
after(async () => {
await security.testUser.restoreDefaults();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
});

describe('global dashboard all with logstash_read_user', () => {
describe('global dashboard read with logstash_read_user', () => {
before(async () => {
await security.testUser.setRoles(['global_dashboard_read', 'logstash_read_user'], true);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
});

describe('global dashboard all with license_management_user', () => {
describe('global dashboard read with license_management_user', () => {
before(async () => {
await security.testUser.setRoles(['global_dashboard_all', 'license_management_user'], true);
await security.testUser.setRoles(
['global_dashboard_read', 'license_management_user'],
true
);
});
after(async () => {
await security.testUser.restoreDefaults();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
});

describe('global dashboard all with transform_user', () => {
describe('global dashboard read with transform_user', () => {
before(async () => {
await security.testUser.setRoles(['global_dashboard_all', 'transform_user'], true);
await security.testUser.setRoles(['global_dashboard_read', 'transform_user'], true);
});
after(async () => {
await security.testUser.restoreDefaults();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
});

describe('global dashboard all with global_upgrade_assistant_role', () => {
describe('global dashboard read with global_upgrade_assistant_role', () => {
before(async () => {
await security.testUser.setRoles(
['global_dashboard_all', 'global_upgrade_assistant_role'],
['global_dashboard_read', 'global_upgrade_assistant_role'],
true
);
});
Expand All @@ -60,7 +60,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
expect(links.map((link) => link.text)).to.contain('Stack Management');
});

describe('[SkipCloud] global dashboard all with global_upgrade_assistant_role', function () {
describe('[SkipCloud] global dashboard read with global_upgrade_assistant_role', function () {
this.tags('skipCloud');
it('should render the "Stack" section with Upgrde Assistant', async function () {
await PageObjects.common.navigateToApp('management');
Expand Down

0 comments on commit e7a9f2f

Please sign in to comment.