-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
ensure oc get
handles mixed resource types
#16283
ensure oc get
handles mixed resource types
#16283
Conversation
test/cmd/get.sh
Outdated
os::cmd::expect_success_and_text 'oc get projectrequests -o yaml' 'status: Success' | ||
os::cmd::expect_success_and_text 'oc get projectrequests,svc,pod -o yaml' 'kind: List' | ||
echo "oc get: ok" | ||
echo "oc get: ok" |
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.
Why mess with the echo?
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.
did not mean to add it twice. Updated from s/oc get all/oc get
since this does not explicitly test oc get all
sub-cmd
test/cmd/get.sh
Outdated
os::cmd::expect_success_and_text 'oc get projectrequests -o yaml' 'status: Success' | ||
os::cmd::expect_success_and_text 'oc get projectrequests,svc,pod -o yaml' 'kind: List' | ||
echo "oc get: ok" | ||
echo "oc get: ok" | ||
os::test::junit::declare_suite_end |
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.
Add a newline while you are here.
Adds a test to ensure `oc get` does not panic when given a list of both structured and unstructured resources.
2610f0b
to
70542a2
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: enj, juanvallejo The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test extended_conformance_install_update |
Automatic merge from submit-queue (batch tested with PRs 15927, 16283, 16239, 16271, 16287) |
Adds a test to ensure
oc get
does not panic when given a listof both structured and unstructured resources.
Tests changes added in #16082
cc @enj @openshift/cli-review