Skip to content

Commit 2797575

Browse files
committed
Some fixes for self-healing tests
1 parent 5107f97 commit 2797575

File tree

5 files changed

+102
-11
lines changed

5 files changed

+102
-11
lines changed

e2e-tests/tests/gr-self-healing/14-assert.yaml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: kuttl.dev/v1beta1
22
kind: TestAssert
3-
timeout: 420
3+
timeout: 480
44
---
55
kind: StatefulSet
66
apiVersion: apps/v1
@@ -153,6 +153,41 @@ spec:
153153
status:
154154
experiment:
155155
containerRecords:
156+
- events:
157+
- operation: Apply
158+
type: Succeeded
159+
injectedCount: 1
160+
phase: Injected
161+
recoveredCount: 0
162+
selectorKey: .
163+
- events:
164+
- operation: Apply
165+
type: Succeeded
166+
injectedCount: 1
167+
phase: Injected
168+
recoveredCount: 0
169+
selectorKey: .
170+
- events:
171+
- operation: Apply
172+
type: Succeeded
173+
injectedCount: 1
174+
phase: Injected
175+
recoveredCount: 0
176+
selectorKey: .
177+
- events:
178+
- operation: Apply
179+
type: Succeeded
180+
injectedCount: 1
181+
phase: Injected
182+
recoveredCount: 0
183+
selectorKey: .
184+
- events:
185+
- operation: Apply
186+
type: Succeeded
187+
injectedCount: 1
188+
phase: Injected
189+
recoveredCount: 0
190+
selectorKey: .
156191
- events:
157192
- operation: Apply
158193
type: Succeeded

e2e-tests/tests/gr-self-healing/16-assert.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apiVersion: v1
77
metadata:
88
name: 16-read-from-replicas-0
99
data:
10-
data: |2-
10+
data: |-
1111
100500
1212
100501
1313
100502
@@ -19,7 +19,7 @@ apiVersion: v1
1919
metadata:
2020
name: 16-read-from-replicas-1
2121
data:
22-
data: |2-
22+
data: |-
2323
100500
2424
100501
2525
100502
@@ -31,7 +31,7 @@ apiVersion: v1
3131
metadata:
3232
name: 16-read-from-replicas-2
3333
data:
34-
data: |2-
34+
data: |-
3535
100500
3636
100501
3737
100502

e2e-tests/tests/self-healing/13-assert.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apiVersion: v1
77
metadata:
88
name: 13-read-from-replicas-0
99
data:
10-
data: |2-
10+
data: |-
1111
100500
1212
100501
1313
100502
@@ -18,7 +18,7 @@ apiVersion: v1
1818
metadata:
1919
name: 13-read-from-replicas-1
2020
data:
21-
data: |2-
21+
data: |-
2222
100500
2323
100501
2424
100502
@@ -29,7 +29,7 @@ apiVersion: v1
2929
metadata:
3030
name: 13-read-from-replicas-2
3131
data:
32-
data: |2-
32+
data: |-
3333
100500
3434
100501
3535
100502

e2e-tests/tests/self-healing/14-assert.yaml

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: kuttl.dev/v1beta1
22
kind: TestAssert
3-
timeout: 120
3+
timeout: 480
44
---
55
kind: StatefulSet
66
apiVersion: apps/v1
@@ -69,6 +69,62 @@ spec:
6969
status:
7070
experiment:
7171
containerRecords:
72+
- events:
73+
- operation: Apply
74+
type: Succeeded
75+
injectedCount: 1
76+
phase: Injected
77+
recoveredCount: 0
78+
selectorKey: .
79+
- events:
80+
- operation: Apply
81+
type: Succeeded
82+
injectedCount: 1
83+
phase: Injected
84+
recoveredCount: 0
85+
selectorKey: .
86+
- events:
87+
- operation: Apply
88+
type: Succeeded
89+
injectedCount: 1
90+
phase: Injected
91+
recoveredCount: 0
92+
selectorKey: .
93+
- events:
94+
- operation: Apply
95+
type: Succeeded
96+
injectedCount: 1
97+
phase: Injected
98+
recoveredCount: 0
99+
selectorKey: .
100+
- events:
101+
- operation: Apply
102+
type: Succeeded
103+
injectedCount: 1
104+
phase: Injected
105+
recoveredCount: 0
106+
selectorKey: .
107+
- events:
108+
- operation: Apply
109+
type: Succeeded
110+
injectedCount: 1
111+
phase: Injected
112+
recoveredCount: 0
113+
selectorKey: .
114+
- events:
115+
- operation: Apply
116+
type: Succeeded
117+
injectedCount: 1
118+
phase: Injected
119+
recoveredCount: 0
120+
selectorKey: .
121+
- events:
122+
- operation: Apply
123+
type: Succeeded
124+
injectedCount: 1
125+
phase: Injected
126+
recoveredCount: 0
127+
selectorKey: .
72128
- events:
73129
- operation: Apply
74130
type: Succeeded

e2e-tests/tests/self-healing/16-assert.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apiVersion: v1
77
metadata:
88
name: 16-read-from-replicas-0
99
data:
10-
data: |2-
10+
data: |-
1111
100500
1212
100501
1313
100502
@@ -19,7 +19,7 @@ apiVersion: v1
1919
metadata:
2020
name: 16-read-from-replicas-1
2121
data:
22-
data: |2-
22+
data: |-
2323
100500
2424
100501
2525
100502
@@ -31,7 +31,7 @@ apiVersion: v1
3131
metadata:
3232
name: 16-read-from-replicas-2
3333
data:
34-
data: |2-
34+
data: |-
3535
100500
3636
100501
3737
100502

0 commit comments

Comments
 (0)