From ab9d6408c8eae42d0c2b105b7509defed4e74b51 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Thu, 23 Mar 2017 15:07:42 +0100 Subject: [PATCH] TT#1678 Use returned interception id in soap test Change-Id: I3d2fda455f70652a8ad6cb7a4e2c8475f17f2490 --- sandbox/intercept-nusoap.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sandbox/intercept-nusoap.php b/sandbox/intercept-nusoap.php index 0ae80c4178..4ef52e6e9c 100644 --- a/sandbox/intercept-nusoap.php +++ b/sandbox/intercept-nusoap.php @@ -1,11 +1,11 @@ setCredentials('testuser', 'testpass', 'basic'); +$client->setCredentials('ngcpsoap', 'password', 'basic'); $error = $client->getError(); if($error) { echo "Error: " . $error; @@ -54,6 +54,7 @@ if($client->fault) { echo "\n\n\n"; } } +$id = $res; $res = $client->call('update_interception', array( @@ -63,7 +64,7 @@ $res = $client->call('update_interception', 'type' => 'admin' ), 'parameters' => array( - 'id' => 1, + 'id' => $res, 'data' => array( 'cc_required' => 1, 'iri_delivery' => array( @@ -143,7 +144,7 @@ $res = $client->call('delete_interception', 'type' => 'admin' ), 'parameters' => array( - 'id' => 1 + 'id' => $id ) ) ); @@ -176,7 +177,7 @@ $res = $client->call('get_interception_by_id', 'type' => 'admin' ), 'parameters' => array( - 'id' => 1 + 'id' => $id ) ) );