1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/hp/models/network/routers_tests.rb

19 lines
539 B
Ruby
Raw Normal View History

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