Merge pull request #66 from Microsoft/hotfix/inspec-groups

Resolve build failure using correct InSpec syntax
This commit is contained in:
Jacob Zaval 2018-03-15 12:56:54 -07:00 коммит произвёл Eric Hanko
Родитель 054d6b8158 a0d1e76a25
Коммит df5457dbe3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 6DD04E7D76C3271B
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -5,7 +5,7 @@ license 'MIT'
description 'Resources for configuring and provisioning macOS'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
chef_version '~> 13.0' if respond_to?(:chef_version)
version '1.8.0'
version '1.8.2'
source_url 'https://github.com/Microsoft/macos-cookbook'
issues_url 'https://github.com/Microsoft/macos-cookbook/issues'

Просмотреть файл

@ -22,9 +22,9 @@ control 'new macOS users' do
its('groups') { should_not include 'admin' }
end
describe group('admin') do
describe groups.where { name == 'admin'} do
it { should exist }
its('gid') { should eq 80 }
its('gids') { should include 80 }
end
realname_cmd = 'dscl . read /Users/johnny RealName | grep -v RealName | cut -c 2-'