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.91.0 spec/command/openbsd/port_spec.rb
specinfra-2.90.1 spec/command/openbsd/port_spec.rb
specinfra-2.90.0 spec/command/openbsd/port_spec.rb
specinfra-2.89.0 spec/command/openbsd/port_spec.rb
specinfra-2.88.2 spec/command/openbsd/port_spec.rb
specinfra-2.88.1 spec/command/openbsd/port_spec.rb
specinfra-2.88.0 spec/command/openbsd/port_spec.rb
specinfra-2.87.2 spec/command/openbsd/port_spec.rb
specinfra-2.87.1 spec/command/openbsd/port_spec.rb
specinfra-2.87.0 spec/command/openbsd/port_spec.rb
specinfra-2.86.0 spec/command/openbsd/port_spec.rb
specinfra-2.85.1 spec/command/openbsd/port_spec.rb
specinfra-2.85.0 spec/command/openbsd/port_spec.rb
specinfra-2.84.1 spec/command/openbsd/port_spec.rb
specinfra-2.84.0 spec/command/openbsd/port_spec.rb
specinfra-2.83.4 spec/command/openbsd/port_spec.rb
specinfra-2.83.3 spec/command/openbsd/port_spec.rb
specinfra-2.83.2 spec/command/openbsd/port_spec.rb
specinfra-2.83.1 spec/command/openbsd/port_spec.rb
specinfra-2.83.0 spec/command/openbsd/port_spec.rb