cert-manager / csi-lib

A library for building CSI drivers that request certificates from cert-manager
Apache License 2.0
14 stars 13 forks source link

WIP: E2E testing boilerplate #34

Open JoshVanL opened 2 years ago

JoshVanL commented 2 years ago

This PR adds the initial e2e test boilerplate code.

The script hack/run-e2e.sh spins up a kind cluster, loads the example cert-manager-csi conainer, installs cert-manager+csi-driver then runs the e2e test suite.

There is currently only a dummy TODO test written.

The PR experiments with using nix flakes for dependency management and building the project. You should invoke the test script using `./hack/run-e2e.sh (once you have installed nix first!).

/cc @munnerz /hold

Waiting to get a nix CI image released so we can see how this runs in prow.


Some interesting commands you might want to try:

nix flake show
nix develop
nix build
nix build #.container
nix build #.cert-manager-csi
nix build #.csi-lib-e2e
./hack/run-e2e.sh
jetstack-bot commented 2 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoshVanL

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/cert-manager/csi-lib/blob/main/OWNERS)~~ [JoshVanL] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
JoshVanL commented 2 years ago

/test pull-cert-manager-csi-lib-e2e

JoshVanL commented 2 years ago

/test pull-cert-manager-csi-lib-e2e

JoshVanL commented 2 years ago

/test pull-cert-manager-csi-lib-e2e

JoshVanL commented 2 years ago

/test pull-cert-manager-csi-lib-e2e

JoshVanL commented 2 years ago

/test all

JoshVanL commented 2 years ago

/test pull-cert-manager-csi-lib-e2e

JoshVanL commented 2 years ago

/test pull-cert-manager-csi-lib-e2e

JoshVanL commented 2 years ago

/test pull-cert-manager-csi-lib-e2e

jetstack-bot commented 2 years ago

@JoshVanL: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cert-manager-csi-lib-e2e 831ece7715fbcabd197a6e3d7f72928a98f2692e link false /test pull-cert-manager-csi-lib-e2e

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
jetstack-bot commented 1 year ago

@JoshVanL: PR needs rebase.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.