Sha256: 4b9e0786812c2d714ff884ddbec55f9d60d6e57d1f100e9588b0e32b0aade870

Contents?: true

Size: 1.23 KB

Versions: 12

Compression:

Stored size: 1.23 KB

Contents

require 'spec_helper'

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

describe get_command(:check_interface_has_ipv6_address, 'vtnet0', '2001:0db8:bd05:01d2:288a:1fc0:0001:10ee') do
  it { should eq "ifconfig vtnet0 inet6 | grep 'inet6 2001:0db8:bd05:01d2:288a:1fc0:0001:10ee '" }
end

describe get_command(:check_interface_has_ipv6_address, 'vtnet0', '2001:0db8:bd05:01d2:288a:1fc0:0001:10ee/64') do
  it { should eq "ifconfig vtnet0 inet6 | grep 'inet6 2001:0db8:bd05:01d2:288a:1fc0:0001:10ee prefixlen 64'" }
end

describe get_command(:check_interface_has_ipv6_address, 'vtnet0', 'fe80::5054:ff:fe01:10ee/64') do
  it { should eq "ifconfig vtnet0 inet6 | grep 'inet6 fe80::5054:ff:fe01:10ee%vtnet0 prefixlen 64'" }
end

describe get_command(:check_interface_has_ipv6_address, 'vtnet0', 'fe80::5054:ff:fe01:10ee') do
  it { should eq "ifconfig vtnet0 inet6 | grep 'inet6 fe80::5054:ff:fe01:10ee%vtnet0 '" }
end

describe get_command(:check_interface_has_ipv4_address, 'vtnet0', '192.168.0.123') do
  it { should eq "ifconfig vtnet0 inet | grep 'inet 192\\.168\\.0\\.123 '" }
end

describe get_command(:check_interface_has_ipv4_address, 'vtnet0', '192.168.0.123/24') do
  it { should eq "ifconfig vtnet0 inet | grep 'inet 192\\.168\\.0\\.123 '" }
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
specinfra-cisco-2.41.0 spec/command/freebsd/interface_spec.rb
specinfra-cisco-2.40.2 spec/command/freebsd/interface_spec.rb
specinfra-2.43.2 spec/command/freebsd/interface_spec.rb
specinfra-2.43.1 spec/command/freebsd/interface_spec.rb
specinfra-2.43.0 spec/command/freebsd/interface_spec.rb
specinfra-2.42.2 spec/command/freebsd/interface_spec.rb
specinfra-2.42.1 spec/command/freebsd/interface_spec.rb
specinfra-2.42.0 spec/command/freebsd/interface_spec.rb
specinfra-2.41.1 spec/command/freebsd/interface_spec.rb
specinfra-2.41.0 spec/command/freebsd/interface_spec.rb
specinfra-2.40.2 spec/command/freebsd/interface_spec.rb
specinfra-2.40.1 spec/command/freebsd/interface_spec.rb