Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make tests 🥑 #562

Merged
merged 2 commits into from
Jan 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
- name: Integration tests
run: make integration-tests
- name: Helm chart tests
working-directory: charts/rabbitmq
run: ./test.sh
run: make chart-tests

test-all-examples:
name: test-all-examples
Expand Down
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,16 @@ kind-unprepare: ## Remove KIND support for LoadBalancer services
system-tests: install-tools ## run end-to-end tests against Kubernetes cluster defined in ~/.kube/config
NAMESPACE="rabbitmq-system" ginkgo -nodes=3 -randomizeAllSpecs -r system_tests/

chart-tests:
echo "running charts tests"
cd charts/rabbitmq && ./test.sh

kubectl-plugin-tests:
echo "running kubectl plugin tests"
./bin/kubectl-rabbitmq.bats

tests: unit-tests integration-tests system-tests chart-tests kubectl-plugin-tests

docker-registry-secret: check-env-docker-credentials operator-namespace
echo "creating registry secret and patching default service account"
@kubectl -n $(K8S_OPERATOR_NAMESPACE) create secret docker-registry $(DOCKER_REGISTRY_SECRET) --docker-server='$(DOCKER_REGISTRY_SERVER)' --docker-username="$$DOCKER_REGISTRY_USERNAME" --docker-password="$$DOCKER_REGISTRY_PASSWORD" || true
Expand Down