Skip to content

Commit

Permalink
Fix documented example tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coro committed Dec 12, 2022
1 parent dbef9a3 commit 70a9428
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,42 @@ jobs:
name: operator-manifests
- name: Install Operator build
run: |
make install-tools
make destroy
kubectl apply -f cluster-operator.yml
kubectl --namespace=rabbitmq-system wait --for=condition=Available deployment/rabbitmq-cluster-operator
- name: System tests
make cert-manager
- name: Documented example tests
env:
RABBITMQ_IMAGE: ${{ matrix.rabbitmq-image }}
run: |
make install-tools
make destroy
make system-tests
cat <<EOF | kubectl apply -f -
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: selfsigned-issuer
spec:
selfSigned: {}
EOF
## Removing stale namespace. Most likely due to previous test failures
kubectl delete namespaces examples --ignore-not-found --timeout=5m
for example in $(find docs/examples/ -mindepth 1 -type d)
do
[[ -e "$example"/.ci-skip ]] && continue
pushd "$example"
kubectl create namespace examples
kubectl config set-context --current --namespace=examples
[[ -e setup.sh ]] && ./setup.sh
kubectl apply -f rabbitmq.yaml --timeout=30s
kubectl wait -f rabbitmq.yaml --for=condition=AllReplicasReady --timeout=5m
kubectl wait -f rabbitmq.yaml --for=condition=ReconcileSuccess --timeout=5m
./test.sh
## Teardown
kubectl delete -f rabbitmq.yaml --timeout=3m
kubectl delete namespace examples --timeout=10m
popd
done
release:
name: Release to GitHub Releases
runs-on: ubuntu-latest
Expand Down

0 comments on commit 70a9428

Please sign in to comment.