-
Notifications
You must be signed in to change notification settings - Fork 456
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 first crictl e2e test framework and suite #529
Conversation
02062fa
to
99e1f1b
Compare
Now runs seamlessly in travis :) |
This adds a new Makefile target `test-e2e`, which uses the existing ginkgo framework to run end-to-end tests for `crictl`. The test framework and suite setups CRI-O in a tmp sandbox, whereas every test can specify if a runtime is needed or not. This way it is possible to create a new isolated environment where `crictl` can operate on. Please be aware that external dependencies like `runc` and the CNI plugins have to be existend on the system to acually work. The tests have to be executed as root for now. An example test suite for the `help` as well as the `info` command has been added as well. Signed-off-by: Sascha Grunert <[email protected]>
99e1f1b
to
7fa2522
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, great thanks of adding this
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feiskyer, saschagrunert 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 |
This adds a new Makefile target
test-e2e
, which uses the existingginkgo framework to run end-to-end tests for
crictl
.The test framework and suite setups CRI-O in a tmp sandbox, whereas
every test can specify if a runtime is needed or not. This way it is
possible to create a new isolated environment where
crictl
can operateon. Please be aware that external dependencies like
runc
and the CNIplugins have to be existend on the system to acually work. The tests
have to be executed as root for now.
An example test suite for the
help
as well as theinfo
command hasbeen added as well.
Relates to: #364