summaryrefslogtreecommitdiffstats
path: root/tests/adhoc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/adhoc')
-rw-r--r--tests/adhoc/smoke01-clean.sh2
-rw-r--r--tests/adhoc/smoke01.sh12
2 files changed, 6 insertions, 8 deletions
diff --git a/tests/adhoc/smoke01-clean.sh b/tests/adhoc/smoke01-clean.sh
index 9c0138d..822392a 100644
--- a/tests/adhoc/smoke01-clean.sh
+++ b/tests/adhoc/smoke01-clean.sh
@@ -26,7 +26,7 @@
set -x #echo on
-source /opt/copper/admin-openrc.sh
+source /tmp/copper/admin-openrc.sh
instance=$(nova list | awk "/ cirros1 / { print \$2 }")
if [ "$instance" != "" ]; then nova delete $instance
diff --git a/tests/adhoc/smoke01.sh b/tests/adhoc/smoke01.sh
index 22e2089..f7f15bc 100644
--- a/tests/adhoc/smoke01.sh
+++ b/tests/adhoc/smoke01.sh
@@ -23,21 +23,19 @@
#
# How to use:
# Install Congress test server per https://wiki.opnfv.org/copper/academy
-# $ source ~/git/copper/tests/adhoc/smoke01.sh
+# $ bash ~/git/copper/tests/adhoc/smoke01.sh
# After test, cleanup with
-# $ source ~/git/copper/tests/adhoc/smoke01-clean.sh
+# $ bash ~/git/copper/tests/adhoc/smoke01-clean.sh
set -x #echo on
-source /opt/copper/admin-openrc.sh
-
-openstack service list
+source /tmp/copper/admin-openrc.sh
image=$(openstack image list | awk "/ cirros-0.3.3-x86_64 / { print \$2 }")
-if [ "$image" == "" ]; then glance --os-image-api-version 1 image-create --name cirros-0.3.3-x86_64 --disk-format qcow2 --location http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img --container-format bare
+if [ -z $image ]; then glance --os-image-api-version 1 image-create --name cirros-0.3.3-x86_64 --disk-format qcow2 --location http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img --container-format bare
fi
-neutron net-create test_public --router:external=true --provider:network_type=flat --provider:physical_network=physnet1
+neutron net-create test_public --router:external=true
neutron subnet-create --disable-dhcp test_public 192.168.10.0/24