-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update tests to use networking.k8s.io/v1 #1854
Conversation
6fff932
to
2b535f8
Compare
2b535f8
to
f3534b0
Compare
@@ -29,9 +29,10 @@ run-tests-in-kind: | |||
|
|||
.PHONY: create-kind-cluster | |||
create-kind-cluster: | |||
kind create cluster | |||
$(eval K8S_VERSION=$(shell grep "K8S_VERSION:" ../.github/workflows/edge.yml | awk -F" " '{print $$2}')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
|
||
COPY tests /workspace/tests | ||
COPY deployments /workspace/deployments | ||
|
||
ENTRYPOINT ["python3", "-m", "pytest"] | ||
ENTRYPOINT ["python3", "-m", "pytest", "suite/"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
installing kubernetes
from github will pull the src
folder and pytest will run the tests for the library too
ce05ac0
to
6d0b3d3
Compare
I had to use k8s client version coming from this brach https://github.com/kubernetes-client/python/commits/release-19.0 that has the new v1 API