Add missing files from ipfs cookbook

This commit is contained in:
Greg Karékinian
2017-03-03 14:24:42 +01:00
parent 8ae1b04ad6
commit 70f86b1191
4 changed files with 185 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
require 'serverspec'
# Required by serverspec
set :backend, :exec
describe "IPFS" do
# It is in the PATH
describe command("which ipfs") do
its(:exit_status) { should eq 0 }
end
it "is listening on port 4001" do
expect(port(4001)).to be_listening
end
it "is listening on port 9090 (gateway)" do
expect(port(9090)).to be_listening
end
it "has a running service of ipfs" do
expect(service("ipfs")).to be_running
expect(service("ipfs")).to be_enabled
end
end