Sha256: d21ddc355f07291f4ef90c1d36a064aabf90ff4fd30c3d0be29b8e0eb5f5fe27

Contents?: true

Size: 432 Bytes

Versions: 60

Compression:

Stored size: 432 Bytes

Contents

require 'spec_helper'

set :os, :family => 'openbsd'

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

60 entries across 60 versions & 3 rubygems

Version Path
serverspec-2.19.0 spec/type/openbsd/interface_spec.rb
serverspec-2.18.0 spec/type/openbsd/interface_spec.rb
serverspec-2.17.1 spec/type/openbsd/interface_spec.rb
serverspec-2.17.0 spec/type/openbsd/interface_spec.rb
serverspec-2.16.0 spec/type/openbsd/interface_spec.rb
serverspec-2.15.0 spec/type/openbsd/interface_spec.rb
serverspec-2.14.1 spec/type/openbsd/interface_spec.rb
serverspec-2.14.0 spec/type/openbsd/interface_spec.rb
serverspec-2.13.0 spec/type/openbsd/interface_spec.rb
serverspec-2.12.0 spec/type/openbsd/interface_spec.rb
serverspec-2.11.0 spec/type/openbsd/interface_spec.rb
serverspec-2.10.2 spec/type/openbsd/interface_spec.rb
serverspec-2.10.1 spec/type/openbsd/interface_spec.rb
serverspec-2.10.0 spec/type/openbsd/interface_spec.rb
serverspec-2.9.1 spec/type/openbsd/interface_spec.rb
serverspec-2.9.0 spec/type/openbsd/interface_spec.rb
serverspec-2.8.2 spec/type/openbsd/interface_spec.rb
serverspec-2.8.1 spec/type/openbsd/interface_spec.rb
serverspec-2.8.0 spec/type/openbsd/interface_spec.rb
serverspec-2.7.2 spec/type/openbsd/interface_spec.rb