From 6f4cfa1be0f9ff81b0a6bc4d2ac6931ee179e026 Mon Sep 17 00:00:00 2001 From: Pradeep Kumar Singh Date: Sat, 21 Jan 2017 07:45:54 +0000 Subject: [PATCH] Support to provide 'image_driver' during container create This patch adds the functionality to support image_driver during container create/run. If user provides a valid image_driver, that is defined in configuration he/she will be allowed to create the container otherwise the request will fail. This patch also add image_driver field in db, so that user can inspect which image driver he/she used during the container create. Partially-Implements: BP allow-specify-image-driver Change-Id: Id2299a613ed414b2df67c103fe6cda0397ab791d --- zun_tempest_plugin/tests/tempest/api/common/datagen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zun_tempest_plugin/tests/tempest/api/common/datagen.py b/zun_tempest_plugin/tests/tempest/api/common/datagen.py index 8982fc3..7e2f648 100644 --- a/zun_tempest_plugin/tests/tempest/api/common/datagen.py +++ b/zun_tempest_plugin/tests/tempest/api/common/datagen.py @@ -53,7 +53,8 @@ def container_data(**kwargs): 'image': 'cirros:latest', 'command': 'sleep 10000', 'memory': '100', - 'environment': {} + 'environment': {}, + 'image_driver': 'docker' } data.update(kwargs)