Policy.json should be defined by user
User can override and add values to policy.json by creating flat
key-value structure under glance:server:policy.
Change-Id: I4db6b17ab1ff925aa20cd3565417a4b35ed4561e
diff --git a/tests/pillar/cluster.sls b/tests/pillar/cluster.sls
index ec8f989..3b6cd0d 100644
--- a/tests/pillar/cluster.sls
+++ b/tests/pillar/cluster.sls
@@ -40,3 +40,6 @@
audit:
filter_factory: 'keystonemiddleware.audit:filter_factory'
map_file: '/etc/pycadf/glance_api_audit_map.conf'
+ policy:
+ publicize_image: "role:admin"
+ add_member:
diff --git a/tests/pillar/single.sls b/tests/pillar/single.sls
index 804c90f..6a2779c 100644
--- a/tests/pillar/single.sls
+++ b/tests/pillar/single.sls
@@ -34,3 +34,6 @@
virtual_host: '/openstack'
storage:
engine: file
+ policy:
+ publicize_image: "role:admin"
+ add_member:
diff --git a/tests/pillar/single_image_cache.sls b/tests/pillar/single_image_cache.sls
index 772dd12..0e1dff8 100644
--- a/tests/pillar/single_image_cache.sls
+++ b/tests/pillar/single_image_cache.sls
@@ -39,3 +39,6 @@
enable_management: true
directory: /var/lib/glance/image-cache/
max_size: 21474836480
+ policy:
+ publicize_image: "role:admin"
+ add_member:
diff --git a/tests/pillar/single_multiple_backends.sls b/tests/pillar/single_multiple_backends.sls
index 4a9d6a2..3ca1e4e 100644
--- a/tests/pillar/single_multiple_backends.sls
+++ b/tests/pillar/single_multiple_backends.sls
@@ -68,3 +68,6 @@
ssl_compression: false
use_trusts: false
user: 2ec7966596504f59acc3a76b3b9d9291:glance-project
+ policy:
+ publicize_image: "role:admin"
+ add_member:
diff --git a/tests/pillar/single_swift.sls b/tests/pillar/single_swift.sls
index 4fb6629..c4ca73b 100644
--- a/tests/pillar/single_swift.sls
+++ b/tests/pillar/single_swift.sls
@@ -59,3 +59,6 @@
ssl_compression: false
use_trusts: false
user: 2ec7966596504f59acc3a76b3b9d9291:glance-user
+ policy:
+ publicize_image: "role:admin"
+ add_member:
diff --git a/tests/pillar/single_swift_references.sls b/tests/pillar/single_swift_references.sls
index dcb4385..cdc8797 100644
--- a/tests/pillar/single_swift_references.sls
+++ b/tests/pillar/single_swift_references.sls
@@ -67,3 +67,6 @@
version: 2
user: 2ec7966596504f59acc3a76b3b9d9291:glance-user
key: someRandomPassword
+ policy:
+ publicize_image: "role:admin"
+ add_member: