Skip to content
Merged
Show file tree
Hide file tree
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 @@ -20,9 +20,13 @@ export async function addIntegrationToLogIndexTemplate({
name: 'logs',
});

const template = indexTemplates[0].index_template;
// @ts-expect-error `created_date` is a system-managed property that cannot be set
delete template.created_date;

await esClient.indices.putIndexTemplate({
name: 'logs',
...indexTemplates[0].index_template,
...template,
_meta: {
...indexTemplates[0].index_template._meta,
package: {
Expand All @@ -43,9 +47,13 @@ export async function cleanLogIndexTemplate({ esClient }: { esClient: Client })
name: 'logs',
});

const template = indexTemplates[0].index_template;
// @ts-expect-error `created_date` is a system-managed property that cannot be set
delete template.created_date;

await esClient.indices.putIndexTemplate({
name: 'logs',
...indexTemplates[0].index_template,
...template,
_meta: {
...indexTemplates[0].index_template._meta,
package: undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
]);
}

// FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/230901
registry.when.skip('Api Key privileges check', { config: 'basic' }, () => {
registry.when('Api Key privileges check', { config: 'basic' }, () => {
describe('index privileges', function () {
// This disables the forward-compatibility test for Kibana 8.19 with ES upgraded to 9.0.
// These versions are not expected to work together.
Expand Down Expand Up @@ -137,7 +136,6 @@ export default function ApiTest({ getService }: FtrProviderContext) {

after(async () => {
await logsSynthtrace.clean();
await cleanLogIndexTemplate({ esClient: es });
});
});

Expand Down