Sha256: 2a7c57e933e7399ad08d337b5681705c2ed659bf858240b3b3fe2ec5caf4135f

Contents?: true

Size: 572 Bytes

Versions: 5

Compression:

Stored size: 572 Bytes

Contents

require 'spec_helper'

set :os, :family => 'openbsd'

describe commands.command_class('interface').create do
  it { should be_an_instance_of(Specinfra::Command::Openbsd::Base::Interface) }
end

describe interface('eth0') do
  let(:stdout) { '1000' }
  its(:speed) { should eq 1000 }
end

describe interface('eth0') do
  it { should have_ipv4_address("192.168.10.10") }
end

describe interface('eth0') do
  it { should have_ipv4_address("192.168.10.10/24") }
end

describe interface('invalid-interface') do
  let(:stdout) { '1000' }
  its(:speed) { should_not eq 100 }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta13 spec/type/openbsd/interface_spec.rb
serverspec-2.0.0.beta12 spec/type/openbsd/interface_spec.rb
serverspec-2.0.0.beta11 spec/type/openbsd/interface_spec.rb
serverspec-2.0.0.beta10 spec/type/openbsd/interface_spec.rb
serverspec-2.0.0.beta9 spec/type/openbsd/interface_spec.rb