Skip to content

Commit 46084cb

Browse files
[Ingest]: add more test for transform index (#79154)
1 parent bad6eab commit 46084cb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

x-pack/test/ingest_manager_api_integration/apis/epm/install_remove_assets.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ export default function (providerContext: FtrProviderContext) {
9191
});
9292
expect(res.statusCode).equal(200);
9393
});
94+
it('should have created the index for the transform', async function () {
95+
// the index is defined in the transform file
96+
const res = await es.transport.request({
97+
method: 'GET',
98+
path: `/logs-all_assets.test_log_current_default`,
99+
});
100+
expect(res.statusCode).equal(200);
101+
});
94102
it('should have installed the kibana assets', async function () {
95103
const resIndexPatternLogs = await kibanaServer.savedObjects.get({
96104
type: 'index-pattern',
@@ -260,6 +268,19 @@ export default function (providerContext: FtrProviderContext) {
260268
);
261269
expect(res.statusCode).equal(404);
262270
});
271+
it('should have deleted the index for the transform', async function () {
272+
// the index is defined in the transform file
273+
const res = await es.transport.request(
274+
{
275+
method: 'GET',
276+
path: `/logs-all_assets.test_log_current_default`,
277+
},
278+
{
279+
ignore: [404],
280+
}
281+
);
282+
expect(res.statusCode).equal(404);
283+
});
263284
it('should have uninstalled the kibana assets', async function () {
264285
let resDashboard;
265286
try {

0 commit comments

Comments
 (0)