-
Notifications
You must be signed in to change notification settings - Fork 10
Description
At Elastic we have developed a testing framework for Crossplane called xprin. It leverages the crossplane render and crossplane beta validate commands. The tests are written in YAML, and its output is similar to the one from go test.
Furthermore, it supports:
- Patching the Inputs for extended coverage
- A custom assertion interface for the
crossplane renderoutput - Chaining tests via exported artifacts, so that we can better emulate the
reconciliation process.
This gist provides detailed information, and also examples of commands, testsuite files and test run outputs.
Additionally, two helper tools have been developed that xprin utilizes:
Both helper tools can be used also as standalone tools, and hopefully in the future they could be used as Crossplane CLI plugins :)
We want to open source xprin (and the helper tools, they are in the same repo currently), and we would like to request to move it to crossplane-contrib.
I am following closely the sig-cli, thus I am aware about crossplane/crossplane#6810 and crossplane/crossplane#6840 which have overlap with xprin. I am committed though into contributing to any solution that ends up to the Crossplane CLI, even extracting features / ideas from xprin if desired.
Looking forward for your feedback, thank you!