Sha256: 78b64a9aa6f225031be2d3d72626923b2d7afc9525fcc2d540a0968764fc5162

Contents?: true

Size: 810 Bytes

Versions: 61

Compression:

Stored size: 810 Bytes

Contents

require 'spec_helper'

RSpec.describe RubySMB::SMB1::Packet::Trans::PeekNmpipeResponse do

  subject(:packet) { described_class.new }

  describe '#smb_header' do
    subject(:header) { packet.smb_header }

    it 'is a standard SMB Header' do
      expect(header).to be_a RubySMB::SMB1::SMBHeader
    end

    it 'should have the command set to SMB_COM_TRANSACTION' do
      expect(header.command).to eq RubySMB::SMB1::Commands::SMB_COM_TRANSACTION
    end

    it 'should have the response flag set' do
      expect(header.flags.reply).to eq 1
    end
  end

  describe '#parameter_block' do
    subject(:parameter_block) { packet.parameter_block }

    it 'is a standard Trans ParameterBlock' do
      expect(parameter_block).to be_a RubySMB::SMB1::Packet::Trans::Response::ParameterBlock
    end
  end

end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
ruby_smb-3.3.12 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.3.11 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.3.10 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.3.9 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.3.7 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.3.6 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.3.5 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.3.4 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.3.3 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.3.2 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.3.1 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.3.0 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.2.8 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.2.7 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.2.6 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.2.5 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.2.4 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.2.3 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.2.2 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-3.2.1 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb