Sha256: 0eb07664387089342bd9743f2fe40e2aa980f312c55d4063d68498ec38163370

Contents?: true

Size: 953 Bytes

Versions: 9

Compression:

Stored size: 953 Bytes

Contents

require 'double_bag_ftps'
require 'net/ftp'

When /^the( \w+)? client connects(?: with (\w+) TLS)?$/ do
|client_name, tls_mode|
  tls_mode ||= 'off'
  client(client_name).tls_mode = tls_mode.to_sym
  client(client_name).start
  client(client_name).connect(server.host, server.port)
end

When /^the (\d+)rd client tries to connect$/ do |client_name|
  client(client_name).start
  capture_error do
    client(client_name).connect(server.host, server.port)
  end
end

When /^the (\S+) client connects from (\S+)$/ do
|client_name, source_ip|
  client(client_name).connect_from(source_ip, server.host, server.port)
end

When /^the (\S+) client tries to connect from (\S+)$/ do
|client_name, source_ip|
  capture_error do
    step "the #{client_name} client connects from #{source_ip}"
  end
end

Then /^the client should be connected$/ do
  client.should be_connected
end

Then /^the client should not be connected$/ do
  client.should_not be_connected
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ftpd-0.17.0 features/step_definitions/connect.rb
ftpd-0.16.0 features/step_definitions/connect.rb
ftpd-0.15.0 features/step_definitions/connect.rb
ftpd-0.14.0 features/step_definitions/connect.rb
ftpd-0.13.0 features/step_definitions/connect.rb
ftpd-0.12.0 features/step_definitions/connect.rb
ftpd-0.11.0 features/step_definitions/connect.rb
ftpd-0.10.0 features/step_definitions/connect.rb
ftpd-0.9.0 features/step_definitions/connect.rb