nginx-gateway-fabric
nginx-gateway-fabric copied to clipboard
Add crossplane framework for testing
trafficstars
Problem: We want a way to verify nginx configuration reliably in our tests. This is especially useful when introducing new policies, without the desire for testing nginx functionality directly.
Solution: Added a framework for getting the nginx config and passing through crossplane into a structured JSON format for easier parsing.
Because we now use a local container for crossplane in our functional tests, we'll only support running these tests in a kind cluster.
Closes #2014
Checklist
Before creating a PR, run through this checklist and mark each as complete.
- [x] I have read the CONTRIBUTING doc
- [x] I have added tests that prove my fix is effective or that my feature works
- [ ] I have checked that all unit tests pass after adding my changes
- [ ] I have updated necessary documentation
- [x] I have rebased my branch onto main
- [x] I will ensure my PR is targeting the main branch and pulling from my branch from my own fork
Release notes
If this PR introduces a change that affects users and needs to be mentioned in the release notes, please add a brief note that summarizes the change.
NONE