Sha256: 368a022dcf20d979cb0ed244ecb13022ba0ee4492595e67645d584c5ac1619f8

Contents?: true

Size: 875 Bytes

Versions: 185

Compression:

Stored size: 875 Bytes

Contents

require 'spec_helper'

property[:os] = nil
set :os, :family => 'redhat', :release => '7'


describe get_command(:check_host_is_reachable, 'example.jp', '53', 'udp', 2) do 
  it { should eq "ncat -vvvvu example.jp 53 -w 2 -i 2 2>&1 | grep -q SUCCESS" } 
end

describe get_command(:check_host_is_reachable, 'example.jp', '80', 'tcp', 3) do 
  it { should eq "ncat -vvvvt example.jp 80 -w 3 -i 3 2>&1 | grep -q SUCCESS" } 
end

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

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

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

Version data entries

185 entries across 185 versions & 2 rubygems

Version Path
specinfra-2.76.5 spec/command/redhat7/host_spec.rb
specinfra-2.76.4 spec/command/redhat7/host_spec.rb
specinfra-2.76.3 spec/command/redhat7/host_spec.rb
specinfra-2.76.2 spec/command/redhat7/host_spec.rb
specinfra-2.76.1 spec/command/redhat7/host_spec.rb
specinfra-2.76.0 spec/command/redhat7/host_spec.rb
specinfra-2.75.1 spec/command/redhat7/host_spec.rb
specinfra-rb19-2.44.7 spec/command/redhat7/host_spec.rb
specinfra-2.75.0 spec/command/redhat7/host_spec.rb
specinfra-2.74.0 spec/command/redhat7/host_spec.rb
specinfra-2.73.4 spec/command/redhat7/host_spec.rb
specinfra-2.73.3 spec/command/redhat7/host_spec.rb
specinfra-2.73.2 spec/command/redhat7/host_spec.rb
specinfra-2.73.1 spec/command/redhat7/host_spec.rb
specinfra-2.73.0 spec/command/redhat7/host_spec.rb
specinfra-2.72.1 spec/command/redhat7/host_spec.rb
specinfra-2.72.0 spec/command/redhat7/host_spec.rb
specinfra-2.71.3 spec/command/redhat7/host_spec.rb
specinfra-2.71.2 spec/command/redhat7/host_spec.rb
specinfra-2.71.1 spec/command/redhat7/host_spec.rb