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

Update tests to use networking.k8s.io/v1 #1854

Merged
merged 7 commits into from Aug 13, 2021
Merged

Conversation

lucacome
Copy link
Member

@lucacome lucacome commented Aug 12, 2021

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

@lucacome lucacome self-assigned this Aug 12, 2021
@github-actions github-actions bot added chore Pull requests for routine tasks documentation Pull requests/issues for documentation labels Aug 12, 2021
@lucacome lucacome requested review from vepatel, pleshakov and soneillf5 and removed request for vepatel August 12, 2021 19:54
perf-tests/data/appprotect-ingress.yaml Show resolved Hide resolved
perf-tests/data/non-ap-ingress.yaml Show resolved Hide resolved
@@ -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}'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

tests/data/appprotect/grpc/ingress.yaml Show resolved Hide resolved

COPY tests /workspace/tests
COPY deployments /workspace/deployments

ENTRYPOINT ["python3", "-m", "pytest"]
ENTRYPOINT ["python3", "-m", "pytest", "suite/"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change?

Copy link
Member Author

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

@lucacome lucacome enabled auto-merge (squash) August 13, 2021 15:35
@lucacome lucacome merged commit 54689e6 into master Aug 13, 2021
@lucacome lucacome deleted the chore/update-tests-v1 branch August 13, 2021 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks documentation Pull requests/issues for documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants