I am using Test-Kitchen with the serverspec busser. I am trying to test the redis service is running into my kitchen instance.

It is my serverspec test.

describe "myapp::redis" do    
  describe service ('redis6379') do
    it { should be_enabled }
    it { should be_running }
  end    
end

But when I run the command kitchen verify it is the result

myapp::redis      
  Service "redis6379"       
    should be enabled       
    should be running (FAILED - 1)

It test tell me that the redis service is enable but it is not running.

And what happened here?

How can I use the serverspec service resource to resolve this problem?

有帮助吗?

解决方案

This might be a bug in ServerSpec. These types of questions are better asked as issues on the project on GitHub. The developer will be able to give you a better response and you might have uncovered a bug.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top