spec/trema/dsl/runner_spec.rb in trema-0.2.5 vs spec/trema/dsl/runner_spec.rb in trema-0.2.6

- old
+ new

@@ -1,8 +1,6 @@ # -# Author: Yasuhito Takamiya <yasuhito@gmail.com> -# # Copyright (C) 2008-2012 NEC Corporation # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2, as # published by the Free Software Foundation. @@ -45,11 +43,12 @@ :switch_manager => nil, :packetin_filter => nil, :links => {}, :hosts => {}, :switches => {}, - :apps => {} + :apps => {}, + :netnss => {} ) Runner.new( context ).run end @@ -65,10 +64,11 @@ :packetin_filter => packetin_filter, :links => {}, :hosts => {}, :switches => {}, :apps => {}, + :netnss => {}, :port => 6633 ) Runner.new( context ).run end @@ -94,10 +94,11 @@ :packetin_filter => nil, :links => { "link0" => link0, "link1" => link1, "link2" => link2 }, :hosts => {}, :switches => {}, :apps => {}, + :netnss => {}, :port => 6633 ) Runner.new( context ).run end @@ -136,10 +137,11 @@ :packetin_filter => nil, :links => {}, :hosts => { "host0" => host0, "host1" => host1, "host2" => host2 }, :switches => {}, :apps => {}, + :netnss => {}, :port => 6633 ) Runner.new( context ).run end @@ -162,10 +164,11 @@ :packetin_filter => nil, :links => {}, :hosts => {}, :switches => { "switch0" => switch0, "switch1" => switch1, "switch 2" => switch2 }, :apps => {}, + :netnss => {}, :port => 6633 ) Runner.new( context ).run end @@ -192,10 +195,11 @@ :switch_manager => mock( "switch manager", :run! => nil, :rule => {} ), :packetin_filter => nil, :links => {}, :hosts => {}, :switches => {}, + :netnss => {}, :apps => apps ) Runner.new( context ).run end @@ -222,9 +226,10 @@ :switch_manager => mock( "switch manager", :run! => nil, :rule => {} ), :packetin_filter => nil, :links => {}, :hosts => {}, :switches => {}, + :netnss => {}, :apps => apps ) Runner.new( context ).daemonize end