summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorXiaoPei Liu <liuxpei@cn.ibm.com>2015-06-24 11:28:28 +0800
committerXiaoPei Liu <liuxpei@cn.ibm.com>2015-06-26 11:17:25 +0800
commit5140ba531dcb0368b141813aa6cc88ead5de6387 (patch)
treebd7b15a49011da922143c87ff679279440f9a497 /spec
parent7386afb7c063cefdbd455b6dea9844516932a667 (diff)
Allow fixed_key to be configurable in cookbook
The fixed_key attribute should be added in cookbook for volume encryption Change-Id: I83f697fde32bf1ccaaa3187936c664c61b1e7af9 Closes-Bug: 1467797
Notes
Notes (review): Verified+2: Jenkins Code-Review+2: Ma Wen Cheng <wenchma@cn.ibm.com> Workflow+1: JJ Asghar <jj@getchef.com> Submitted-by: Jenkins Submitted-at: Fri, 26 Jun 2015 05:39:51 +0000 Reviewed-on: https://review.openstack.org/194924 Project: openstack/cookbook-openstack-block-storage Branch: refs/heads/master
Diffstat (limited to 'spec')
-rw-r--r--spec/cinder_common_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/cinder_common_spec.rb b/spec/cinder_common_spec.rb
index 73b4179..08b6025 100644
--- a/spec/cinder_common_spec.rb
+++ b/spec/cinder_common_spec.rb
@@ -232,6 +232,20 @@ describe 'openstack-block-storage::cinder-common' do
232 expect(chef_run).not_to render_config_file(file.name).with_section_content('DEFAULT', /^host=/) 232 expect(chef_run).not_to render_config_file(file.name).with_section_content('DEFAULT', /^host=/)
233 end 233 end
234 234
235 it 'has keymgr api_class attribute default set' do
236 expect(chef_run).to render_config_file(file.name).with_section_content('keymgr', /^api_class=cinder.keymgr.conf_key_mgr.ConfKeyManager$/)
237 end
238
239 it 'does not have keymgr attribute fixed_key set by default' do
240 expect(chef_run).not_to render_file(file.name).with_content(/^fixed_key=$/)
241 end
242
243 it 'allow override for keymgr attribute fixed_key' do
244 chef_run.node.set['openstack']['block-storage']['keymgr']['fixed_key'] = '1111111111111111111111111111111111111111111111111111111111111111'
245 expect(chef_run).to render_config_file(file.name)\
246 .with_section_content('keymgr', /^fixed_key=1111111111111111111111111111111111111111111111111111111111111111$/)
247 end
248
235 context 'netapp driver' do 249 context 'netapp driver' do
236 # FIXME(galstrom21): this block needs to check all of the default 250 # FIXME(galstrom21): this block needs to check all of the default
237 # netapp_* configuration options 251 # netapp_* configuration options