-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathreactions_conflict_test.yaml
More file actions
91 lines (84 loc) · 2.74 KB
/
Copy pathreactions_conflict_test.yaml
File metadata and controls
91 lines (84 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
suite: reactions conflict
templates:
- templates/active-checks.yaml
tests:
- it: ib-gpu-perf should fail if both commentSlurmNode and drainSlurmNode are set under failureReactions
template: templates/active-checks.yaml
set:
checks:
ib-gpu-perf:
failureReactions:
commentSlurmNode:
commentPrefix: "[node_problem]"
drainSlurmNode:
drainReasonPrefix: "[node_problem]"
asserts:
- failedTemplate:
errorMessage: "checks.ib-gpu-perf.failureReactions: cannot set both commentSlurmNode and drainSlurmNode simultaneously"
- it: ib-gpu-perf should render when only commentSlurmNode is set
template: templates/active-checks.yaml
set:
checks:
ib-gpu-perf:
failureReactions:
commentSlurmNode:
commentPrefix: "[node_problem]"
drainSlurmNode: null
asserts:
- notFailedTemplate: {}
- it: ib-gpu-perf should render when only drainSlurmNode is set
template: templates/active-checks.yaml
set:
checks:
ib-gpu-perf:
failureReactions:
drainSlurmNode:
drainReasonPrefix: "[node_problem]"
commentSlurmNode: null
asserts:
- notFailedTemplate: {}
- it: gpu-checks should fail if both commentSlurmNode and drainSlurmNode are set under failureReactions
template: templates/active-checks.yaml
set:
checks:
gpu-checks:
failureReactions:
commentSlurmNode:
commentPrefix: "[node_problem]"
drainSlurmNode:
drainReasonPrefix: "[node_problem]"
asserts:
- failedTemplate:
errorMessage: "checks.gpu-checks.failureReactions: cannot set both commentSlurmNode and drainSlurmNode simultaneously"
- it: gpu-checks should render when only commentSlurmNode is set
template: templates/active-checks.yaml
set:
checks:
gpu-checks:
failureReactions:
commentSlurmNode:
commentPrefix: "[node_problem]"
drainSlurmNode: null
asserts:
- notFailedTemplate: {}
- it: gpu-checks should render when only drainSlurmNode is set
template: templates/active-checks.yaml
set:
checks:
gpu-checks:
failureReactions:
commentSlurmNode: null
drainSlurmNode:
drainReasonPrefix: "[node_problem]"
asserts:
- notFailedTemplate: {}
- it: gpu-checks should render when both reaction nodes are explicitly null
template: templates/active-checks.yaml
set:
checks:
gpu-checks:
failureReactions:
commentSlurmNode: null
drainSlurmNode: null
asserts:
- notFailedTemplate: {}