Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
hop-dev committed Mar 7, 2022
1 parent 74ccc14 commit 8ddebf0
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,12 @@ describe('EPM template', () => {
esClient.indices.getDataStream.mockResponse({
data_streams: [{ name: 'test.prefix1-default' }],
} as any);
esClient.indices.simulateTemplate.mockResponse({
template: {
settings: { index: {} },
mappings: { properties: {} },
},
} as any);
const logger = loggerMock.create();
await updateCurrentWriteIndices(esClient, logger, [
{
Expand Down Expand Up @@ -864,6 +870,14 @@ describe('EPM template', () => {
{ name: 'test-replicated', replicated: true },
],
} as any);

esClient.indices.simulateTemplate.mockResponse({
template: {
settings: { index: {} },
mappings: { properties: {} },
},
} as any);

const logger = loggerMock.create();
await updateCurrentWriteIndices(esClient, logger, [
{
Expand Down

0 comments on commit 8ddebf0

Please sign in to comment.