Sha256: 73dac3db1f7f8ca5f565326e25800a4c63823b541a1bda28d597fc1d205e9960

Contents?: true

Size: 765 Bytes

Versions: 5

Compression:

Stored size: 765 Bytes

Contents

require 'spec_helper'

set :os, :family => 'solaris'

describe commands.command_class('host').create do
  it { should be_an_instance_of(Specinfra::Command::Solaris::Base::Host) }
end

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

describe host('invalid-host') do
  it { should_not 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('invalid-host') do
  it { should_not be_reachable.with(:proto => "udp", :port => 53, :timeout=> 1) }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta13 spec/type/solaris/host_spec.rb
serverspec-2.0.0.beta12 spec/type/solaris/host_spec.rb
serverspec-2.0.0.beta11 spec/type/solaris/host_spec.rb
serverspec-2.0.0.beta10 spec/type/solaris/host_spec.rb
serverspec-2.0.0.beta9 spec/type/solaris/host_spec.rb