From 30c97564a881a64fb61a76cb818fb7f3b0938d86 Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Wed, 6 Dec 2023 18:14:18 +0100 Subject: [PATCH] MT#58762 adjust restpi tests v2 to harmonized wildcard filters Change-Id: Ie100612c9f284e9acad6b305345751bb07adfab9 (cherry picked from commit bad2e32802e3a446dbc0d4863e201d88d3aea747) --- t/api-rest2/BillingNetworks.yaml | 10 +++++----- t/api-rest2/Events.yaml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/t/api-rest2/BillingNetworks.yaml b/t/api-rest2/BillingNetworks.yaml index 86121e455e..a676cee5ae 100644 --- a/t/api-rest2/BillingNetworks.yaml +++ b/t/api-rest2/BillingNetworks.yaml @@ -554,7 +554,7 @@ name: compare filtered collection type: item method: GET - path: '/api/billingnetworks/?page=1&rows=5&ip=fdfe::5a55:caff:fefa:9089&name=%25${unique_id}' + path: '/api/billingnetworks/?page=1&rows=5&ip=fdfe::5a55:caff:fefa:9089&name=*%25*${unique_id}' retain: collection: body perl_code: !!perl/code | @@ -575,7 +575,7 @@ name: compare filtered collection type: item method: GET - path: '/api/billingnetworks/?page=1&rows=5&ip=10.0.4.0&name=%25${unique_id}' + path: '/api/billingnetworks/?page=1&rows=5&ip=10.0.4.0&name=*${unique_id}' retain: collection: body perl_code: !!perl/code | @@ -596,7 +596,7 @@ name: compare filtered collection type: item method: GET - path: '/api/billingnetworks/?page=1&rows=5&ip=10.0.4.64&name=%25${unique_id}' + path: '/api/billingnetworks/?page=1&rows=5&ip=10.0.4.64&name=*${unique_id}' retain: collection: body perl_code: !!perl/code | @@ -617,7 +617,7 @@ name: compare filtered collection type: item method: GET - path: '/api/billingnetworks/?page=1&rows=5&ip=10.0.5.255&name=%25${unique_id}' + path: '/api/billingnetworks/?page=1&rows=5&ip=10.0.5.255&name=*${unique_id}' retain: collection: body perl_code: !!perl/code | @@ -638,7 +638,7 @@ name: compare filtered collection type: item method: GET - path: '/api/billingnetworks/?page=1&rows=5&ip=10.0.6.255&name=%25${unique_id}' + path: '/api/billingnetworks/?page=1&rows=5&ip=10.0.6.255&name=*${unique_id}' retain: collection: body perl_code: !!perl/code | diff --git a/t/api-rest2/Events.yaml b/t/api-rest2/Events.yaml index a1456a001f..457007a0dc 100644 --- a/t/api-rest2/Events.yaml +++ b/t/api-rest2/Events.yaml @@ -367,7 +367,7 @@ { my ($retained) = @_; - $retained->{eventhistory_path} = "api/events/?page=1&rows=10&order_by_direction=asc&order_by=id&subscriber_id=$retained->{subscriber_id}&type=%ivr"; + $retained->{eventhistory_path} = "api/events/?page=1&rows=10&order_by_direction=asc&order_by=id&subscriber_id=$retained->{subscriber_id}&type=*ivr"; $retained->{expected_events} = [ { subscriber_id => $retained->{subscriber}->{id}, type => "start_ivr" },