import { TestBed } from '@kbn/test/jest' ; import { createForceMergeActions , createShrinkActions , createReadonlyActions , createIndexPriorityActions , createSearchableSnapshotActions , createMinAgeActions , createNodeAllocationActions , createReplicasAction , createSnapshotPolicyActions , } from './' ; export const createHotPhaseActions = ( testBed ) => { return { hot : { ... createForceMergeActions ( testBed , 'hot' ) , ... createShrinkActions ( testBed , 'hot' ) , ... createReadonlyActions ( testBed , 'hot' ) , ... createIndexPriorityActions ( testBed , 'hot' ) , ... createSearchableSnapshotActions ( testBed , 'hot' ) , } , } ; } ; export const createWarmPhaseActions = ( testBed ) => { return { warm : { ... createMinAgeActions ( testBed , 'warm' ) , ... createForceMergeActions ( testBed , 'warm' ) , ... createShrinkActions ( testBed , 'warm' ) , ... createReadonlyActions ( testBed , 'warm' ) , ... createIndexPriorityActions ( testBed , 'warm' ) , ... createNodeAllocationActions ( testBed , 'warm' ) , ... createReplicasAction ( testBed , 'warm' ) , } , } ; } ; export const createColdPhaseActions = ( testBed ) => { return { cold : { ... createMinAgeActions ( testBed , 'cold' ) , ... createReplicasAction ( testBed , 'cold' ) , ... createReadonlyActions ( testBed , 'cold' ) , ... createIndexPriorityActions ( testBed , 'cold' ) , ... createNodeAllocationActions ( testBed , 'cold' ) , ... createSearchableSnapshotActions ( testBed , 'cold' ) , } , } ; } ; export const createFrozenPhaseActions = ( testBed ) => { return { frozen : { ... createMinAgeActions ( testBed , 'frozen' ) , ... createSearchableSnapshotActions ( testBed , 'frozen' ) , } , } ; } ; export const createDeletePhaseActions = ( testBed ) => { return { delete : { ... createMinAgeActions ( testBed , 'delete' ) , ... createSnapshotPolicyActions ( testBed ) , } , } ; } ;