Coverage for /Users/buh/.pyenv/versions/3.12.2/envs/es-testbed/lib/python3.12/site-packages/es_testbed/exceptions.py: 100%

13 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-05-03 15:52 -0600

1"""es-testbed Exceptions""" 

2 

3 

4class TestbedException(Exception): # parent exception 

5 """ 

6 Base class for all exceptions raised by the tool which are not Elasticsearch 

7 or es_client exceptions. 

8 """ 

9 

10 __test__ = False 

11 

12 

13class MissingArgument(TestbedException): 

14 """ 

15 An expected argument was missing 

16 """ 

17 

18 

19class NameChanged(TestbedException): 

20 """ 

21 An index name changed, likely due to an ILM promotion to cold or frozen 

22 """ 

23 

24 

25class StepChanged(TestbedException): 

26 """ 

27 The current step changed since the initial API call was formed 

28 """ 

29 

30 

31class ResultNotExpected(TestbedException): 

32 """ 

33 The result we got is not what we expected 

34 """ 

35 

36 

37class TestbedFailure(TestbedException): 

38 """ 

39 Whatever we were trying to do failed. 

40 """ 

41 

42 __test__ = False 

43 

44 

45class TestbedMisconfig(TestbedException): 

46 """ 

47 There was a misconfiguration encountered. 

48 """ 

49 

50 __test__ = False 

51 

52 

53class TestPlanMisconfig(TestbedMisconfig): 

54 """ 

55 There was a misconfiguration in a TestPlan. 

56 """ 

57 

58 __test__ = False 

59 

60 

61class TimeoutException(TestbedException): 

62 """ 

63 An process took too long to complete 

64 """