-
Notifications
You must be signed in to change notification settings - Fork 261
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
refactor(serving): KnClient interface for single point of cluster access [ginkgo version] #214
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhuss 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 |
The following is the coverage report on pkg/.
|
Thanks for doing this work @rhuss! 🍻 |
cool, thanks for your feedback. Let's see how this discussion goes tomorrow, but I expect a definitive decision then. Then, when we merge either of the two PR, we have also the benefit that in the command unit tests we soon don't have to bother with faking the knative API directly (this is done in the test for KnClient as shown), but with an own mock implementation of the KnClient interface. I will work on this soon after one of these PRs are merged. |
closing as the gotest.tools version from #134 goes in. |
This PR exactly the same as #134 except that the test is implemented with Gingko.
The purpose of this PR is to get a feeling for the difference in writing tests in Ginkgo and/or a testframework baset on Golang's intrinsic
testing
with some sugar added.The relevant tests to compare are:
Follow the discussion overthere whether to pick up this PR or #134