summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/volume_spec.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/volume_spec.rb b/spec/volume_spec.rb
index 7a402d1..4791fa1 100644
--- a/spec/volume_spec.rb
+++ b/spec/volume_spec.rb
@@ -45,26 +45,5 @@ describe 'openstack-block-storage::volume' do
45 it 'upgrades cinder iscsi package' do 45 it 'upgrades cinder iscsi package' do
46 expect(chef_run).to upgrade_package 'targetcli-fb' 46 expect(chef_run).to upgrade_package 'targetcli-fb'
47 end 47 end
48
49 describe 'targets.conf' do
50 let(:file) { chef_run.template('/etc/target/targets.conf') }
51
52 it 'should create the targets.conf' do
53 expect(chef_run).to create_template(file.name).with(
54 mode: 0o600
55 )
56 end
57
58 it 'notifies iscsi restart' do
59 expect(file).to notify('service[iscsitarget]').to(:restart)
60 end
61
62 it 'has ubuntu include' do
63 node.override['openstack']['block-storage']['volume']['volumes_dir'] = 'volumes_dir_value'
64
65 expect(chef_run).to render_file(file.name).with_content('include /etc/tgt/conf.d/*.conf')
66 expect(chef_run).not_to render_file(file.name).with_content('include volumes_dir_value/*')
67 end
68 end
69 end 48 end
70end 49end