TT#76111 - Remove '/api/interceptions' from tests

* There will no longer be a default LI admin
	   so the tests on /api/interceptions will fail

Change-Id: I81a37f377df8905d166a0c300936d67b55b460a1
changes/37/40637/1
Flaviu Mates 5 years ago
parent a370111540
commit f52dd7086d

@ -39,6 +39,8 @@ $ua = Test::Collection->new()->ua();
my $rex = qr!^</api/[a-z]+/>; rel="collection http://purl\.org/sipwise/ngcp-api/#rel-([a-z]+s|topupcash|managersecretary)"$!;
foreach my $link(@links) {
(my ($relname)) = ($link =~ $rex);
# skip interceptions since there is no longer an LI admin by default
next if $relname eq "interceptions";
# now get this rel
$req = HTTP::Request->new('OPTIONS', "$uri/api/$relname/");
$res = $ua->request($req);

@ -119,26 +119,6 @@
is:
code: 200
#check options for /api/interceptions/
-
name: check OPTIONS for /api/interceptions/
type: item
method: OPTIONS
path: /api/interceptions/
conditions:
is:
code: 200
#GET /api/interceptions/
-
name: GET /api/interceptions/
type: item
method: GET
path: /api/interceptions/
conditions:
is:
code: 200
#check options for /api/reminders/
-
name: check OPTIONS for /api/reminders/

Loading…
Cancel
Save