Sha256: e1662245dc58d3384503caabf72e9bd16f7a6ac3e4b1d3fa8c11e274223d38e5

Contents?: true

Size: 384 Bytes

Versions: 22

Compression:

Stored size: 384 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::RedHat

describe interface('eth0') do
  let(:stdout) { '1000' }
  its(:speed) { should eq 1000 }
  its(:command) { should eq "ethtool eth0 | grep Speed | gawk '{print gensub(/Speed: ([0-9]+)Mb\\/s/,\"\\\\1\",\"\")}'" }
end

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
serverspec-0.7.7 spec/redhat/interface_spec.rb
serverspec-0.7.6 spec/redhat/interface_spec.rb
serverspec-0.7.5 spec/redhat/interface_spec.rb
serverspec-0.7.4 spec/redhat/interface_spec.rb
serverspec-0.7.3 spec/redhat/interface_spec.rb
serverspec-0.7.2 spec/redhat/interface_spec.rb
serverspec-0.7.1 spec/redhat/interface_spec.rb
serverspec-0.7.0 spec/redhat/interface_spec.rb
serverspec-0.6.30 spec/redhat/interface_spec.rb
serverspec-0.6.29 spec/redhat/interface_spec.rb
serverspec-0.6.28 spec/redhat/interface_spec.rb
serverspec-0.6.27 spec/redhat/interface_spec.rb
serverspec-0.6.26 spec/redhat/interface_spec.rb
serverspec-0.6.25 spec/redhat/interface_spec.rb
serverspec-0.6.24 spec/redhat/interface_spec.rb
serverspec-0.6.23 spec/redhat/interface_spec.rb
serverspec-0.6.22 spec/redhat/interface_spec.rb
serverspec-0.6.21 spec/redhat/interface_spec.rb
serverspec-0.6.20 spec/redhat/interface_spec.rb
serverspec-0.6.19 spec/redhat/interface_spec.rb