summaryrefslogtreecommitdiffstats
path: root/tests/adhoc/smoke01.sh
diff options
context:
space:
mode:
authorBryan Sullivan <bs3131@att.com>2016-02-09 19:11:54 -0800
committerBryan Sullivan <bs3131@att.com>2016-02-09 19:11:54 -0800
commit1b263b123304b4e4f02adfb0cebe5f22437584d5 (patch)
tree7cfc1915090cbe76ac691d64fe203f159e0d1f11 /tests/adhoc/smoke01.sh
parentf0452325d489cfda14a864435394b4f93044017f (diff)
Update smoke tests after testing.
JIRA: COPPER-4 Change-Id: I5945d3b5f340e8122927d456fedbff6d4536affc Signed-off-by: Bryan Sullivan <bs3131@att.com>
Diffstat (limited to 'tests/adhoc/smoke01.sh')
-rw-r--r--tests/adhoc/smoke01.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/adhoc/smoke01.sh b/tests/adhoc/smoke01.sh
index 911fabb..ec834f3 100644
--- a/tests/adhoc/smoke01.sh
+++ b/tests/adhoc/smoke01.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2015 Open Platform for NFV Project, Inc. and its contributors
+# Copyright 2015-2016 Open Platform for NFV Project, Inc. and its contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -29,11 +29,15 @@
set -x #echo on
-source ~/admin-openrc.sh
+source ~/admin-openrc.sh <<EOF
+openstack
+EOF
openstack service list
-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
+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
+fi
neutron net-create public --router:external=true --provider:network_type=flat --provider:physical_network=physnet1