Fix test and remove skip MKI tag (#207574)

Related to https://github.com/elastic/kibana/issues/207354

## Summary

Fix test and unskip on MKI
This commit is contained in:
Kevin Delemme 2025-01-22 08:18:04 -05:00 committed by GitHub
parent 8f8ed8716f
commit 2481edcc28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,7 @@ import { cleanup, generate } from '@kbn/data-forge';
import expect from '@kbn/expect';
import { RoleCredentials } from '@kbn/ftr-common-functional-services';
import { getSLOSummaryTransformId, getSLOTransformId } from '@kbn/slo-plugin/common/constants';
import { UserProfile } from '@kbn/test/src/auth/types';
import { DeploymentAgnosticFtrProviderContext } from '../../../ftr_provider_context';
import { DEFAULT_SLO } from './fixtures/slo';
import { DATA_FORGE_CONFIG } from './helpers/dataforge';
@ -27,12 +28,14 @@ export default function ({ getService }: DeploymentAgnosticFtrProviderContext) {
let adminRoleAuthc: RoleCredentials;
let transformHelper: TransformHelper;
let userData: UserProfile;
describe('Create SLOs', function () {
// see details: https://github.com/elastic/kibana/issues/207354
this.tags(['failsOnMKI']);
before(async () => {
adminRoleAuthc = await samlAuth.createM2mApiKeyWithRoleScope('admin');
userData = await samlAuth.getUserData('admin');
transformHelper = createTransformHelper(getService);
await generate({ client: esClient, config: DATA_FORGE_CONFIG, logger });
@ -64,9 +67,9 @@ export default function ({ getService }: DeploymentAgnosticFtrProviderContext) {
expect(definitions.results[0]).eql({
budgetingMethod: 'occurrences',
updatedAt: definitions.results[0].updatedAt,
updatedBy: 'elastic_admin',
updatedBy: userData.username,
createdAt: definitions.results[0].createdAt,
createdBy: 'elastic_admin',
createdBy: userData.username,
description: 'Fixture for api integration tests',
enabled: true,
groupBy: 'tags',