Sha256: ae7e3c9a8ed0641d7c6246b120fd98415ab28ca1166e577e519d919145b1a78a

Contents?: true

Size: 278 Bytes

Versions: 5

Compression:

Stored size: 278 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Solaris

describe port(80) do
  it { should be_listening }
  its(:command) { should eq %q!netstat -an 2> /dev/null | egrep 'LISTEN|Idle' | grep -- .80\\ ! }
end

describe port('invalid') do
  it { should_not be_listening }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-0.6.21 spec/solaris/port_spec.rb
serverspec-0.6.20 spec/solaris/port_spec.rb
serverspec-0.6.19 spec/solaris/port_spec.rb
serverspec-0.6.18 spec/solaris/port_spec.rb
serverspec-0.6.17 spec/solaris/port_spec.rb