Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

78024: add more test for transform index #79154

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -260,6 +268,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