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

Improving e2e testing with a 'non-op' kubeAPI #124

Open
rustyjux opened this issue Oct 30, 2024 · 1 comment
Open

Improving e2e testing with a 'non-op' kubeAPI #124

rustyjux opened this issue Oct 30, 2024 · 1 comment
Labels

Comments

@rustyjux
Copy link
Contributor

rustyjux commented Oct 30, 2024

Current end to end testing in Cypress is limited in that the outputs of the kube API (which takes calls from gateway API to make necessary updates to routes on kubernetes) are not checked.

Creating a mode for kubeAPI where the kubernetes updates are output to file or stdout and checked as part of e2e testing would improve coverage

Implementation will involve:

  1. Creating a non-op 'switch' to use in the kube-api (env variable or startup parameter?)
  2. Modify the behaviour of the functions that create k8s routes to instead just return the route yaml (based on the non-op switch)
  • How to pass this response back through gwa-api and Portal api? or can we review the kube-api output more directly?
  1. Create new Cypress tests which check the k8s route yaml
@rustyjux rustyjux added the jira label Oct 30, 2024
@rustyjux
Copy link
Contributor Author

@ikethecoder could use your input here on how to implement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant