Skip to content

Commit

Permalink
Fix api integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaStoeva committed Jan 24, 2025
1 parent e9cf1ee commit b1f02c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export default function ({ getService }: FtrProviderContext) {
});

describe('with logs-*-* index pattern', () => {
const logsdbTemplateName = 'logs';
const logsdbTemplateName = 'test-logsdb-template';
before(async () => {
const template = getTemplatePayload(logsdbTemplateName, ['logs-*-*']);
await createTemplate(template).expect(200);
Expand All @@ -249,7 +249,7 @@ export default function ({ getService }: FtrProviderContext) {
const logsdbSettings: Array<{ enabled: boolean | null; indexMode: string }> = [
{ enabled: true, indexMode: 'logsdb' },
{ enabled: false, indexMode: 'standard' },
{ enabled: null, indexMode: 'logsdb' }, // In stateful Kibana, the cluster.logsdb.enabled setting is false by default, so standard index mode
{ enabled: null, indexMode: 'standard' }, // In stateful Kibana, the cluster.logsdb.enabled setting is false by default, so standard index mode
];

logsdbSettings.forEach(({ enabled, indexMode }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ export default function ({ getService }: FtrProviderContext) {

const { body: dataStream } = await supertest
.get(`${API_BASE_PATH}/data_streams/${logsdbDataStreamName}`)
.set('kbn-xsrf', 'xxx')
.set(internalReqHeader)
.set(roleAuthc.apiKeyHeader)
.expect(200);

expect(dataStream.indexMode).to.eql(indexMode);
Expand Down

0 comments on commit b1f02c0

Please sign in to comment.