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:
- Creating a non-op 'switch' to use in the kube-api (env variable or startup parameter?)
- 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?
- Create new Cypress tests which check the k8s route yaml
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:
kube-apioutput more directly?