Skip to content

Commit

Permalink
[8.x] [FTR Tests] Remove unnescessary admin logins (#201769) (#202104)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.x`:
- [[FTR Tests] Remove unnescessary admin logins
(#201769)](#201769)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"mohamedhamed-ahmed","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-28T07:37:35Z","message":"[FTR
Tests] Remove unnescessary admin logins (#201769)\n\ncloses
https://github.com/elastic/kibana/issues/196599","sha":"bcbaef3685a7dd45027f462c56a1dee26467ae1e","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Team:obs-ux-logs"],"title":"[FTR
Tests] Remove unnescessary admin
logins","number":201769,"url":"https://github.com/elastic/kibana/pull/201769","mergeCommit":{"message":"[FTR
Tests] Remove unnescessary admin logins (#201769)\n\ncloses
https://github.com/elastic/kibana/issues/196599","sha":"bcbaef3685a7dd45027f462c56a1dee26467ae1e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201769","number":201769,"mergeCommit":{"message":"[FTR
Tests] Remove unnescessary admin logins (#201769)\n\ncloses
https://github.com/elastic/kibana/issues/196599","sha":"bcbaef3685a7dd45027f462c56a1dee26467ae1e"}}]}]
BACKPORT-->

Co-authored-by: mohamedhamed-ahmed <[email protected]>
  • Loading branch information
kibanamachine and mohamedhamed-ahmed authored Nov 28, 2024
1 parent c6e7f09 commit eb0abce
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
getLogsForDataset({ to, count: 10, dataset: bitbucketDatasetName }),
]);

await PageObjects.svlCommonPage.loginAsAdmin();
await PageObjects.svlCommonPage.loginAsViewer();
});

after(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
describe('Dataset quality summary', () => {
before(async () => {
await synthtrace.index(getInitialTestLogs({ to, count: 4 }));
await PageObjects.svlCommonPage.loginAsAdmin();
await PageObjects.svlCommonPage.loginAsViewer();
await PageObjects.datasetQuality.navigateTo();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

describe('extension getAppMenu', () => {
before(async () => {
await svlCommonPage.loginAsAdmin();
await svlCommonPage.loginAsViewer();
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

describe('extension getCellRenderers', () => {
before(async () => {
await PageObjects.svlCommonPage.loginAsAdmin();
await PageObjects.svlCommonPage.loginAsViewer();
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

describe('extension getDocViewer', () => {
before(async () => {
await PageObjects.svlCommonPage.loginAsAdmin();
await PageObjects.svlCommonPage.loginAsViewer();
});

describe('ES|QL mode', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

describe('extension getRowIndicatorProvider', () => {
before(async () => {
await PageObjects.svlCommonPage.loginAsAdmin();
await PageObjects.svlCommonPage.loginAsViewer();
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
});

Expand Down

0 comments on commit eb0abce

Please sign in to comment.