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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃尡 Make unit tests not require envtest #1921

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

MikeSpreitzer
Copy link
Contributor

@MikeSpreitzer MikeSpreitzer commented Mar 19, 2024

Summary

This test removes the dependency of our unit tests on envtest. This is good because our unit tests are not relying on envtest and because envtest is (a) designed to support integration tests rather than unit tests and (b) made for working with controller-runtime based controllers but our controllers are not full-fledged controller-runtime based controllers and our trend is to make them less so rather than more.

Related issue(s)

Fixes #

.. because they are not relying on it.

envtest might be useful for integration tests.

Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
@kcp-ci-bot kcp-ci-bot added dco-signoff: yes Indicates the PR's author has signed the DCO. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 19, 2024
@MikeSpreitzer MikeSpreitzer changed the title Make unit tests not require envtest 馃尡 Make unit tests not require envtest Mar 19, 2024
@MikeSpreitzer
Copy link
Contributor Author

/cc @pdettori
/cc @nirrozenbaum
/cc @ezrasilvera
/cc @waltforme

@waltforme
Copy link
Contributor

/lgtm
/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 19, 2024
@kcp-ci-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 4595b511c33e3b0a7111744aacea8b81adfb38eb

@kcp-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: waltforme

The full list of commands accepted by this bot can be found here.

The pull request process is described 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

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 19, 2024
@kcp-ci-bot kcp-ci-bot merged commit 7a29016 into kubestellar:main Mar 19, 2024
14 of 18 checks passed
@MikeSpreitzer MikeSpreitzer deleted the unit-test-witout-envtest branch March 20, 2024 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has signed the DCO. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants