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

E2E test on ssr object with controller namespace mix-ups #4521

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

qiuming-best
Copy link
Contributor

@qiuming-best qiuming-best commented Jan 12, 2022

Signed-off-by: Ming mqiu@vmware.com

Thank you for contributing to Velero!

Please add a summary of your change

It reference to #4522, it's test on ssr object.

Does your change fix a particular issue?

Fixes #(issue)

Please indicate you've done the following:

  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Created a changelog file or added /kind changelog-not-required as a comment on this pull request.
  • Updated the corresponding documentation in site/content/docs/main.

@github-actions github-actions bot added Dependencies Pull requests that update a dependency file has-e2e-tests labels Jan 12, 2022
@qiuming-best qiuming-best requested review from danfengliu and removed request for jenting January 12, 2022 09:04
@github-actions github-actions bot removed the Dependencies Pull requests that update a dependency file label Jan 12, 2022
@qiuming-best qiuming-best changed the title E2E test on ssr object when controller namespace mix-ups E2E test on ssr object with controller namespace mix-ups Jan 12, 2022
fmt.Sprintf("Failed to create an ssr object in %s namespace", VeleroCfg.VeleroNamespace))

var req *v1.ServerStatusRequestList
By(fmt.Sprintf("Check ssr object in %s namespace", VeleroCfg.VeleroNamespace))
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems the case doesn't check the CR content of the SSR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

@@ -45,6 +47,8 @@ type TestClient struct {
// controller runtime framework by v2.0, it is the intent to remove all
// client-go API clients. Please use the controller runtime to make API calls for tests.
dynamicFactory client.DynamicFactory

VeleroClient clientset.Interface
Copy link
Contributor

Choose a reason for hiding this comment

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

As we are moving to kubebuilder, the generated clientset will be removed after finishing the refactoring. Let's use controller-runtime/pkg/client.Client instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've changed to controller-runtime/pkg/client.Client

@github-actions github-actions bot added the Dependencies Pull requests that update a dependency file label Jan 13, 2022
@github-actions github-actions bot removed the Dependencies Pull requests that update a dependency file label Jan 13, 2022
Signed-off-by: Ming <mqiu@vmware.com>
@qiuming-best qiuming-best merged commit 595e62e into vmware-tanzu:main Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants