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

Add Authorino make target #260

Merged
merged 1 commit into from
Nov 6, 2023
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
8 changes: 6 additions & 2 deletions Makefile
azgabur marked this conversation as resolved.
Show resolved Hide resolved
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/.