diff --git a/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.test.ts b/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.test.ts
index 76708ea4c9647..fd211c3de65ae 100644
--- a/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.test.ts
+++ b/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.test.ts
@@ -405,6 +405,7 @@ describe('', () => {
await actions.cold.setMinAgeUnits('s');
await actions.cold.setDataAllocation('node_attrs');
await actions.cold.setSelectedNodeAttribute('test:123');
+ await actions.cold.setSearchableSnapshot('my-repo');
await actions.cold.setReplicas('123');
await actions.cold.setFreeze(true);
await actions.cold.setIndexPriority('123');
@@ -426,6 +427,9 @@ describe('', () => {
},
},
"freeze": Object {},
+ "searchable_snapshot": Object {
+ "snapshot_repository": "my-repo",
+ },
"set_priority": Object {
"priority": 123,
},
@@ -445,19 +449,6 @@ describe('', () => {
}
`);
});
-
- // Setting searchable snapshot field disables setting replicas so we test this separately
- test('setting searchable snapshot', async () => {
- const { actions } = testBed;
- await actions.cold.enable(true);
- await actions.cold.setSearchableSnapshot('my-repo');
- await actions.savePolicy();
- const latestRequest2 = server.requests[server.requests.length - 1];
- const entirePolicy2 = JSON.parse(JSON.parse(latestRequest2.requestBody).body);
- expect(entirePolicy2.phases.cold.actions.searchable_snapshot.snapshot_repository).toEqual(
- 'my-repo'
- );
- });
});
});
@@ -844,13 +835,15 @@ describe('', () => {
const { component } = testBed;
component.update();
});
- test('hiding and disabling searchable snapshot field', async () => {
+ test('hides fields in hot phase', async () => {
const { actions } = testBed;
await actions.hot.toggleDefaultRollover(false);
await actions.hot.toggleRollover(false);
- await actions.cold.enable(true);
+ expect(actions.hot.forceMergeFieldExists()).toBeFalsy();
+ expect(actions.hot.shrinkExists()).toBeFalsy();
expect(actions.hot.searchableSnapshotsExists()).toBeFalsy();
+ expect(actions.hot.readonlyExists()).toBeFalsy();
});
test('hiding rollover tip on minimum age', async () => {