Skip to content

Commit

Permalink
test: add test strategy for redis version
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <[email protected]>
  • Loading branch information
drivebyer committed Sep 16, 2024
1 parent 64d7204 commit d4a372c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ jobs:
needs: [validate_yaml]
name: E2E Test
runs-on: ubuntu-latest

strategy:
matrix:
redis-version: ["v7.0.15"]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -247,5 +249,12 @@ jobs:
run: |
kubectl wait --for=condition=available --timeout=300s deployment/redis-operator-redis-operator -n redis-operator-system
- name: Replace Redis Image Version
run: |
# replace all file under tests/e2e-chainsaw/v1beta2/ with the redis version
# quay.io/opstree/redis:latest -> quay.io/opstree/redis:${{ matrix.redis-version }}
find ./tests/e2e-chainsaw/v1beta2/ -type f -exec gsed -i 's/quay.io\/opstree\/redis:latest/quay.io\/opstree\/redis:v7.0.15/g' {} \;
find ./tests/e2e-chainsaw/v1beta2/ -type f -exec gsed -i 's/quay.io\/opstree\/redis-sentinel:latest/quay.io\/opstree\/redis-sentinel:v7.0.15/g' {} \;
- name: Run chainsaw test
run: chainsaw test --test-dir ./tests/e2e-chainsaw/v1beta2/ --config tests/_config/chainsaw-configuration.yaml

0 comments on commit d4a372c

Please sign in to comment.