Skip to content

ensure oc get handles mixed resource types#16283

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
juanvallejo:jvallejo/add-test-PR-16082
Sep 12, 2017
Merged

ensure oc get handles mixed resource types#16283
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
juanvallejo:jvallejo/add-test-PR-16082

Conversation

@juanvallejo
Copy link
Contributor

Adds a test to ensure oc get does not panic when given a list
of both structured and unstructured resources.

Tests changes added in #16082

cc @enj @openshift/cli-review

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 11, 2017
@juanvallejo juanvallejo requested a review from enj September 11, 2017 15:15
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"
Copy link
Contributor

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?

Copy link
Contributor Author

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,svc,pod -o yaml' 'kind: List'
echo "oc get: ok"
echo "oc get: ok"
os::test::junit::declare_suite_end No newline at end of file
Copy link
Contributor

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.
@juanvallejo juanvallejo force-pushed the jvallejo/add-test-PR-16082 branch from 2610f0b to 70542a2 Compare September 11, 2017 16:02
@enj
Copy link
Contributor

enj commented Sep 11, 2017

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 11, 2017
@openshift-merge-robot
Copy link
Contributor

[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.

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 11, 2017
@juanvallejo
Copy link
Contributor Author

/test extended_conformance_install_update

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue (batch tested with PRs 15927, 16283, 16239, 16271, 16287)

@openshift-merge-robot openshift-merge-robot merged commit 97a034f into openshift:master Sep 12, 2017
@juanvallejo juanvallejo deleted the jvallejo/add-test-PR-16082 branch September 12, 2017 17:44
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. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants