summaryrefslogtreecommitdiffstats
path: root/examples/image-metadata
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2017-05-12 13:59:04 -0600
committerspisarski <s.pisarski@cablelabs.com>2017-05-16 14:21:56 -0600
commit10c665d7c831cf198ac9e675654693860e602bf9 (patch)
treeb30f75115e80ddc983b9e3555b165992cef234c1 /examples/image-metadata
parent6fd1af82cd7bf41274c4e1620006004b79628759 (diff)
Added support for offline testing
Expanded the image_metadata used by the tests for overriding default images for not only supporting 3part images but also to support offline testing as required by Functest. JIRA: SNAPS-67 Change-Id: I6975e7b51fa879fe984af64402939c465df95184 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'examples/image-metadata')
-rw-r--r--examples/image-metadata/3part_override.yaml16
-rw-r--r--examples/image-metadata/disk_file_override.yaml13
-rw-r--r--examples/image-metadata/disk_url_override.yaml12
-rw-r--r--examples/image-metadata/existing_override.yaml22
4 files changed, 63 insertions, 0 deletions
diff --git a/examples/image-metadata/3part_override.yaml b/examples/image-metadata/3part_override.yaml
new file mode 100644
index 0000000..8ac4d52
--- /dev/null
+++ b/examples/image-metadata/3part_override.yaml
@@ -0,0 +1,16 @@
+---
+# Example of how to override the image settings for SNAPS testing for 3part images
+# This snippet can be placed verbatim into the snaps.images configuration for Functest
+# in config_functest.yaml as long as it is properly nested in that document
+glance_tests:
+ disk_url: http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
+ kernel_url: http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-kernel
+ ramdisk_url: http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-initramfs
+cirros:
+ disk_url: http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
+ kernel_url: http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-kernel
+ ramdisk_url: http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-initramfs
+centos:
+ disk_url: http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2
+ubuntu:
+ disk_url: http://uec-images.ubuntu.com/releases/trusty/14.04/ubuntu-14.04-server-cloudimg-amd64-disk1.img
diff --git a/examples/image-metadata/disk_file_override.yaml b/examples/image-metadata/disk_file_override.yaml
new file mode 100644
index 0000000..5884ce8
--- /dev/null
+++ b/examples/image-metadata/disk_file_override.yaml
@@ -0,0 +1,13 @@
+---
+# Example of how to override the image settings for SNAPS testing for file-based Images
+# generally for offline (no Internet available) OpenStack testing
+# This snippet can be placed verbatim into the snaps.images configuration for Functest
+# in config_functest.yaml as long as it is properly nested in that document
+glance_tests:
+ disk_file: ../images/cirros-0.3.4-x86_64-disk.img
+cirros:
+ disk_file: ../images/cirros-0.3.4-x86_64-disk.img
+centos:
+ disk_file: ../images/CentOS-7-x86_64-GenericCloud.qcow2
+ubuntu:
+ disk_file: ../images/ubuntu-14.04-server-cloudimg-amd64-disk1.img
diff --git a/examples/image-metadata/disk_url_override.yaml b/examples/image-metadata/disk_url_override.yaml
new file mode 100644
index 0000000..4c0529b
--- /dev/null
+++ b/examples/image-metadata/disk_url_override.yaml
@@ -0,0 +1,12 @@
+---
+# Example of how to override the default image URL for SNAPS testing
+# This snippet can be placed verbatim into the snaps.images configuration for Functest
+# in config_functest.yaml as long as it is properly nested in that document
+glance_tests:
+ disk_url: http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
+cirros:
+ disk_url: http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
+centos:
+ disk_url: http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2
+ubuntu:
+ disk_url: http://uec-images.ubuntu.com/releases/trusty/14.04/ubuntu-14.04-server-cloudimg-amd64-disk1.img
diff --git a/examples/image-metadata/existing_override.yaml b/examples/image-metadata/existing_override.yaml
new file mode 100644
index 0000000..ad9d23d
--- /dev/null
+++ b/examples/image-metadata/existing_override.yaml
@@ -0,0 +1,22 @@
+---
+# Example of how to override the image settings for SNAPS VM instance testing to leverage
+# images that already exist on your pod.
+# This snippet can be placed verbatim into the snaps.images configuration for Functest
+# in config_functest.yaml as long as it is properly nested in that document
+glance_tests:
+ disk_file: ../images/cirros-0.3.4-x86_64-disk.img
+cirros:
+ config:
+ name: static_image_test-cirros
+ exists: True
+ image_user: cirros
+centos:
+ config:
+ name: static_image_test-centos
+ exists: True
+ image_user: centos
+ubuntu:
+ config:
+ name: static_image_test-ubuntu
+ exists: True
+ image_user: ubuntu