Skip to content

Commit

Permalink
- fix issue #417 junit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rathnapandi committed Sep 19, 2023
1 parent 3d2bf0e commit bdc969e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -607,13 +607,13 @@ public void loadAPIIncludingClientApps() throws IOException {

@Test
public void pollCatalog() throws AppException {
boolean status = apiManagerAPIAdapter.pollCatalogForPublishedState("d90122a7-9f47-420c-85ca-926125ea7bf6", "Test-App-API2-4618", "published");
boolean status = apiManagerAPIAdapter.pollCatalogForPublishedState("e4ded8c8-0a40-4b50-bc13-552fb7209150", "Test-App-API2-4618", "published");
Assert.assertTrue(status);
}

@Test
public void pollCatalogUnpublished() throws AppException {
boolean status = apiManagerAPIAdapter.pollCatalogForPublishedState("d90122a7-9f47-420c-85ca-926125ea7bf6", "Test-App-API2-4618", "unpublished");
boolean status = apiManagerAPIAdapter.pollCatalogForPublishedState("e4ded8c8-0a40-4b50-bc13-552fb7209150", "Test-App-API2-4618", "unpublished");
Assert.assertTrue(status);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "d90122a7-9f47-420c-85ca-926125ea7bf6",
"id": "e4ded8c8-0a40-4b50-bc13-552fb7209150",
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"deprecated": false,
"apiVersion": "1.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"request": {
"method": "GET",
"url": "/api/portal/v1.4/discovery/swagger/api/id/d90122a7-9f47-420c-85ca-926125ea7bf6"
"url": "/api/portal/v1.4/discovery/swagger/api/id/e4ded8c8-0a40-4b50-bc13-552fb7209150"
},
"response": {
"status": 200,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void execute(APIChangeState changes, boolean reCreation) throws AppExcept
// In case, the existing API is already in use (Published), we have to grant access to our new imported API
apiAdapter.upgradeAccessToNewerAPI(createdAPI, actualAPI);
}
if(apiAdapter.pollCatalogForPublishedState(createdAPI.getApiId(), createdAPI.getName(), createdAPI.getState())) {
if(apiAdapter.pollCatalogForPublishedState(createdAPI.getId(), createdAPI.getName(), createdAPI.getState())) {
// Is a Quota is defined we must manage it
new APIQuotaManager(desiredAPI, actualAPI).execute(createdAPI);
// Grant access to the API
Expand Down

0 comments on commit bdc969e

Please sign in to comment.