Skip to content

Commit

Permalink
Template test is not reentrant
Browse files Browse the repository at this point in the history
  • Loading branch information
smarterclayton committed Feb 5, 2016
1 parent f9289e1 commit 5710618
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/cmd/templates.sh
Expand Up @@ -13,6 +13,9 @@ os::log::install_errexit
(
set +e
oc delete all,templates --all
oc delete template/ruby-helloworld-sample -n openshift
oc delete project test-template-project
os::cmd::try_until_failure 'oc get project test-template-project'
exit 0
) &>/dev/null

Expand Down Expand Up @@ -76,6 +79,9 @@ echo "template data precision: ok"

os::cmd::expect_success 'oc create -f examples/sample-app/application-template-dockerbuild.json -n openshift'
os::cmd::expect_success 'oc policy add-role-to-user admin test-user'
new="$(mktemp -d)/tempconfig"
os::cmd::expect_success "oc config view --raw > $new"
export KUBECONFIG=$new
os::cmd::expect_success 'oc login -u test-user -p password'
os::cmd::expect_success 'oc new-project test-template-project'
# make sure the permissions on the new project are set up
Expand Down

0 comments on commit 5710618

Please sign in to comment.