Skip to content

Commit b02c1e6

Browse files
committed
add origin test
1 parent 97f9769 commit b02c1e6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/cmd/get.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,11 @@ os::cmd::expect_success_and_not_text 'oc get users test-user-1' "customlabel=tru
3737
# test structured and unstructured resources print generically without panic
3838
os::cmd::expect_success_and_text 'oc get projectrequests -o yaml' 'status: Success'
3939
os::cmd::expect_success_and_text 'oc get projectrequests,svc,pod -o yaml' 'kind: List'
40+
# test --wacth does not result in an error when a resource list is served in multiple chunks
41+
os::cmd::expect_success 'oc create cm cmone'
42+
os::cmd::expect_success 'oc create cm cmtwo'
43+
os::cmd::expect_success 'oc create cm cmthree'
44+
os::cmd::expect_failure_and_not_text 'oc get configmap --chunk-size=1 --watch --request-timeout=1s' 'watch is only supported on individual resources'
45+
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'
4046
echo "oc get: ok"
4147
os::test::junit::declare_suite_end

0 commit comments

Comments
 (0)