Sha256: 8779f4ecdac9796e9cfdb580d2b21ab9b5a895d219cda17e261e9f127c6ad04d

Contents?: true

Size: 605 Bytes

Versions: 18

Compression:

Stored size: 605 Bytes

Contents

# encoding: utf-8
# author: Christoph Hartmann
# author: Dominik Richter

# use basic tests
describe package('nginx') do
  it { should be_installed }
end

# extend tests with metadata
control '01' do
  impact 0.7
  title 'Verify nginx service'
  desc 'Ensures nginx service is up and running'
  describe service('nginx') do
    it { should be_enabled }
    it { should be_installed }
    it { should be_running }
  end
end

# implement os dependent tests
web_user = 'www-data'
web_user = 'nginx' if os[:family] == 'centos'

describe user(web_user) do
  it { should exist }
end

Version data entries

18 entries across 6 versions & 1 rubygems

Version Path
inspec-2.1.81 examples/kitchen-puppet/test/integration/default/web_spec.rb
inspec-2.1.81 examples/kitchen-chef/test/integration/default/web_spec.rb
inspec-2.1.81 examples/kitchen-ansible/test/integration/default/web_spec.rb
inspec-2.1.21 examples/kitchen-ansible/test/integration/default/web_spec.rb
inspec-2.1.21 examples/kitchen-puppet/test/integration/default/web_spec.rb
inspec-2.1.21 examples/kitchen-chef/test/integration/default/web_spec.rb
inspec-2.1.10 examples/kitchen-ansible/test/integration/default/web_spec.rb
inspec-2.1.10 examples/kitchen-chef/test/integration/default/web_spec.rb
inspec-2.1.10 examples/kitchen-puppet/test/integration/default/web_spec.rb
inspec-2.0.32 examples/kitchen-ansible/test/integration/default/web_spec.rb
inspec-2.0.32 examples/kitchen-puppet/test/integration/default/web_spec.rb
inspec-2.0.32 examples/kitchen-chef/test/integration/default/web_spec.rb
inspec-2.0.17 examples/kitchen-puppet/test/integration/default/web_spec.rb
inspec-2.0.17 examples/kitchen-chef/test/integration/default/web_spec.rb
inspec-2.0.17 examples/kitchen-ansible/test/integration/default/web_spec.rb
inspec-1.51.15 examples/kitchen-puppet/test/integration/default/web_spec.rb
inspec-1.51.15 examples/kitchen-ansible/test/integration/default/web_spec.rb
inspec-1.51.15 examples/kitchen-chef/test/integration/default/web_spec.rb