Skip to content

Commit

Permalink
[Ingest]: add more test for transform index (#79154) (#79578)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnamdifrankie authored Oct 6, 2020
1 parent a14c2ae commit c5d7a96
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ export default function (providerContext: FtrProviderContext) {
});
expect(res.statusCode).equal(200);
});
it('should have created the index for the transform', async function () {
// the index is defined in the transform file
const res = await es.transport.request({
method: 'GET',
path: `/logs-all_assets.test_log_current_default`,
});
expect(res.statusCode).equal(200);
});
it('should have installed the kibana assets', async function () {
const resIndexPatternLogs = await kibanaServer.savedObjects.get({
type: 'index-pattern',
Expand Down Expand Up @@ -261,6 +269,19 @@ export default function (providerContext: FtrProviderContext) {
);
expect(res.statusCode).equal(404);
});
it('should have deleted the index for the transform', async function () {
// the index is defined in the transform file
const res = await es.transport.request(
{
method: 'GET',
path: `/logs-all_assets.test_log_current_default`,
},
{
ignore: [404],
}
);
expect(res.statusCode).equal(404);
});
it('should have uninstalled the kibana assets', async function () {
let resDashboard;
try {
Expand Down

0 comments on commit c5d7a96

Please sign in to comment.