Skip to content

Commit

Permalink
Merge pull request #7078 from smarterclayton/reentrant_templates
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed Feb 8, 2016
2 parents 8984b62 + 5710618 commit 2a0f0f3
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 2a0f0f3

Please sign in to comment.