Skip to content

Commit

Permalink
tests: check the route created on proxy
Browse files Browse the repository at this point in the history
The address of the route on the proxy, must be the same address of the
proxy.
  • Loading branch information
Amygos committed Dec 20, 2023
1 parent 0770aab commit 12181cb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/10_nethvoice_actions/10_configure_integrations.robot
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,17 @@ Check if nethvoice is configured as expected
Check if the password can be changed
${response} = Run task module/${module_id}/set-nethvoice-admin-password
... {"nethvoice_admin_password": "Nethesis,1234"}

Check if the route on nethvoice-proxy is created correctly
${response} = Run task module/${module_id}/list-service-providers
... {"service": "sip", "transport": "tcp", "filter": {"module_id": "${proxy_module_id}"} }
Set Variable ${proxy_addr} ${response[0]['host']}
${response} = Run task module/${proxy_module_id}/get-route
... {domain: "voice.ns8.local"}
Should Contain ${response['address'][0]['uri']} ${proxy_addr}
Run task module/${proxy_module_id}/configure-module
... {"addresses": {"address": "1.2.3.4"}}
Set Variable ${proxy_addr} ${response[0]['host']}
${response} = Run task module/${proxy_module_id}/get-route
... {domain: "voice.ns8.local"}
Should Contain ${response['address'][0]['uri']} ${proxy_addr}

0 comments on commit 12181cb

Please sign in to comment.