Skip to content

Commit

Permalink
Add comments to clarify the visibility testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
Avishka-Shamendra committed Oct 3, 2024
1 parent ac2c746 commit 43f6bbc
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ public void initialize() throws Exception {
}


/**
* Although API visibility on the dev portal is restricted (eg, to the 'admin' role), if a user has the
* 'internal/publisher' role, the API should still be visible to them.
* This ensures that publishers can view all APIs of the organization on the publisher
*/
@Test(groups = {"wso2.am"}, description = "Test the visibility of API in Publisher for API creator ")
public void testVisibilityForCreatorInPublisher()
throws APIManagerIntegrationTestException, MalformedURLException, XPathExpressionException, ApiException {
Expand Down Expand Up @@ -270,7 +275,11 @@ public void testVisibilityForCreatorInPublisher()
getAPIIdentifierString(apiIdentifierSubscriberVisibility));
}


/**
* Although API visibility on the dev portal is restricted (eg, to the 'admin' role), if a user has the
* 'internal/publisher' role, the API should still be visible to them.
* This ensures that publishers can view all APIs of the organization on the devportal
*/
@Test(groups = {"wso2.am"}, description = "Test the visibility of API in Store for API creator",
dependsOnMethods = "testVisibilityForCreatorInPublisher")
public void testVisibilityForCreatorInStore()
Expand Down

0 comments on commit 43f6bbc

Please sign in to comment.