Skip to content

Commit

Permalink
ha
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
  • Loading branch information
drivebyer committed Jan 14, 2025
1 parent 10e8354 commit 1379181
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/e2e-chainsaw/v1beta2/setup/ha/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ spec:
- try:
- apply:
file: ha.yaml
- apply:
file: ../../../../data-assert/resources.yaml

- name: Put data
try:
- script:
timeout: 30s
content: >
kubectl exec --namespace ${NAMESPACE} --container data-assert data-assert --
bash -c "cd /go/src/data-assert && go run main.go gen-redis-data --host redis-sentinel-sentinel.${NAMESPACE}.svc.cluster.local:26379 --mode sentinel"
check:
(contains($stdout, 'OK')): true

- name: Test Master IP consistency
try:
Expand All @@ -41,6 +53,16 @@ spec:
- sleep:
duration: 120s

- name: Assert data
try:
- script:
timeout: 30s
content: >
kubectl exec --namespace ${NAMESPACE} --container data-assert data-assert --
bash -c "cd /go/src/data-assert && go run main.go chk-redis-data --host redis-sentinel-sentinel.${NAMESPACE}.svc.cluster.local:26379 --mode sentinel"
check:
(contains($stdout, 'OK')): true

- name: Test Master IP consistency
try:
- script:
Expand Down

0 comments on commit 1379181

Please sign in to comment.