Skip to content

Commit

Permalink
UPSTREAM: 59506: fix --watch on multiple requests
Browse files Browse the repository at this point in the history
  • Loading branch information
juanvallejo committed Feb 12, 2018
1 parent c9e126b commit e0a6d6f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
6 changes: 6 additions & 0 deletions test/cmd/get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,11 @@ os::cmd::expect_success_and_not_text 'oc get users test-user-1' "customlabel=tru
# test structured and unstructured resources print generically without panic
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'
# test --wacth does not result in an error when a resource list is served in multiple chunks
os::cmd::expect_success 'oc create cm cm_one'
os::cmd::expect_success 'oc create cm cm_two'
os::cmd::expect_success 'oc create cm cm_three'
os::cmd::expect_failure_and_not_text 'oc get configmap --chunk-size=1 --watch --request-timeout=1s' 'watch is only supported on individual resources'
os::cmd::expect_failure_and_not_text 'oc get configmap --chunk-size=1 --watch-only --request-timeout=1s' 'watch is only supported on individual resources'
echo "oc get: ok"
os::test::junit::declare_suite_end
22 changes: 19 additions & 3 deletions vendor/k8s.io/kubernetes/pkg/kubectl/cmd/resource/get.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e0a6d6f

Please sign in to comment.