@@ -30,7 +30,7 @@ func TestAlertingExecutor(t *testing.T) {
30
30
31
31
handler .Eval (context )
32
32
So (context .Firing , ShouldEqual , true )
33
- So (context .FiringEval , ShouldEqual , "true = true" )
33
+ So (context .ConditionEvals , ShouldEqual , "true = true" )
34
34
})
35
35
36
36
Convey ("Show return false with not passing asdf" , func () {
@@ -43,7 +43,7 @@ func TestAlertingExecutor(t *testing.T) {
43
43
44
44
handler .Eval (context )
45
45
So (context .Firing , ShouldEqual , false )
46
- So (context .FiringEval , ShouldEqual , "[true AND false] = false" )
46
+ So (context .ConditionEvals , ShouldEqual , "[true AND false] = false" )
47
47
})
48
48
49
49
Convey ("Show return true if any of the condition is passing with OR operator" , func () {
@@ -56,7 +56,7 @@ func TestAlertingExecutor(t *testing.T) {
56
56
57
57
handler .Eval (context )
58
58
So (context .Firing , ShouldEqual , true )
59
- So (context .FiringEval , ShouldEqual , "[true OR false] = true" )
59
+ So (context .ConditionEvals , ShouldEqual , "[true OR false] = true" )
60
60
})
61
61
62
62
Convey ("Show return false if any of the condition is failing with AND operator" , func () {
@@ -69,7 +69,7 @@ func TestAlertingExecutor(t *testing.T) {
69
69
70
70
handler .Eval (context )
71
71
So (context .Firing , ShouldEqual , false )
72
- So (context .FiringEval , ShouldEqual , "[true AND false] = false" )
72
+ So (context .ConditionEvals , ShouldEqual , "[true AND false] = false" )
73
73
})
74
74
75
75
Convey ("Show return true if one condition is failing with nested OR operator" , func () {
@@ -83,7 +83,7 @@ func TestAlertingExecutor(t *testing.T) {
83
83
84
84
handler .Eval (context )
85
85
So (context .Firing , ShouldEqual , true )
86
- So (context .FiringEval , ShouldEqual , "[[true AND true] OR false] = true" )
86
+ So (context .ConditionEvals , ShouldEqual , "[[true AND true] OR false] = true" )
87
87
})
88
88
89
89
Convey ("Show return false if one condition is passing with nested OR operator" , func () {
@@ -97,7 +97,7 @@ func TestAlertingExecutor(t *testing.T) {
97
97
98
98
handler .Eval (context )
99
99
So (context .Firing , ShouldEqual , false )
100
- So (context .FiringEval , ShouldEqual , "[[true AND false] OR false] = false" )
100
+ So (context .ConditionEvals , ShouldEqual , "[[true AND false] OR false] = false" )
101
101
})
102
102
103
103
Convey ("Show return false if a condition is failing with nested AND operator" , func () {
@@ -111,7 +111,7 @@ func TestAlertingExecutor(t *testing.T) {
111
111
112
112
handler .Eval (context )
113
113
So (context .Firing , ShouldEqual , false )
114
- So (context .FiringEval , ShouldEqual , "[[true AND false] AND true] = false" )
114
+ So (context .ConditionEvals , ShouldEqual , "[[true AND false] AND true] = false" )
115
115
})
116
116
117
117
Convey ("Show return true if a condition is passing with nested OR operator" , func () {
@@ -125,7 +125,7 @@ func TestAlertingExecutor(t *testing.T) {
125
125
126
126
handler .Eval (context )
127
127
So (context .Firing , ShouldEqual , true )
128
- So (context .FiringEval , ShouldEqual , "[[true OR false] OR true] = true" )
128
+ So (context .ConditionEvals , ShouldEqual , "[[true OR false] OR true] = true" )
129
129
})
130
130
})
131
131
}
0 commit comments