Sha256: cebce0050c8edff8a593c6547726a6412e1481929132cef92be09ff8582a4ee4
Contents?: true
Size: 992 Bytes
Versions: 2
Compression:
Stored size: 992 Bytes
Contents
# frozen_string_literal: true 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 expect(client).to be_connected end Then /^the client should not be connected$/ do expect(client).to_not be_connected end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ftpd-2.0.1 | features/step_definitions/connect.rb |
ftpd-2.0.0 | features/step_definitions/connect.rb |