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-ruby19-2.24.3 spec/type/openbsd/interface_spec.rb
serverspec-2.30.1 spec/type/openbsd/interface_spec.rb
serverspec-2.30.0 spec/type/openbsd/interface_spec.rb
serverspec-2.29.2 spec/type/openbsd/interface_spec.rb
serverspec-2.29.1 spec/type/openbsd/interface_spec.rb
serverspec-2.29.0 spec/type/openbsd/interface_spec.rb
serverspec-2.28.0 spec/type/openbsd/interface_spec.rb
serverspec-2.27.0 spec/type/openbsd/interface_spec.rb
serverspec-2.26.0 spec/type/openbsd/interface_spec.rb
serverspec-2.25.0 spec/type/openbsd/interface_spec.rb
serverspec-2.24.3 spec/type/openbsd/interface_spec.rb
serverspec-2.24.2 spec/type/openbsd/interface_spec.rb
serverspec-2.24.1 spec/type/openbsd/interface_spec.rb
serverspec-2.24.0 spec/type/openbsd/interface_spec.rb
serverspec-2.23.1 spec/type/openbsd/interface_spec.rb
serverspec-2.23.0 spec/type/openbsd/interface_spec.rb
serverspec-2.22.0 spec/type/openbsd/interface_spec.rb
serverspec-2.21.1 spec/type/openbsd/interface_spec.rb
serverspec-2.21.0 spec/type/openbsd/interface_spec.rb
serverspec-2.20.0 spec/type/openbsd/interface_spec.rb