Skip to content
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

Replace negz/provider-nop with crossplane/provider-nop #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rahulgrover99
Copy link
Member

Signed-off-by: Rahul Grover [email protected]

Description of your changes

Since provider-nop is ready to use, it might be a good idea to use the same for conformance tests. I have replaced occurrences of negz/provider-nop with crossplane/provider-nop and added essential spec required for the same.

I have:

  • Read and followed conformance's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

I've run the test on a local kind cluster running Crossplane 1.2. All the tests pass successfully except TestConfiguration. That might require updating the configuration image being used for the test.

Copy link
Member

@negz negz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the tests pass successfully except TestConfiguration. That might require updating the configuration image being used for the test.

Could you elaborate on what is failing? Maybe paste the test failure in a comment.

prv := &pkgv1.Provider{
ObjectMeta: metav1.ObjectMeta{Name: internal.SuiteName},
Spec: pkgv1.ProviderSpec{
PackageSpec: pkgv1.PackageSpec{
Package: "negz/provider-nop:v0.1.0",
Package: "crossplane/provider-nop:main",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we cut a release of provider-nop we can pin to? I can take care of doing that, since I believe it will require adding some secrets to the provider-nop GitHub repo.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That will be great. Thanks!

@rahulgrover99
Copy link
Member Author

In the configuration_test.go file I made this change:
prv := &pkgv1.Provider{ObjectMeta: metav1.ObjectMeta{Name: "negz-provider-nop"}}
to
prv := &pkgv1.Provider{ObjectMeta: metav1.ObjectMeta{Name: "crossplane-provider-nop"}}

which resulted in the following failure:

--- FAIL: TestConfiguration (130.15s)
    /home/rg99/crossplane/conformance/crossplane/configuration_test.go:62: Created configuration "crossplane-conformance"
    --- FAIL: TestConfiguration/DependencyBecomesInstalledAndHealthy (90.02s)
        /home/rg99/crossplane/conformance/crossplane/configuration_test.go:169: Testing that the configuration's dependencies' Healthy and Installed status conditions become 'True'.
        /home/rg99/crossplane/conformance/crossplane/configuration_test.go:192: Provider "crossplane-provider-nop" never became Healthy and Installed: timed out waiting for the condition
    /home/rg99/crossplane/conformance/crossplane/configuration_test.go:76: Cleaning up configuration "crossplane-conformance".
    /home/rg99/crossplane/conformance/crossplane/configuration_test.go:83: Deleted configuration "crossplane-conformance"
    /home/rg99/crossplane/conformance/crossplane/configuration_test.go:65: Cleaning up provider "crossplane-provider-nop".
    /home/rg99/crossplane/conformance/crossplane/configuration_test.go:72: Deleted provider "crossplane-provider-nop"
FAIL
FAIL	github.com/crossplane/conformance/crossplane	130.169s
FAIL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants