Skip to content

Commit

Permalink
update destination index input functional test for transform
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Jan 14, 2020
1 parent 3eac458 commit 986197e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default function({ getService }: FtrProviderContext) {
await esArchiver.unload('ml/ecommerce');
await transform.api.cleanTransformIndices();
});
const id = `ec_1_${Date.now()}`;

const testDataList = [
{
Expand All @@ -49,7 +50,7 @@ export default function({ getService }: FtrProviderContext) {
label: 'products.base_price.avg',
},
],
transformId: `ec_1_${Date.now()}`,
transformId: id,
transformDescription:
'ecommerce batch transform with groups terms(category.keyword) + date_histogram(order_date) 1m and aggregation avg(products.base_price)',
get destinationIndex(): string {
Expand Down Expand Up @@ -180,7 +181,7 @@ export default function({ getService }: FtrProviderContext) {

it('inputs the destination index', async () => {
await transform.wizard.assertDestinationIndexInputExists();
await transform.wizard.assertDestinationIndexValue('');
await transform.wizard.assertDestinationIndexValue(id);
await transform.wizard.setDestinationIndex(testData.destinationIndex);
});

Expand Down

0 comments on commit 986197e

Please sign in to comment.