[SharedUX] Don't use kibana_user role in functional tests (#205654)

In this PR I've moved a functional test to use the `kibana_admin` role,
rather than `kibana_user`, to avoid usage of deprecated ES API.

https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7660
This commit is contained in:
Tim Sullivan 2025-01-08 08:26:15 -07:00 committed by GitHub
parent 37aa620765
commit 5a3c914e7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const createReportingUser = async () => {
await security.user.create(reporting.REPORTING_USER_USERNAME, {
password: reporting.REPORTING_USER_PASSWORD,
roles: ['data_analyst', 'kibana_user'],
roles: ['data_analyst', 'kibana_admin'],
full_name: 'a reporting user',
});
};