Sha256: dcd3c3b18c70744851cd73e1d1bebc6e90b89c0240d97602f35462e007a60186

Contents?: true

Size: 430 Bytes

Versions: 7

Compression:

Stored size: 430 Bytes

Contents

require 'spec_helper'

set :os, :family => 'linux'

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

7 entries across 7 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta20 spec/type/linux/interface_spec.rb
serverspec-2.0.0.beta19 spec/type/linux/interface_spec.rb
serverspec-2.0.0.beta18 spec/type/linux/interface_spec.rb
serverspec-2.0.0.beta17 spec/type/linux/interface_spec.rb
serverspec-2.0.0.beta16 spec/type/linux/interface_spec.rb
serverspec-2.0.0.beta15 spec/type/linux/interface_spec.rb
serverspec-2.0.0.beta14 spec/type/linux/interface_spec.rb