MT#58762 adjust restpi tests v2 to harmonized wildcard filters

Change-Id: Ie100612c9f284e9acad6b305345751bb07adfab9
(cherry picked from commit bad2e32802)
mr10.5.7
Rene Krenn 1 year ago
parent 65a9a52c87
commit eb44ad88a0

@ -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 |

@ -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" },

Loading…
Cancel
Save