Sha256: 6a16f549c4e074a2e6c37d711dd53678db474616a454a48ee79c54fe4ab76633
Contents?: true
Size: 1.22 KB
Versions: 5
Compression:
Stored size: 1.22 KB
Contents
require 'spec_helper' include Specinfra::Helper::Cmd set :os, :family => 'windows' describe commands.command_class('host').create do it { should be_an_instance_of(Specinfra::Command::Windows::Base::Host) } end 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