This is JJs first test to get higher unit testing

Ideally, I'll get all the resources covered here.

Change-Id: Id9bce8101805309b059e468d2907fce37c156971
This commit is contained in:
JJ Asghar
2014-07-11 10:14:20 -05:00
parent b4e4f1ec3d
commit b6395b3a43

View File

@@ -10,6 +10,10 @@ describe 'openstack-common::logging' do
describe '/etc/openstack' do
let(:dir) { chef_run.directory('/etc/openstack') }
it 'should create /etc/openstack' do
expect(chef_run).to create_directory('/etc/openstack')
end
it 'has proper owner' do
expect(dir.owner).to eq('root')
expect(dir.group).to eq('root')