From feeae50cd8ebbd3a24504252e481eaffa24e8e5d Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Fri, 20 Oct 2017 15:07:16 +0200 Subject: [PATCH] TT#22018 Fix 2b2e1def: use 'odbc show' to check ODBC status The old test doesn't work for the freshly installed system when DB has no subscribes. Old command reported nothing which fails the test. Change-Id: I1501f407ab8561fd83b1d21f6c3ac8e306ff1231 (cherry picked from commit 2bf023f9343a49adc66cb466b568d2a3922ced19) --- templates/920_service-asterisk-odbc-pro.yaml.tt2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/920_service-asterisk-odbc-pro.yaml.tt2 b/templates/920_service-asterisk-odbc-pro.yaml.tt2 index 0b09dc1..fd1d96f 100644 --- a/templates/920_service-asterisk-odbc-pro.yaml.tt2 +++ b/templates/920_service-asterisk-odbc-pro.yaml.tt2 @@ -17,10 +17,10 @@ command: [% IF is_proxy && asterisk.enabled == "yes" && node_state == 'active' -%] - asterisk -rx "voicemail show users for default": + asterisk -rx "odbc show": exit-status: 0 stdout: - - "/Configured Voicemail Users/" + - "/Number of active connections: 1/" stderr: [] timeout: 10000