mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
15 lines
431 B
Ruby
15 lines
431 B
Ruby
|
Shindo.tests('HP::Network | networking networks model', ['hp', 'networking', 'network']) do
|
||
|
|
||
|
attributes = {:name => 'my_network', :admin_state_up => true, :shared => false}
|
||
|
collection_tests(HP[:network].networks, attributes, true)
|
||
|
|
||
|
tests('success') do
|
||
|
|
||
|
tests('#all(filter)').succeeds do
|
||
|
networks = HP[:network].networks.all({'router:external'=>true})
|
||
|
networks.first.router_external == true
|
||
|
end
|
||
|
|
||
|
end
|
||
|
|
||
|
end
|