-
Notifications
You must be signed in to change notification settings - Fork 459
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
Add testing for crictl #364
Comments
+1, I think we can use dockershim to test crictl, which is also used for critest |
Add another test suit like |
nop, test functionality of crictl itself, e.g. the expected output of each commands. |
I mean maybe we can use the |
Actually we can use crictl to write CRI validation test, but that requires a lot of code refactoring. :p |
kubectl tests are essentially a pile of shell scripts. I wonder if there are better ways to do this. |
We should still keep the existing CRI validation test, since kubelet doesn't use crictl to talk to CRI shims ;) |
FWIW, We use crictl directly in CRI-O integration tests. |
👍 bats is used in cri-o. Seems it's much better than direct shell scripts. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@saschagrunert there's no tests for crictl yet, would you like to work on it? |
Sure, do we want to use bats (like in CRI-O), or ginkgo (like in Kubernetes). I tend to go with ginkgo, since this dependency is already available. |
is ginkgo working well for CLI tests? |
/assign saschagrunert |
Yes, with gomega’s gexec, I’ll prepare a PR. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@feiskyer: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@saschagrunert @feiskyer @yujuhong Just wondering if this is covered by the work in #613? |
Hm partially, it was more about e2e testing the functionality of crictl. |
yea, not finished yet. |
ok, thanks for the feedback @saschagrunert @feiskyer |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The crictl command-line tool is used by components such as kubeadm, and is also shipped by default on the Kubernetes nodes in GCE.
We should have testing for it to catch bugs. One option is to add a fake runtime implementation. Any thoughts/suggestions?
(We can also include a crictl test in kubernetes, but the turn-around time for bug fix would be long...)
/cc @Random-Liu
The text was updated successfully, but these errors were encountered: