Sha256: 7e97c596e6611f05fd890bf6af4fefb265e2ad0e01e2ba752c75a98be8e43336

Contents?: true

Size: 1.24 KB

Versions: 10

Compression:

Stored size: 1.24 KB

Contents

Given(/^I switch the Pio::OpenFlow version to "([^"]*)"$/) do |version|
  Pio::OpenFlow.switch_version version.to_sym
end

When(/^I get the OpenFlow version string$/) do
  @version = Pio::OpenFlow.version
end

Then(/^the version string should be "([^"]*)"$/) do |expected_version_string|
  expect(@version).to eq(expected_version_string)
end

When(/^I try to create a packet with:$/) do |ruby_code|
  begin
    @result = Pio.module_eval(ruby_code)
  rescue
    @last_error = $ERROR_INFO
  end
end

When(/^I try to create an OpenFlow message with:$/) do |ruby_code|
  step 'I try to create a packet with:', ruby_code
end

When(/^I try to create an OpenFlow action with:$/) do |ruby_code|
  step 'I try to create a packet with:', ruby_code
end

When(/^I try to create an OpenFlow instruction with:$/) do |ruby_code|
  step 'I try to create a packet with:', ruby_code
end

# rubocop:disable LineLength
Then(/^the following each raw file should be parsed into its corresponding object using OpenFlow\.read$/) do |table|
  table.hashes.each do |each|
    step %(I try to parse a file named "#{each['raw file']}" with "OpenFlow" class)
    step 'it should finish successfully'
    step %(the message should be a "#{each['result object']}")
  end
end
# rubocop:enable LineLength

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pio-0.30.0 features/step_definitions/open_flow_steps.rb
pio-0.29.0 features/step_definitions/open_flow_steps.rb
pio-0.28.1 features/step_definitions/open_flow_steps.rb
pio-0.28.0 features/step_definitions/open_flow_steps.rb
pio-0.27.2 features/step_definitions/open_flow_steps.rb
pio-0.27.1 features/step_definitions/open_flow_steps.rb
pio-0.27.0 features/step_definitions/open_flow_steps.rb
pio-0.26.0 features/step_definitions/open_flow_steps.rb
pio-0.25.0 features/step_definitions/open_flow_steps.rb
pio-0.24.2 features/step_definitions/open_flow_steps.rb