quality: Add test cases for get_config messages

This commit is contained in:
Eishun Kondoh 2019-04-28 14:18:51 +09:00
parent c592d9f7c5
commit ca07b47575
5 changed files with 29 additions and 17 deletions

View file

@ -28,10 +28,7 @@ defmodule OfpGetConfigTest do
describe "Openflow.to_binary/1" do
test "with %Openflow.GetConfig.Request{}" do
config = %Openflow.GetConfig.Request{
version: 4,
xid: 0
}
config = Openflow.GetConfig.Request.new(0)
expect =
"test/packet_data/ofp_get_config_request.raw"