-
Notifications
You must be signed in to change notification settings - Fork 748
Add integration tests for application creation, role creation and API Authorization in sub organization #23424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
e2f8af6
to
057bbfa
Compare
… Authorization in sub organization
057bbfa
to
f1183e8
Compare
@@ -0,0 +1,66 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this required?
If need to be merged, add license header
@@ -0,0 +1,189 @@ | |||
package org.wso2.identity.integration.test.rest.api.server.application.management.v1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing license header. Fix other places as well
@@ -30,424 +30,426 @@ | |||
|
|||
<test name="is-tests-default-configuration" preserve-order="true" parallel="false" group-by-instances="true"> | |||
<classes> | |||
<class name="org.wso2.identity.integration.test.oauth2.OAuth2PKCETestCase"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uncomment the test cases
import java.util.Collections; | ||
import java.util.List; | ||
|
||
public class OrganizationOAuth2ApplicationManagementSuccessTest extends OrganizationManagementBaseTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing class comment
|
||
return new Object[][]{ | ||
{TestUserMode.SUPER_TENANT_ADMIN} | ||
// {TestUserMode.TENANT_ADMIN} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it commented for tenanted mode?
new JSONObject(readResource(AUTHORIZED_APIS_JSON, this.getClass()))); | ||
subOrgId = orgMgtRestClient.addOrganization(SUB_ORG_NAME); | ||
switchedM2MToken = orgMgtRestClient.switchM2MToken(subOrgId); | ||
orgMgtRestClient.addOrganizationUser("sub-org-user", "SubOrgUser@123"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from where will this user get deleted?
|
||
String body = readResource("create-basic-oauth2-application.json", this.getClass()); | ||
|
||
oAuth2RestClient.createApplicationInSubOrganization(body, switchedM2MToken); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from where does this application get deleted?
No description provided.