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.66.6 spec/command/openbsd/port_spec.rb
specinfra-2.66.5 spec/command/openbsd/port_spec.rb
specinfra-2.66.4 spec/command/openbsd/port_spec.rb
specinfra-2.66.3 spec/command/openbsd/port_spec.rb
specinfra-2.66.2 spec/command/openbsd/port_spec.rb
specinfra-2.66.1 spec/command/openbsd/port_spec.rb
specinfra-2.66.0 spec/command/openbsd/port_spec.rb
specinfra-2.65.0 spec/command/openbsd/port_spec.rb
specinfra-2.64.0 spec/command/openbsd/port_spec.rb
specinfra-2.63.3 spec/command/openbsd/port_spec.rb
specinfra-2.63.2 spec/command/openbsd/port_spec.rb