mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
19 lines
539 B
Ruby
19 lines
539 B
Ruby
|
Shindo.tests('HP::Network | networking routers model', ['hp', 'networking', 'router']) do
|
||
|
|
||
|
attributes = {:name => 'my_router', :admin_state_up => true}
|
||
|
collection_tests(HP[:network].routers, attributes, true)
|
||
|
|
||
|
tests('success') do
|
||
|
|
||
|
attributes = {:name => 'fogrouter', :admin_state_up => true}
|
||
|
@router = HP[:network].routers.create(attributes)
|
||
|
|
||
|
tests('#all(filter)').succeeds do
|
||
|
routers = HP[:network].routers.all({:name => 'fogrouter'})
|
||
|
routers.first.name == 'fogrouter'
|
||
|
end
|
||
|
|
||
|
@router.destroy
|
||
|
end
|
||
|
|
||
|
end
|