set execute bit on test_file
b/c it is intended to be executed.
This commit is contained in:
@@ -24,6 +24,7 @@ class openstack::test_file(
|
|||||||
|
|
||||||
file { $path:
|
file { $path:
|
||||||
content => template('openstack/test_nova.sh.erb'),
|
content => template('openstack/test_nova.sh.erb'),
|
||||||
|
mode => '0751',
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
7
spec/classes/openstack_test_file_spec.rb
Normal file
7
spec/classes/openstack_test_file_spec.rb
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
require 'spec_helper'
|
||||||
|
|
||||||
|
describe 'openstack::test_file' do
|
||||||
|
it do
|
||||||
|
should contain_file('/tmp/test_nova.sh').with_mode('0751')
|
||||||
|
end
|
||||||
|
end
|
Reference in New Issue
Block a user