Skip to content

Commit

Permalink
- Fix junit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rathnapandi committed Mar 15, 2024
1 parent 49d3efa commit 1f8ff86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void testUniqueApiWithoutVhostAndQueryStringRouting() throws AppException
testAPIs.add(testAPI2);
testAPIs.add(testAPI3);

APIFilter filter = new APIFilter.Builder().hasApiPath("/api/v1/resource").hasVersion("3.0").build();
APIFilter filter = new APIFilter.Builder().hasApiPath("/api/v1/resource").hasState("published").hasVersion("3.0").build();

// Must fail (throw an Exception) as the API is really not unique, if we filter with the QueryVersion only
API uniqueAPI = apiManagerAPIAdapter.getUniqueAPI(testAPIs, filter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public int importAPI(APIImportParams params) {
.hasApiPath(desiredAPI.getPath())
.hasVHost(desiredAPI.getVhost())
.hasVersion(desiredAPI.getVersion())
.hasState(desiredAPI.getState())
.includeCustomProperties(desiredAPI.getCustomProperties())
.hasQueryStringVersion(desiredAPI.getApiRoutingKey())
.includeClientOrganizations(true) // We have to load clientOrganization, in case they have to be taken over
Expand Down

0 comments on commit 1f8ff86

Please sign in to comment.