diff --git a/Makefile b/Makefile index a0255460..f5c64372 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: commit-acceptance pylint mypy black reformat test poetry poetry-no-dev mgc container-image +.PHONY: commit-acceptance pylint mypy black reformat test performance authorino poetry poetry-no-dev mgc container-image TB ?= short LOGLEVEL ?= INFO @@ -39,10 +39,14 @@ all-is-package: testsuite/%: FORCE poetry-no-dev $(PYTEST) --performance --mgc -v $(flags) $@ -test: ## Run test +test: ## Run tests test pytest tests: poetry-no-dev $(PYTEST) -n4 -m 'not flaky' --dist loadfile $(flags) testsuite +authorino: ## Run test +authorino: poetry-no-dev + $(PYTEST) -n4 -m 'not flaky' --dist loadfile $(flags) testsuite/tests/kuadrant/authorino + performance: ## Run performance tests performance: poetry-no-dev $(PYTEST) --performance $(flags) testsuite/tests/kuadrant/authorino/performance diff --git a/README.md b/README.md index d2dd6df2..252596fb 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,26 @@ # Kuadrant E2E testsuite -This repository contains end-to-end tests for Kuadrant project. Currently, it only contains tests for Authorino. +This repository contains end-to-end tests for Kuadrant project. It supports running tests either against standalone Authorino and Authorino Operator, or the entire Kuadrant, both Service Protection and MGC. For more information about Kuadrant, please visit https://kuadrant.io/ ## Requirements -To run the testsuite you currently need an OpenShift 4.x cluster with Authorino Operator deployed and namespace where the tests will be executed. +### Authorino standalone tests +* OpenShift 4.x cluster +* Authorino Operator installed +* Use `authorino` make target + +### Service Protection tests +* OpenShift 4.x cluster +* Kuadrant Operator installed +* Use `test` make target + +### Multi-cluster Gateway Controller tests (make mgc) +* OpenShift 4.x cluster(s) +* OCM setup with both hub and spokes (can be a single cluster) +* Existing GatewayClass `kuadrant-multi-cluster-gateway-instance-per-cluster` +* Existing ManagedZones `gcp-mz` and `aws-mz` for Google Cloud and AWS respectively +* Use `mgc` make target + ## Configuration @@ -105,4 +121,4 @@ spec: valueFrom: { authJSON: auth } ``` -Another thing which might helpful is using playground for developing OPA policies https://play.openpolicyagent.org/. \ No newline at end of file +Another thing which might helpful is using playground for developing OPA policies https://play.openpolicyagent.org/.