Sha256: 60819f3829e017b7efe939a0f3b051efbab9226b3f2d313bea646bdbde9f93a8

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

require 'spec_helper'

set :backend, :cmd
set :os, :family => 'windows'

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

describe host('invalid-name') do
  it { should_not be_resolvable }
end

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

describe host('invalid-name') do
  it { should_not be_resolvable.by('hosts') }
end

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

describe host('invalid-name') do
  it { should_not be_resolvable.by('dns') }
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.beta19 spec/type/windows/host_spec.rb
serverspec-2.0.0.beta18 spec/type/windows/host_spec.rb
serverspec-2.0.0.beta17 spec/type/windows/host_spec.rb
serverspec-2.0.0.beta16 spec/type/windows/host_spec.rb
serverspec-2.0.0.beta15 spec/type/windows/host_spec.rb