Hide Forgot
Description of problem: Test suite test/cmd/policy.sh depends on other test suites running first Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. Run test/cmd/policy.sh 2. 3. Actual results: Fails on line "os::cmd::expect_success_and_text 'oc policy can-i --list' 'get update.*imagestreams/layers'" Seemingly because no project exists for the user Expected results: Tests should pass Additional info:
How did you set up your cluster for the test? As specified in the documentation[1], a cluster should be started, the current user should have cluster administrative privileges and the test can assume complete control over the current namespace to run. [1] https://github.com/openshift/origin/blob/master/test/cmd/README.md#running-tests
That is how it was tested. 1.) Brought up cluster 2.) Logged in as system:admin 3.) ran test/cmd/policy.sh
Once i executed the tests the correct way it worked fine.