Sha256: f6876ba3cc9825436fbe94e3ca1d297052aac7f23374e6911a03bbd319910a97

Contents?: true

Size: 677 Bytes

Versions: 1

Compression:

Stored size: 677 Bytes

Contents

# frozen_string_literal: true

require 'pio/open_flow/nicira_resubmit_table'

describe Pio::OpenFlow::NiciraResubmitTable do
  describe '.new' do
    When(:nicira_resubmit_table) do
      Pio::OpenFlow::NiciraResubmitTable.new(options)
    end

    context 'with in_port: 1, table: 1' do
      Given(:options) { { in_port: 1, table: 1 } }

      Then { nicira_resubmit_table.action_type == 0xffff }
      Then { nicira_resubmit_table.action_length == 16 }
      Then { nicira_resubmit_table.vendor == 0x2320 }
      Then { nicira_resubmit_table.subtype == 14 }
      Then { nicira_resubmit_table.in_port == 1 }
      Then { nicira_resubmit_table.table == 1 }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pio-0.30.2 spec/pio/open_flow/nicira_resubmit_table_spec.rb