#NEWLINE# @ decorators . services_required ( 'neutron' ) #NEWLINE# def test_router_create( self ) : #NEWLINE# #INDENT# "This test case checks create, clear/set gateway,\n            delete router functionality\n            executed by non-admin user::\n            Steps:\n            1. Login to Horizon Dashboard as horizon user\n            2. Navigate to Project -> Network -> Routers page\n            3. Create new router\n            4. Check that the router appears in the routers table as active\n            5. Check that no Error messages present\n            6. Clear the gateway\n            7. Check that the router is still in the routers table\n               with no external network\n            8. Check that no Error messages present\n            9. Set the gateway to 'public' network\n            10. Check that no Error messages present\n            11. Check that router's external network is set to 'public'\n            12. Delete the router\n            13. Check that the router is absent in the routers table\n            14. Check that no Error messages present\n        " #NEWLINE# routers_page = self . home_pg . go_to_network_routerspage ( ) #NEWLINE# routers_page . create_router ( self . ROUTER_NAME ) #NEWLINE# self . assertTrue ( routers_page . find_message_and_dismiss ( messages . SUCCESS ) ) #NEWLINE# self . assertFalse ( routers_page . find_message_and_dismiss ( messages . ERROR ) ) #NEWLINE# self . assertTrue ( routers_page . is_router_present ( self . ROUTER_NAME ) ) #NEWLINE# self . assertTrue ( routers_page . is_router_active ( self . ROUTER_NAME ) ) #NEWLINE# routers_page . clear_gateway ( self . ROUTER_NAME ) #NEWLINE# self . assertTrue ( routers_page . find_message_and_dismiss ( messages . SUCCESS ) ) #NEWLINE# self . assertFalse ( routers_page . find_message_and_dismiss ( messages . ERROR ) ) #NEWLINE# self . assertTrue ( routers_page . is_gateway_cleared ( self . ROUTER_NAME ) ) #NEWLINE# routers_page . set_gateway ( self . ROUTER_NAME ) #NEWLINE# self . assertTrue ( routers_page . find_message_and_dismiss ( messages . SUCCESS ) ) #NEWLINE# self . assertFalse ( routers_page . find_message_and_dismiss ( messages . ERROR ) ) #NEWLINE# self . assertTrue ( routers_page . is_gateway_set ( routers_page . ROUTER_NAME ) ) #NEWLINE# routers_page . delete_router ( self . ROUTER_NAME ) #NEWLINE# self . assertTrue ( routers_page . find_message_and_dismiss ( messages . SUCCESS ) ) #NEWLINE# self . assertFalse ( routers_page . find_message_and_dismiss ( messages . ERROR ) ) #NEWLINE# self . assertFalse ( routers_page . is_router_present ( self . ROUTER_NAME ) )