59d25cc29e
This patch adds a "tests" folder that includes scripts to be used for plugin testing. Signed-off-by: Francesco Santoro <francesco.santoro@6wind.com> Change-Id: I18d2db1137d1fe76bc1b409f20275a45e09454e7
16 lines
339 B
Bash
16 lines
339 B
Bash
# Copyright 2016 6WIND S.A.
|
|
#
|
|
#!/bin/bash
|
|
|
|
source openrc
|
|
|
|
glance image-delete ubuntu-cloud
|
|
nova flavor-delete m1.vm_hugepages
|
|
|
|
STATUS=$(nova show test_vm | grep status | awk '{print $4}')
|
|
if [[ ${STATUS} == "ACTIVE" ]] || [[ ${STATUS} == "ERROR" ]]; then
|
|
nova delete test_vm
|
|
fi
|
|
nova secgroup-delete-rule default tcp 1 65535 0.0.0.0/0
|
|
|