
describe package('memcached') do
  it { should be_installed }
end

describe service('memcached_backend_cache') do
  it { should be_installed }
  it { should be_enabled }
  it { should be_running }
end

describe service('memcached_web_cache') do
  it { should be_installed }
  it { should be_enabled }
  it { should be_running }
end

describe command('ps aux | grep -q /va[r]/run/memcached_painful_cache.pid') do
  it { should exist }
end

describe port(11_212) do
  it { should be_listening }
end

describe port(11_213) do
  it { should be_listening }
end

describe port(11_214) do
  it { should be_listening }
end


describe package('memcached') do
  it { should be_installed }
end

describe service('memcached_backend_cache') do
  it { should be_installed }
  it { should be_enabled }
  it { should be_running }
end

describe service('memcached_web_cache') do
  it { should be_installed }
  it { should be_enabled }
  it { should be_running }
end

describe command('ps aux | grep -q [m]emcached_painful_cache.pid') do
  its('exit_status') { should eq 0 }
end

describe port(11_212) do
  it { should be_listening }
end

describe port(11_213) do
  it { should be_listening }
end

describe port(11_214) do
  it { should be_listening }
end

Fix the painful cache test to work on all platforms
Fix the painful cache test to work on all platforms

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
