Skip to content

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

Description

@rustyjux

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions