Skip to content

Commit

Permalink
[index management] Remove unfreeze index test since the api is deprec…
Browse files Browse the repository at this point in the history
…ated and freezing is unavailable (elastic#198746)

## Summary

Remove the `unfreeze` test since the api is deprecated and its
essentially a noop.

More info -
https://www.elastic.co/guide/en/elasticsearch/reference/current/unfreeze-index-api.html
  • Loading branch information
mattkime authored Dec 8, 2024
1 parent 6ffddd9 commit 4dfddc5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default function ({ getService }: FtrProviderContext) {
flushIndex,
refreshIndex,
forceMerge,
unfreeze,
list,
reload,
clearCache,
Expand Down Expand Up @@ -151,20 +150,6 @@ export default function ({ getService }: FtrProviderContext) {
});
});

describe('unfreeze', () => {
it('should unfreeze an index', async () => {
const index = await createIndex();

// Even if the index is already unfrozen, calling the unfreeze api
// will have no effect on it and will return a 200.
await unfreeze(index).expect(200);
const {
body: [cat2],
} = await catIndex(index, 'sth');
expect(cat2.sth).to.be('false');
});
});

describe('list', function () {
it('should list all the indices with the expected properties and data enrichers', async function () {
// Create an index that we can assert against
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ export function indicesApi(getService: FtrProviderContext['getService']) {
const forceMerge = (index: string, args?: { maxNumSegments: number }) =>
executeActionOnIndices({ index, urlParam: 'forcemerge', args });

const unfreeze = (index: string) => executeActionOnIndices({ index, urlParam: 'unfreeze' });

const clearCache = (index: string) => executeActionOnIndices({ index, urlParam: 'clear_cache' });

const list = () => supertest.get(`${API_BASE_PATH}/indices`);
Expand All @@ -56,7 +54,6 @@ export function indicesApi(getService: FtrProviderContext['getService']) {
flushIndex,
refreshIndex,
forceMerge,
unfreeze,
list,
reload,
clearCache,
Expand Down

0 comments on commit 4dfddc5

Please sign in to comment.