Skip to content

Commit 97d3aa9

Browse files
committed
add test cases for one and multiple projects
1 parent 708c652 commit 97d3aa9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: test/cmd/basicresources.sh

+3
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ os::cmd::expect_success_and_text 'oc projects' 'You have access'
309309
# log in as a test user and expect no projects
310310
os::cmd::expect_success 'oc login -u test -p test'
311311
os::cmd::expect_success_and_text 'oc projects' 'You are not a member of any projects'
312+
# add a project and expect text for a single project
313+
os::cmd::expect_success_and_text 'oc new-project test4; sleep 2; oc projects' 'You have one project on this server: test4'
314+
os::cmd::expect_success_and_text 'oc new-project test5; sleep 2; oc projects' 'You have access'
312315
echo 'projects command ok'
313316

314317
os::test::junit::declare_suite_start "cmd/basicresources/patch"

0 commit comments

Comments
 (0)