You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat test/integration/memcached-single-instance/inspec/memcached.rb
describe package('memcached') do
it { should be_installed }
end
# workaround service() auto-detect
# https://github.com/chef/inspec/issues/1171
describe sysv_service('memcached') do
it { should be_running }
it { should be_enabled }
before do
skip unless os[:release] == '14.04' or os[:release] == '16.04'
end
end
describe service('memcached') do
it "is listening on port 11211" do
expect(port(11211)).to be_listening
end
end
describe file('/etc/memcached.conf') do
its('content') { should match '-m 1G' }
end
$ cat ../../build//junit/ubuntu-16.04_memcached-single-instance_inspec.xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="rspec" tests="5" failures="0" errors="0" time="0.197933" timestamp="2017-01-23T10:17:42+01:00">
<!-- Randomized with seed 24234 -->
<properties/>
<testcase classname="usr.local.lib.ruby.gems.2.4.0.gems.inspec-1.9.0.lib.inspec.rule" name="System Package memcached should be installed" file="/usr/local/lib/ruby/gems/2.4.0/gems/inspec-1.9.0/lib/inspec/rule.rb" time="0.061945"/>
<testcase classname="usr.local.lib.ruby.gems.2.4.0.gems.inspec-1.9.0.lib.inspec.rule" name="Service memcached should be running" file="/usr/local/lib/ruby/gems/2.4.0/gems/inspec-1.9.0/lib/inspec/rule.rb" time="0.077482"/>
<testcase classname="usr.local.lib.ruby.gems.2.4.0.gems.inspec-1.9.0.lib.inspec.rule" name="Service memcached should be enabled" file="/usr/local/lib/ruby/gems/2.4.0/gems/inspec-1.9.0/lib/inspec/rule.rb" time="0.000192"/>
<testcase classname="usr.local.lib.ruby.gems.2.4.0.gems.inspec-1.9.0.lib.inspec.rule" name="Service memcached is listening on port 11211" file="/usr/local/lib/ruby/gems/2.4.0/gems/inspec-1.9.0/lib/inspec/rule.rb" time="0.032800"/>
<testcase classname="test.integration.memcached-single-instance.inspec.memcached" name="File /etc/memcached.conf content should match "-m 1G"" file="./test/integration/memcached-single-instance/inspec/memcached.rb" time="0.023982"/>
</testsuite>
Why does describe file come from memcached.rb, but describe package from /usr/local/lib/ruby/gems/2.4.0/gems/inspec-1.9.0/lib/inspec/rule.rb?
The text was updated successfully, but these errors were encountered:
Why does describe file come from memcached.rb, but describe package from /usr/local/lib/ruby/gems/2.4.0/gems/inspec-1.9.0/lib/inspec/rule.rb?
The text was updated successfully, but these errors were encountered: