-
Notifications
You must be signed in to change notification settings - Fork 31
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
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]>
[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 |
// 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
.
0906b82
to
fc06501
Compare
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
file
andclusters
.The bump to ginkgo v2.22.0 is required as the current version returns nil on
ginkgo.GinktoTB().Context()
.