aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/noheat/infra-openstack/vagrant/test/create_keypair.test
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/noheat/infra-openstack/vagrant/test/create_keypair.test')
-rwxr-xr-xdeployment/noheat/infra-openstack/vagrant/test/create_keypair.test10
1 files changed, 8 insertions, 2 deletions
diff --git a/deployment/noheat/infra-openstack/vagrant/test/create_keypair.test b/deployment/noheat/infra-openstack/vagrant/test/create_keypair.test
index 3e1dbfe2b..e402fa69a 100755
--- a/deployment/noheat/infra-openstack/vagrant/test/create_keypair.test
+++ b/deployment/noheat/infra-openstack/vagrant/test/create_keypair.test
@@ -5,8 +5,13 @@ export KEYPAIR_NAME='onap_ci_lab'
export VAGRANT_CWD='..'
set_up() {
- vagrant up --provision-with=run_playbook_destroy
- vagrant up --provision-with=run_playbook_create
+ vagrant up
+ vagrant provision --provision-with=run_playbook_destroy
+ vagrant provision --provision-with=run_playbook_create
+}
+
+tear_down() {
+ vagrant provision --provision-with=run_playbook_destroy
}
check() {
@@ -19,3 +24,4 @@ check() {
set_up >/dev/null # drop provisioning output
check "$KEYPAIR_NAME"
+tear_down >/dev/null # drop provisioning output