mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-08 18:15:48 +00:00
Allow running e2e tests on local (dev) cluster (#2190)
* Added test-e2e-local in the Makefile Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com> * Added a proper Indentation Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
This commit is contained in:
parent
d3e47b8e48
commit
749854c589
1 changed files with 10 additions and 0 deletions
10
Makefile
10
Makefile
|
@ -184,6 +184,16 @@ test-e2e:
|
|||
go test ./test/e2e/generate -v
|
||||
$(eval export E2E="")
|
||||
|
||||
test-e2e-local:
|
||||
$(eval export E2E="ok")
|
||||
kubectl apply -f https://raw.githubusercontent.com/kyverno/kyverno/main/definitions/github/rbac.yaml
|
||||
kubectl port-forward -n kyverno service/kyverno-svc-metrics 8000:8000 &
|
||||
go test ./test/e2e/metrics -v
|
||||
go test ./test/e2e/mutate -v
|
||||
go test ./test/e2e/generate -v
|
||||
kill $!
|
||||
$(eval export E2E="")
|
||||
|
||||
#Test TestCmd Policy
|
||||
test-cmd: cli
|
||||
$(PWD)/$(CLI_PATH)/kyverno test https://github.com/kyverno/policies/main
|
||||
|
|
Loading…
Add table
Reference in a new issue