|
|
|
@ -47,7 +47,7 @@ $ua->ssl_opts(
|
|
|
|
my $opts = JSON::from_json($res->decoded_content);
|
|
|
|
my $opts = JSON::from_json($res->decoded_content);
|
|
|
|
ok(exists $opts->{methods}, "OPTIONS should return methods");
|
|
|
|
ok(exists $opts->{methods}, "OPTIONS should return methods");
|
|
|
|
is(ref $opts->{methods}, "ARRAY", "OPTIONS methods should be array");
|
|
|
|
is(ref $opts->{methods}, "ARRAY", "OPTIONS methods should be array");
|
|
|
|
if ("GET" ~~ $opts->{methods}) {
|
|
|
|
if (grep {$_ eq "GET"} @{ $opts->{methods} }) {
|
|
|
|
# skip calllists collection, as it needs a subscriber_id parameter also in the collection
|
|
|
|
# skip calllists collection, as it needs a subscriber_id parameter also in the collection
|
|
|
|
next if $relname eq "calllists";
|
|
|
|
next if $relname eq "calllists";
|
|
|
|
$req = HTTP::Request->new('GET', "$uri/api/$relname/");
|
|
|
|
$req = HTTP::Request->new('GET', "$uri/api/$relname/");
|
|
|
|
|