Sha256: 33c602520651b86374b26b29cecf794528fce93772a2c6f6e412c9a0a273fb8d

Contents?: true

Size: 769 Bytes

Versions: 41

Compression:

Stored size: 769 Bytes

Contents

require 'spec_helper'

set :os, :family => 'base'

describe host('127.0.0.1') do
  it { should be_resolvable }
end

describe host('127.0.0.1') do
  it { should be_resolvable.by('hosts') }
end

describe host('127.0.0.1') do
  it { should be_resolvable.by('dns') }
end

describe host('127.0.0.1') do
  it { should be_reachable }
end

describe host('127.0.0.1') do
  it { should be_reachable.with(:proto => "icmp", :timeout=> 1) }
end

describe host('127.0.0.1') do
  it { should be_reachable.with(:proto => "tcp", :port => 22, :timeout=> 1) }
end

describe host('127.0.0.1') do
  it { should be_reachable.with(:proto => "udp", :port => 53, :timeout=> 1) }
end

describe host('example.jp') do
  let(:stdout) { "1.2.3.4\r\n" }
  its(:ipaddress) { should eq '1.2.3.4' }
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
serverspec-2.10.0 spec/type/base/host_spec.rb
serverspec-2.9.1 spec/type/base/host_spec.rb
serverspec-2.9.0 spec/type/base/host_spec.rb
serverspec-2.8.2 spec/type/base/host_spec.rb
serverspec-2.8.1 spec/type/base/host_spec.rb
serverspec-2.8.0 spec/type/base/host_spec.rb
serverspec-2.7.2 spec/type/base/host_spec.rb
serverspec-2.7.1 spec/type/base/host_spec.rb
serverspec-2.7.0 spec/type/base/host_spec.rb
serverspec-2.6.0 spec/type/base/host_spec.rb
serverspec-2.5.0 spec/type/base/host_spec.rb
serverspec-2.4.0 spec/type/base/host_spec.rb
serverspec-2.3.1 spec/type/base/host_spec.rb
serverspec-2.3.0 spec/type/base/host_spec.rb
serverspec-2.2.0 spec/type/base/host_spec.rb
serverspec-clc-2.1.0 spec/type/base/host_spec.rb
serverspec-2.1.0 spec/type/base/host_spec.rb
serverspec-2.0.1 spec/type/base/host_spec.rb
serverspec-2.0.0 spec/type/base/host_spec.rb
serverspec-2.0.0.beta21 spec/type/base/host_spec.rb