Testing optimization
- enforce idempotency with two converges - exclude 10.13.2 temporarily
This commit is contained in:
Родитель
d899485033
Коммит
610e571859
|
@ -6,6 +6,8 @@ driver:
|
|||
provisioner:
|
||||
name: chef_zero
|
||||
always_update_cookbooks: true
|
||||
multiple_converge: 2
|
||||
enforce_idempotency: true
|
||||
|
||||
platforms:
|
||||
- name: apex/macos-10.11.6
|
||||
|
@ -14,6 +16,8 @@ platforms:
|
|||
|
||||
suites:
|
||||
- name: default
|
||||
excludes:
|
||||
- apex/macos-10.13.2
|
||||
run_list:
|
||||
- recipe[vsts_agent_macos::test_user]
|
||||
- recipe[homebrew]
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
platform_version = ::Gem::Version.new(node['platform_version'])
|
||||
|
||||
if platform_version <= ::Gem::Version.new('10.11.6') && node['vsts_agent']['version'] == 'latest'
|
||||
node.normal['vsts_agent']['version'] = '2.124.0'
|
||||
end
|
||||
|
||||
control_group 'audit' do
|
||||
control 'agent and running' do
|
||||
let(:vsts_agent_service) { launchd_service('vsts.agent') }
|
||||
|
||||
it 'should be enabled' do
|
||||
expect(vsts_agent_service).to be_enabled
|
||||
end
|
||||
|
||||
it 'should be running' do
|
||||
expect(vsts_agent_service).to be_running
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
vsts_agent_macos 'agent_one' do
|
||||
action %i(stop_service uninstall_service remove)
|
||||
end
|
Загрузка…
Ссылка в новой задаче