Skip to content

Commit

Permalink
Some fixes for self-healing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tplavcic committed Aug 16, 2023
1 parent 5107f97 commit 2797575
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 11 deletions.
37 changes: 36 additions & 1 deletion e2e-tests/tests/gr-self-healing/14-assert.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 420
timeout: 480
---
kind: StatefulSet
apiVersion: apps/v1
Expand Down Expand Up @@ -153,6 +153,41 @@ spec:
status:
experiment:
containerRecords:
- events:
- operation: Apply
type: Succeeded
injectedCount: 1
phase: Injected
recoveredCount: 0
selectorKey: .
- events:
- operation: Apply
type: Succeeded
injectedCount: 1
phase: Injected
recoveredCount: 0
selectorKey: .
- events:
- operation: Apply
type: Succeeded
injectedCount: 1
phase: Injected
recoveredCount: 0
selectorKey: .
- events:
- operation: Apply
type: Succeeded
injectedCount: 1
phase: Injected
recoveredCount: 0
selectorKey: .
- events:
- operation: Apply
type: Succeeded
injectedCount: 1
phase: Injected
recoveredCount: 0
selectorKey: .
- events:
- operation: Apply
type: Succeeded
Expand Down
6 changes: 3 additions & 3 deletions e2e-tests/tests/gr-self-healing/16-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apiVersion: v1
metadata:
name: 16-read-from-replicas-0
data:
data: |2-
data: |-
100500
100501
100502
Expand All @@ -19,7 +19,7 @@ apiVersion: v1
metadata:
name: 16-read-from-replicas-1
data:
data: |2-
data: |-
100500
100501
100502
Expand All @@ -31,7 +31,7 @@ apiVersion: v1
metadata:
name: 16-read-from-replicas-2
data:
data: |2-
data: |-
100500
100501
100502
Expand Down
6 changes: 3 additions & 3 deletions e2e-tests/tests/self-healing/13-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apiVersion: v1
metadata:
name: 13-read-from-replicas-0
data:
data: |2-
data: |-
100500
100501
100502
Expand All @@ -18,7 +18,7 @@ apiVersion: v1
metadata:
name: 13-read-from-replicas-1
data:
data: |2-
data: |-
100500
100501
100502
Expand All @@ -29,7 +29,7 @@ apiVersion: v1
metadata:
name: 13-read-from-replicas-2
data:
data: |2-
data: |-
100500
100501
100502
Expand Down
58 changes: 57 additions & 1 deletion e2e-tests/tests/self-healing/14-assert.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 120
timeout: 480
---
kind: StatefulSet
apiVersion: apps/v1
Expand Down Expand Up @@ -69,6 +69,62 @@ spec:
status:
experiment:
containerRecords:
- events:
- operation: Apply
type: Succeeded
injectedCount: 1
phase: Injected
recoveredCount: 0
selectorKey: .
- events:
- operation: Apply
type: Succeeded
injectedCount: 1
phase: Injected
recoveredCount: 0
selectorKey: .
- events:
- operation: Apply
type: Succeeded
injectedCount: 1
phase: Injected
recoveredCount: 0
selectorKey: .
- events:
- operation: Apply
type: Succeeded
injectedCount: 1
phase: Injected
recoveredCount: 0
selectorKey: .
- events:
- operation: Apply
type: Succeeded
injectedCount: 1
phase: Injected
recoveredCount: 0
selectorKey: .
- events:
- operation: Apply
type: Succeeded
injectedCount: 1
phase: Injected
recoveredCount: 0
selectorKey: .
- events:
- operation: Apply
type: Succeeded
injectedCount: 1
phase: Injected
recoveredCount: 0
selectorKey: .
- events:
- operation: Apply
type: Succeeded
injectedCount: 1
phase: Injected
recoveredCount: 0
selectorKey: .
- events:
- operation: Apply
type: Succeeded
Expand Down
6 changes: 3 additions & 3 deletions e2e-tests/tests/self-healing/16-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apiVersion: v1
metadata:
name: 16-read-from-replicas-0
data:
data: |2-
data: |-
100500
100501
100502
Expand All @@ -19,7 +19,7 @@ apiVersion: v1
metadata:
name: 16-read-from-replicas-1
data:
data: |2-
data: |-
100500
100501
100502
Expand All @@ -31,7 +31,7 @@ apiVersion: v1
metadata:
name: 16-read-from-replicas-2
data:
data: |2-
data: |-
100500
100501
100502
Expand Down

0 comments on commit 2797575

Please sign in to comment.