Skip to content

Conversation

ntnn
Copy link
Member

@ntnn ntnn commented Oct 7, 2025

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 and clusters.
The bump to ginkgo v2.22.0 is required as the current version returns nil on ginkgo.GinktoTB().Context().

ntnn added 2 commits October 7, 2025 15:54
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]>
@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 7, 2025
@k8s-ci-robot k8s-ci-robot requested a review from embik October 7, 2025 13:59
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ntnn
Once this PR has been reviewed and has the lgtm label, please assign jeremyot for approval. For more information see the Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from JeremyOT October 7, 2025 13:59
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 7, 2025
@ntnn
Copy link
Member Author

ntnn commented Oct 7, 2025

cc @embik @mjudeikis @FourFifthsCode ptal

Comment on lines +21 to +34
// 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)
}
Copy link
Member Author

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.

@ntnn ntnn force-pushed the acceptance branch 2 times, most recently from 0906b82 to fc06501 Compare October 7, 2025 22:44
ntnn added 3 commits October 8, 2025 00:46
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants