[8.x] [FTR Tests] Remove unnescessary admin logins (#201769) (#202104)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[FTR Tests] Remove unnescessary admin logins
(#201769)](https://github.com/elastic/kibana/pull/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":"mohamed.ahmed@elastic.co"},"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 <mohamed.ahmed@elastic.co>
This commit is contained in:
Kibana Machine 2024-11-28 20:31:52 +11:00 committed by GitHub
parent c6e7f09a4c
commit eb0abce6fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 6 additions and 6 deletions

View file

@ -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 () => {

View file

@ -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();
});

View file

@ -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');
});

View file

@ -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');
});

View file

@ -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', () => {

View file

@ -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');
});