Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .kitchen_configs/kitchen.circleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ provisioner:
verify_host_key: false

verifier:
name: serverspec
default_pattern: true
name: inspec
# default_pattern: true
remote_exec: false

busser:
Expand Down Expand Up @@ -208,10 +208,11 @@ suites:
custom_facts:
puppet_role: <%= ENV['PUPPET_ROLE'] %>
verifier:
patterns:
- test/integration/<%= ENV['PUPPET_ROLE'] %>/serverspec/*_spec.rb
default_pattern: false
extra_flags: --format RspecJunitFormatter -o rspec/rspec.xml
name: inspec
# patterns:
# - test/integration/<%= ENV['PUPPET_ROLE'] %>/serverspec/*_spec.rb
# default_pattern: false
# extra_flags: --format RspecJunitFormatter -o rspec/rspec.xml
includes:
- localhost
attributes:
Expand All @@ -226,10 +227,11 @@ suites:
- secrets/vault.yaml:
<<: *secrets
verifier:
patterns:
- test/integration/<%= ENV['PUPPET_ROLE'] %>/serverspec/*_spec.rb
default_pattern: false
extra_flags: --format RspecJunitFormatter -o rspec/rspec.xml
name: inspec
# patterns:
# - test/integration/<%= ENV['PUPPET_ROLE'] %>/serverspec/*_spec.rb
# default_pattern: false
# extra_flags: --format RspecJunitFormatter -o rspec/rspec.xml
includes:
- localhost
attributes:
Expand Down
23 changes: 23 additions & 0 deletions test/integration/gecko_t_osx_1100_m1/inspec/cltbld_user_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# serverspec

# describe 'users' do
# describe user('cltbld') do
# it { should exist }
# it { should belong_to_group '_developer' }
# it { should belong_to_group 'com.apple.access_screensharing' }
# it { should belong_to_group 'com.apple.access_ssh' }
# end
# end


# inspec

describe 'users' do
describe user('cltbld') do
it { should exist }

%w(cltbld _developer com.apple.access_screensharing com.apple.access_ssh).each do |group|
its('groups') { should include group }
end
end
end
10 changes: 10 additions & 0 deletions test/integration/gecko_t_osx_1100_m1/inspec/mercurial_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
describe command('pip3 list | grep mercurial') do
its(:exit_status) { should eq 0 }
its(:stdout) { should match /mercurial/ }
end

# check version
describe command('hg --version') do
its(:exit_status) { should eq 0 }
its(:stdout) { should match /version 6.4.5/ }
end
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative 'spec_helper'

describe file('/etc/motd') do
it { should contain 'Unauthorized access prohibited' }
end
19 changes: 19 additions & 0 deletions test/integration/gecko_t_osx_1100_m1/inspec/taskcluster_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
describe file('/usr/local/bin/generic-worker-multiuser') do
it { should exist }
end

describe file('/usr/local/bin/generic-worker-simple') do
it { should exist }
end

describe file('/usr/local/bin/start-worker') do
it { should exist }
end

describe file('/usr/local/bin/taskcluster-proxy') do
it { should exist }
end

describe file('/usr/local/bin/livelog') do
it { should exist }
end

This file was deleted.

This file was deleted.

This file was deleted.