Sha256: 4a3b30bd7a82b389b14ada3782cc1ffa1b601c6c8d86364ca925028c8867c4d8

Contents?: true

Size: 514 Bytes

Versions: 111

Compression:

Stored size: 514 Bytes

Contents

require 'spec_helper'

property[:os] = nil
set :os, :family => 'openbsd'

describe get_command(:check_port_is_listening, '80') do
  it { should eq "netstat -nat -f inet | egrep '((tcp|udp).*.80.*LISTEN$)'" }
end

describe get_command(:check_port_is_listening, '22', :protocol => 'tcp') do
  it { should eq "netstat -nat -f inet | egrep '(tcp.*.22.*LISTEN$)'" }
end

describe get_command(:check_port_is_listening, '514', :protocol => 'udp') do
  it { should eq "netstat -nat -f inet | egrep '(udp.*.514.*$)'" }
end

Version data entries

111 entries across 111 versions & 1 rubygems

Version Path
specinfra-2.82.5 spec/command/openbsd/port_spec.rb
specinfra-2.82.4 spec/command/openbsd/port_spec.rb
specinfra-2.82.3 spec/command/openbsd/port_spec.rb
specinfra-2.82.2 spec/command/openbsd/port_spec.rb
specinfra-2.82.1 spec/command/openbsd/port_spec.rb
specinfra-2.82.0 spec/command/openbsd/port_spec.rb
specinfra-2.81.0 spec/command/openbsd/port_spec.rb
specinfra-2.80.0 spec/command/openbsd/port_spec.rb
specinfra-2.79.0 spec/command/openbsd/port_spec.rb
specinfra-2.78.2 spec/command/openbsd/port_spec.rb
specinfra-2.78.1 spec/command/openbsd/port_spec.rb
specinfra-2.78.0 spec/command/openbsd/port_spec.rb
specinfra-2.77.3 spec/command/openbsd/port_spec.rb
specinfra-2.77.2 spec/command/openbsd/port_spec.rb
specinfra-2.77.1 spec/command/openbsd/port_spec.rb
specinfra-2.77.0 spec/command/openbsd/port_spec.rb
specinfra-2.76.9 spec/command/openbsd/port_spec.rb
specinfra-2.76.8 spec/command/openbsd/port_spec.rb
specinfra-2.76.7 spec/command/openbsd/port_spec.rb
specinfra-2.76.6 spec/command/openbsd/port_spec.rb