@@ -45,15 +45,19 @@ public void run(@Optional @CitrusResource TestContext context) throws IOExceptio
4545 .validate ("$.[?(@.path=='${apiPath}')].name" , "${apiName}" )
4646 .validate ("$.[?(@.path=='${apiPath}')].state" , "${state}" )
4747 .validate ("$.[?(@.path=='${apiPath}')].authenticationProfiles[?(@.name=='${outboundProfileName}')].type" , "http_basic" )
48- .extractFromPayload ("$.[?(@.path=='${apiPath}')].id" , "apiId" ));
48+ .extractFromPayload ("$.[?(@.path=='${apiPath}')].id" , "apiId" )
49+ .extractFromPayload ("$.[?(@.path=='${apiPath}')].apiId" , "backendApiId" )
50+ );
4951
5052 http (builder -> builder .client ("apiManager" ).send ().get ("/proxies/${apiId}/operations" ).header ("Content-Type" , "application/json" ));
5153 http (builder -> builder .client ("apiManager" ).receive ().response (HttpStatus .OK ).messageType (MessageType .JSON )
5254 .extractFromPayload ("$.[?(@.name=='getOrderById')].id" , "apiMethodId" ));
5355
5456 http (builder -> builder .client ("apiManager" ).send ().get ("/proxies/${apiId}" ).header ("Content-Type" , "application/json" ));
5557 http (builder -> builder .client ("apiManager" ).receive ().response (HttpStatus .OK ).messageType (MessageType .JSON )
56- .validate ("$.[?(@.id=='${apiId}')].outboundProfiles.${apiMethodId}.authenticationProfile" , "${outboundProfileName}" ));
58+ .validate ("$.[?(@.id=='${apiId}')].outboundProfiles.${apiMethodId}.authenticationProfile" , "${outboundProfileName}" )
59+ .validate ("$.[?(@.id=='${apiId}')].outboundProfiles.${apiMethodId}.apiId" , "${backendApiId}" )
60+ );
5761
5862 echo ("####### Perform a No-Change #######" );
5963 createVariable (ImportTestAction .API_DEFINITION , "/com/axway/apim/test/files/basic/petstore.json" );
0 commit comments