Sha256: 69e59676ad698c2d3f1c1a54a0531468dac003a19c1e7cbc31014e5a3ee889f6

Contents?: true

Size: 960 Bytes

Versions: 35

Compression:

Stored size: 960 Bytes

Contents

require 'spec_helper'

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

describe get_command(:check_interface_has_ipv6_address, 'eth0', '2001:0db8:bd05:01d2:288a:1fc0:0001:10ee') do
  it { should eq "ip -6 addr show eth0 | grep 'inet6 2001:0db8:bd05:01d2:288a:1fc0:0001:10ee/'" }
end

describe get_command(:check_interface_has_ipv6_address, 'eth0', '2001:0db8:bd05:01d2:288a:1fc0:0001:10ee/64') do
  it { should eq "ip -6 addr show eth0 | grep 'inet6 2001:0db8:bd05:01d2:288a:1fc0:0001:10ee/64 '" }
end

describe get_command(:check_interface_has_ipv4_address, 'eth0', '192.168.0.123') do
  it { should eq "ip -4 addr show eth0 | grep 'inet 192\\.168\\.0\\.123/'" }
end

describe get_command(:check_interface_has_ipv4_address, 'eth0', '192.168.0.123/24') do
  it { should eq "ip -4 addr show eth0 | grep 'inet 192\\.168\\.0\\.123/24 '" }
end

describe get_command(:get_interface_link_state, 'eth0') do
  it { should eq "cat /sys/class/net/eth0/operstate" }
end

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
specinfra-rb19-2.44.7 spec/command/linux/interface_spec.rb
specinfra-cisco-2.41.0 spec/command/linux/interface_spec.rb
specinfra-2.47.1 spec/command/linux/interface_spec.rb
specinfra-2.47.0 spec/command/linux/interface_spec.rb
specinfra-2.46.0 spec/command/linux/interface_spec.rb
specinfra-2.45.0 spec/command/linux/interface_spec.rb
specinfra-2.44.8 spec/command/linux/interface_spec.rb
specinfra-2.44.7 spec/command/linux/interface_spec.rb
specinfra-2.44.6 spec/command/linux/interface_spec.rb
specinfra-2.44.5 spec/command/linux/interface_spec.rb
specinfra-2.44.4 spec/command/linux/interface_spec.rb
specinfra-2.44.3 spec/command/linux/interface_spec.rb
specinfra-2.44.2 spec/command/linux/interface_spec.rb
specinfra-2.44.1 spec/command/linux/interface_spec.rb
specinfra-2.44.0 spec/command/linux/interface_spec.rb
specinfra-2.43.11 spec/command/linux/interface_spec.rb
specinfra-cisco-2.40.2 spec/command/linux/interface_spec.rb
specinfra-2.43.10 spec/command/linux/interface_spec.rb
specinfra-2.43.9 spec/command/linux/interface_spec.rb
specinfra-2.43.8 spec/command/linux/interface_spec.rb