From 0c573e41843f072666644a88ca3366fc211da683 Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Thu, 3 Aug 2017 10:17:11 +0200 Subject: [PATCH] TT#19760 customer.t diags fix Change-Id: I9dd1536839122b1a2aa5f929e98cf018eae1857f --- t/api-rest/api-customers.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/api-rest/api-customers.t b/t/api-rest/api-customers.t index 489c0f072e..e33cbb7c37 100644 --- a/t/api-rest/api-customers.t +++ b/t/api-rest/api-customers.t @@ -230,6 +230,7 @@ my @allcustomers = (); if(ref $collection->{_links}->{'ngcp:customers'} eq "HASH") { delete $customers{$collection->{_links}->{'ngcp:customers'}->{href}}; diag('drop ' . $collection->{_links}->{'ngcp:customers'}->{href}); + my $item = get_embedded_item($collection,'customers'); ok( $item->{type} eq "sipaccount" || $item->{type} eq "pbxaccount", "check for correct customer contract type"); ok($item->{status} ne "terminated", "check if we don't have terminated customers in response"); ok(exists $item->{_links}->{'ngcp:customercontacts'}, "check presence of ngcp:customercontacts relation");