Skip to content

Commit

Permalink
Revert changes in x-pack/test/functional/apps/transform/editing.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
przemekwitek committed Feb 11, 2021
1 parent b4c8ea1 commit f960ff7
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions x-pack/test/functional/apps/transform/editing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { TransformPivotConfig } from '../../../../plugins/transform/common/types
import { TRANSFORM_STATE } from '../../../../plugins/transform/common/constants';

import { FtrProviderContext } from '../../ftr_provider_context';
import { getLatestTransformConfig } from './index';

function getTransformConfig(): TransformPivotConfig {
const date = Date.now();
Expand All @@ -32,7 +31,7 @@ export default function ({ getService }: FtrProviderContext) {

describe('editing', function () {
const transformConfigWithPivot = getTransformConfig();
const transformConfigWithLatest = getLatestTransformConfig();
// const transformConfigWithLatest = getLatestTransformConfig();

before(async () => {
await esArchiver.loadIfNeeded('ml/ecommerce');
Expand All @@ -42,10 +41,10 @@ export default function ({ getService }: FtrProviderContext) {
transformConfigWithPivot.id,
transformConfigWithPivot
);
await transform.api.createAndRunTransform(
transformConfigWithLatest.id,
transformConfigWithLatest
);
// await transform.api.createAndRunTransform(
// transformConfigWithLatest.id,
// transformConfigWithLatest
// );

await transform.testResources.setKibanaTimeZoneToUTC();
await transform.securityUI.loginAsTransformPowerUser();
Expand All @@ -54,8 +53,8 @@ export default function ({ getService }: FtrProviderContext) {
after(async () => {
await transform.testResources.deleteIndexPatternByTitle(transformConfigWithPivot.dest.index);
await transform.api.deleteIndices(transformConfigWithPivot.dest.index);
await transform.testResources.deleteIndexPatternByTitle(transformConfigWithLatest.dest.index);
await transform.api.deleteIndices(transformConfigWithLatest.dest.index);
// await transform.testResources.deleteIndexPatternByTitle(transformConfigWithLatest.dest.index);
// await transform.api.deleteIndices(transformConfigWithLatest.dest.index);
await transform.api.cleanTransformIndices();
});

Expand All @@ -75,21 +74,22 @@ export default function ({ getService }: FtrProviderContext) {
},
},
},
{
suiteTitle: 'edit transform with latest configuration',
originalConfig: transformConfigWithLatest,
transformDescription: 'updated description',
transformDocsPerSecond: '1000',
transformFrequency: '10m',
expected: {
messageText: 'updated transform.',
row: {
status: TRANSFORM_STATE.STOPPED,
mode: 'batch',
progress: '100',
},
},
},
// TODO enable tests when https://github.com/elastic/elasticsearch/issues/67148 is resolved
// {
// suiteTitle: 'edit transform with latest configuration',
// originalConfig: transformConfigWithLatest,
// transformDescription: 'updated description',
// transformDocsPerSecond: '1000',
// transformFrequency: '10m',
// expected: {
// messageText: 'updated transform.',
// row: {
// status: TRANSFORM_STATE.STOPPED,
// mode: 'batch',
// progress: '100',
// },
// },
// },
];

for (const testData of testDataList) {
Expand Down

0 comments on commit f960ff7

Please sign in to comment.