Sha256: 2c8ea5ca592e8eae80478c4a51eb0017fcf9d72525e4f333839fcfc2ec256679
Contents?: true
Size: 1.02 KB
Versions: 6
Compression:
Stored size: 1.02 KB
Contents
require 'spec_helper' RSpec.describe RubySMB::SMB1::Packet::EchoRequest 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_NEGOTIATE' do expect(header.command).to eq RubySMB::SMB1::Commands::SMB_COM_ECHO end it 'should not have the response flag set' do expect(header.flags.reply).to eq 0 end end describe '#parameter_block' do subject(:parameter_block) { packet.parameter_block } it { is_expected.to respond_to :echo_count } it 'is a standard ParameterBlock' do expect(parameter_block).to be_a RubySMB::SMB1::ParameterBlock end end describe '#data_block' do subject(:data_block) { packet.data_block } it { is_expected.to respond_to :data } it 'is a standard DataBlock' do expect(data_block).to be_a RubySMB::SMB1::DataBlock end end end
Version data entries
6 entries across 6 versions & 1 rubygems