Sha256: f98f1ca20bac0f1e92834ae93e647d0ac5f134eb72adff26e0a684149109587b

Contents?: true

Size: 855 Bytes

Versions: 185

Compression:

Stored size: 855 Bytes

Contents

require 'spec_helper'

property[:os] = nil
set :os, :family => 'freebsd'

describe get_command(:check_host_is_reachable, 'pink.unicorn.com', nil, 'tcp', 10) do 
  it { should eq "ping -t 10 -c 2 -n pink.unicorn.com"} 
end

describe get_command(:check_host_is_reachable, 'pink.unicorn.com', 53, 'udp', 66) do 
  it { should eq "nc -vvvvzu pink.unicorn.com 53 -w 66" } 
end

describe get_command(:get_host_ipaddress, 'pink.unicorn.com') do 
  it { should eq "getent hosts pink.unicorn.com | awk '{print $1; exit}'" }
end

describe get_command(:get_host_ipv4_address, 'pink.unicorn.com') do 
  it { should eq "getent hosts pink.unicorn.com | awk '$1 ~ /^[0-9.]+$/ {print $1}'" }
end 

describe get_command(:get_host_ipv6_address, 'pink.unicorn.com') do 
  it { should eq "getent hosts pink.unicorn.com | awk 'tolower($1) ~ /^[0-9a-f:]+$/ {print $1}'" }
end 

Version data entries

185 entries across 185 versions & 2 rubygems

Version Path
specinfra-2.91.0 spec/command/freebsd/host_spec.rb
specinfra-2.90.1 spec/command/freebsd/host_spec.rb
specinfra-2.90.0 spec/command/freebsd/host_spec.rb
specinfra-2.89.0 spec/command/freebsd/host_spec.rb
specinfra-2.88.2 spec/command/freebsd/host_spec.rb
specinfra-2.88.1 spec/command/freebsd/host_spec.rb
specinfra-2.88.0 spec/command/freebsd/host_spec.rb
specinfra-2.87.2 spec/command/freebsd/host_spec.rb
specinfra-2.87.1 spec/command/freebsd/host_spec.rb
specinfra-2.87.0 spec/command/freebsd/host_spec.rb
specinfra-2.86.0 spec/command/freebsd/host_spec.rb
specinfra-2.85.1 spec/command/freebsd/host_spec.rb
specinfra-2.85.0 spec/command/freebsd/host_spec.rb
specinfra-2.84.1 spec/command/freebsd/host_spec.rb
specinfra-2.84.0 spec/command/freebsd/host_spec.rb
specinfra-2.83.4 spec/command/freebsd/host_spec.rb
specinfra-2.83.3 spec/command/freebsd/host_spec.rb
specinfra-2.83.2 spec/command/freebsd/host_spec.rb
specinfra-2.83.1 spec/command/freebsd/host_spec.rb
specinfra-2.83.0 spec/command/freebsd/host_spec.rb