Sha256: 1cbc150c490c98605560d6e6538c06a7dccfd4f856bab255987cb41399a42880

Contents?: true

Size: 788 Bytes

Versions: 145

Compression:

Stored size: 788 Bytes

Contents

require 'common'
require 'protocol/02/test_base'

class Protocol::V03::TestBase < Protocol::V02::TestBase
  def test_version
    assert_equal 3, @base.version
  end

  undef test_readlink_should_raise_not_implemented_error
  undef test_symlink_should_raise_not_implemented_error

  def test_readlink_should_send_readlink_packet
    @session.expects(:send_packet).with(FXP_READLINK, :long, 0, :string, "/path/to/link")
    assert_equal 0, @base.readlink("/path/to/link")
  end

  def test_symlink_should_send_symlink_packet
    @session.expects(:send_packet).with(FXP_SYMLINK, :long, 0, :string, "/path/to/link", :string, "/path/to/file")
    assert_equal 0, @base.symlink("/path/to/link", "/path/to/file")
  end

  private

    def driver
      Net::SFTP::Protocol::V03::Base
    end
end

Version data entries

145 entries across 108 versions & 9 rubygems

Version Path
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/protocol/03/test_base.rb