Coverage for tests/integration/test_cold.py: 100%

28 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-05-02 08:55 -0600

1"""Cold tier tests. Mixed ILM""" 

2 

3from . import TestAny 

4 

5SSTIER = 'cold' 

6REPOTEST = True 

7ILM = { 

8 'enabled': True, 

9 'tiers': ['hot', SSTIER, 'delete'], 

10 'forcemerge': False, 

11 'max_num_segments': 1, 

12} 

13 

14 

15class TestDataStream(TestAny): 

16 """TestDataStream""" 

17 

18 sstier = SSTIER 

19 kind = 'data_stream' 

20 roll = False 

21 repo_test = REPOTEST 

22 ilm = ILM 

23 

24 

25class TestIndices(TestAny): 

26 """TestIndices""" 

27 

28 sstier = SSTIER 

29 kind = 'indices' 

30 roll = False 

31 repo_test = REPOTEST 

32 ilm = {'enabled': False} 

33 

34 

35class TestRolloverIndices(TestAny): 

36 """TestRolloverIndices""" 

37 

38 sstier = SSTIER 

39 kind = 'indices' 

40 roll = True 

41 repo_test = REPOTEST 

42 ilm = {'enabled': False} 

43 

44 

45class TestRolloverIndicesILM(TestAny): 

46 """TestRolloverIndicesILM""" 

47 

48 sstier = SSTIER 

49 kind = 'indices' 

50 roll = True 

51 repo_test = REPOTEST 

52 ilm = ILM