You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
system-tests/templates/920_service-asterisk-odbc-p...

23 lines
492 B

[%
hostname = ngcp.get_hostname();
is_proxy = ngcp.has_role(hostname, 'proxy');
-%]
command:
{{if and [% (is_proxy && asterisk.enable == 'yes') ? 1 : 0 %] .Vars.NODE_ACTIVE}}
asterisk -rx "odbc read ODBC_VMGREETUNAVAIL test exec":
exit-status: 0
stdout:
- "/Returned 1 row/"
stderr: []
timeout: 10000
{{else}}
echo "The test for active node with enabled asterisk and proxy role only":
exit-status: 0
stdout: []
stderr: []
timeout: 10000
{{end}}