Skip to content

Commit

Permalink
- Fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
rathnapandi committed Oct 9, 2024
1 parent 1bb18a9 commit 5aa928d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<APIMethod> apiMethods = getAllMethodsForAPI(apiId);
if (apiMethods.isEmpty()) {
LOG.warn("No operations found for API with id: {}", apiId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,12 @@
<configuration>
<!-- Skips integration tests if the value of skip.integration.tests property is true -->
<skipTests>${skip.integration.tests}</skipTests>
<!--excludes>
<excludes>
<exclude>**/ValidateAppQuotaStaysTestIT.java</exclude>
<exclude>**/DontOverwriteManualQuotaTestIT.java</exclude>
<exclude>**/QuotaModeReplaceTestIT.java</exclude>
<exclude>**/ReCreateAPIQuotaStaysTestIT.java</exclude>
</excludes-->
</excludes>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 5aa928d

Please sign in to comment.