Skip to content

request for moving the xprin testing framework to crossplane-contrib #103

@tampakrap

Description

@tampakrap

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 render output
  • 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions