diff --git a/modules/apim-adapter/src/main/java/com/axway/apim/adapter/apis/APIManagerAPIMethodAdapter.java b/modules/apim-adapter/src/main/java/com/axway/apim/adapter/apis/APIManagerAPIMethodAdapter.java index 69a8dce7a..4c9b300b9 100644 --- a/modules/apim-adapter/src/main/java/com/axway/apim/adapter/apis/APIManagerAPIMethodAdapter.java +++ b/modules/apim-adapter/src/main/java/com/axway/apim/adapter/apis/APIManagerAPIMethodAdapter.java @@ -83,6 +83,8 @@ public APIMethod getMethodForName(String apiId, String methodName) throws AppExc } public APIMethod getMethodForId(String apiId, String methodId) throws AppException { + if(methodId.equals("*")) + return null; List apiMethods = getAllMethodsForAPI(apiId); if (apiMethods.isEmpty()) { LOG.warn("No operations found for API with id: {}", apiId); diff --git a/modules/apis/src/test/java/com/axway/apim/test/quota/ValidateAppQuotaStaysTestIT.java b/modules/apis/src/test/java/com/axway/apim/test/quota/ValidateAppQuotaStaysTestIT.java index eab71776c..c0d732b80 100644 --- a/modules/apis/src/test/java/com/axway/apim/test/quota/ValidateAppQuotaStaysTestIT.java +++ b/modules/apis/src/test/java/com/axway/apim/test/quota/ValidateAppQuotaStaysTestIT.java @@ -76,7 +76,7 @@ public void run() throws IOException, InterruptedException { + "{\"api\":\"${apiId}\",\"method\":\"${testMethodId}\",\"type\":\"throttle\",\"config\":{\"period\":\"day\",\"per\":2,\"messages\":100000}} " + "]," + "\"system\":false}")); - $(http().client(apiManager).receive().response(HttpStatus.OK)); + $(http().client(apiManager).receive().response(HttpStatus.CREATED)); $(echo("####### Enforce Re-Creation of API - Application quotas must stay #######")); variable(ImportTestAction.API_DEFINITION, "/com/axway/apim/test/files/basic/petstore2.json"); variable(ImportTestAction.API_CONFIG, "/com/axway/apim/test/files/quota/2_api-with-quota-app-subscription.json"); diff --git a/pom.xml b/pom.xml index 0eb494e89..1a8793591 100644 --- a/pom.xml +++ b/pom.xml @@ -313,12 +313,12 @@ ${skip.integration.tests} - +