-
Couldn't load subscription status.
- Fork 35
WIP: ✨provider acceptance tests #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ntnn The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
cc @embik @mjudeikis @FourFifthsCode ptal |
pkg/acceptance/testing.go
Outdated
| // TestingT is the minimal subset of testing.TB needed for acceptance | ||
| // tests. | ||
| type TestingT interface { | ||
| Context() context.Context | ||
| TempDir() string | ||
| Helper() | ||
| Cleanup(func()) | ||
| Log(args ...any) | ||
| Logf(format string, args ...any) | ||
| Error(args ...any) | ||
| Errorf(format string, args ...any) | ||
| Fatal(args ...any) | ||
| Fatalf(format string, args ...any) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently unused. I started with this but I think every testing framework should now support testing.TB.
fc06501 to
e33a285
Compare
|
totally diggin this! haven't reviewed in full yet but initial pass looks really cool! |
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
Adds
pkg/acceptance, a package providers can use to validate their functionality with as little boilerplate as possible.Implements acceptance tests for the in-tree providers
fileandclusters.The bump to ginkgo v2.22.0 is required as the current version returns nil on
ginkgo.GinktoTB().Context().