Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.
Beraldo Leal edited this page Jul 20, 2016 · 4 revisions

Welcome to the python-openflow wiki!

Abstract

An invalid message must raise an exception covered by an unit test.

How to determine which messages needs raw files ?

  • We need to choose messages that covers all basic types (UBInt*, Char, BinaryData, HardwareAddresses, Lists)

One test to check binary pack order;

Basic Tests

  • Struct size with the minimum length according to OF Spec (asserts);
  • pack test: * Can be checked comparing the result of pack() with raw files; * Validate all reimplemented pack() (to make sure that all specific cases are covered. Ex: When body changes according to the type (ErrorMsg Class));
  • unpack test: * Can be tested unpacking a known raw file and checking the values of the object; * Validate all reimplemented unpack() (to make sure that all specific cases are covered. Ex: When body changes according to the type (ErrorMsg Class));
  • OpenFlow Spec attribute restrictions compliance;

Solution

Issues

Clone this wiki locally