summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-04-02 21:13:03 +0000
committerGerrit Code Review <review@openstack.org>2015-04-02 21:13:03 +0000
commitda35cf1404b9a583129c3388b99956a65994e069 (patch)
treee65dd36c4ee750e0071aeecf2de3fcaa53a5b068 /spec
parent388d95b8aa9336a3bc2e2b1d07680df30544c643 (diff)
parent33fd5eee2c46324c9503455451f5e593dd1e3851 (diff)
Merge "Remove api-paste.ini as it provided by package"
Diffstat (limited to 'spec')
-rw-r--r--spec/api_spec.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/api_spec.rb b/spec/api_spec.rb
index 9e93581..cfbac72 100644
--- a/spec/api_spec.rb
+++ b/spec/api_spec.rb
@@ -56,27 +56,6 @@ describe 'openstack-block-storage::api' do
56 expect(chef_run).to run_execute('cinder-manage db sync').with(user: 'cinder', group: 'cinder') 56 expect(chef_run).to run_execute('cinder-manage db sync').with(user: 'cinder', group: 'cinder')
57 end 57 end
58 58
59 describe 'api-paste.ini' do
60 let(:file) { chef_run.template('/etc/cinder/api-paste.ini') }
61
62 it 'should create api-paste.ini' do
63 expect(chef_run).to create_template(file.name)
64 end
65
66 it 'has proper owner' do
67 expect(file.owner).to eq('cinder')
68 expect(file.group).to eq('cinder')
69 end
70
71 it 'has proper modes' do
72 expect(sprintf('%o', file.mode)).to eq('644')
73 end
74
75 it 'notifies cinder-api restart' do
76 expect(file).to notify('service[cinder-api]').to(:restart)
77 end
78 end
79
80 describe 'policy file' do 59 describe 'policy file' do
81 it 'does not manage policy file unless specified' do 60 it 'does not manage policy file unless specified' do
82 expect(chef_run).not_to create_remote_file('/etc/cinder/policy.json') 61 expect(chef_run).not_to create_remote_file('/etc/cinder/policy.json')