MT#62615 ngcp-dlgcnt-check: fix filtering dlglist values from results

output was changed to json but the regex for filtering list: values
was not updated

* migrate fixtures to json

Change-Id: Ifa18e87ef935dae8e8fab75095591646101c06c1
(cherry picked from commit 025afbca5c)
(cherry picked from commit c0ea2de590)
mr12.5.1
Victor Seva 1 month ago
parent d31e4122cc
commit c26b7ec922

@ -44,7 +44,7 @@ ngcp-kamctl proxy fifo dlg.list | awk '/"call-id":/ { print $NF}' > "$KAMAILIO_D
# 'lists:' belongs to dlglist
REDIS_CALLIDS_FILTER=$(mktemp)
grep -E -v '^list:' "$REDIS_CALLIDS" > "$REDIS_CALLIDS_FILTER" || true
grep -E -v '^\s+"list:' "$REDIS_CALLIDS" > "$REDIS_CALLIDS_FILTER" || true
while read -r i ; do
if [[ "$i" == '[' || "$i" == ']' || "$i" == "Database is empty" ]]; then

@ -1,4 +1,6 @@
WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5080
f81f8a33-2dbd-1235-018c-0090fb484030:5060-pbx_1
f81f8a33-2dbd-1235-018c-0090fb484030:5060
list:f81f8a33-2dbd-1235-018c-0090fb484030:5060
[
"WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5080",
"f81f8a33-2dbd-1235-018c-0090fb484030:5060-pbx_1",
"f81f8a33-2dbd-1235-018c-0090fb484030:5060",
"list:f81f8a33-2dbd-1235-018c-0090fb484030:5060"
]

@ -1,3 +1,5 @@
WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060-pbx_1
WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060
list:WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060
[
"WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060-pbx_1",
"WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060",
"list:WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060"
]

Loading…
Cancel
Save