Skip to content

Commit

Permalink
Merge pull request Kuadrant#260 from pehala/update-targets
Browse files Browse the repository at this point in the history
Add Authorino make target
  • Loading branch information
pehala authored Nov 6, 2023
2 parents b9af83f + da93e25 commit ad5cd2f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -105,4 +121,4 @@ spec:
valueFrom: { authJSON: auth }
```
Another thing which might helpful is using playground for developing OPA policies https://play.openpolicyagent.org/.
Another thing which might helpful is using playground for developing OPA policies https://play.openpolicyagent.org/.

0 comments on commit ad5cd2f

Please sign in to comment.