Skip to content

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ShanChathusanda93
Copy link
Contributor

No description provided.

@ShanChathusanda93 ShanChathusanda93 force-pushed the sub-org-app-integration-test-branch branch from e2f8af6 to 057bbfa Compare March 15, 2025 15:52
@ShanChathusanda93 ShanChathusanda93 force-pushed the sub-org-app-integration-test-branch branch from 057bbfa to f1183e8 Compare March 25, 2025 11:17
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Contributor

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;
Copy link
Contributor

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"/>
Copy link
Contributor

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 {
Copy link
Contributor

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}
Copy link
Contributor

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");
Copy link
Contributor

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);
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants