mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
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:
parent
8f8ed8716f
commit
2481edcc28
1 changed files with 5 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue