From 4c9369f8bd3ece2934548646e5876dcb6d5b4497 Mon Sep 17 00:00:00 2001 From: sadilchamishka Date: Thu, 19 Oct 2023 22:41:42 +0530 Subject: [PATCH] Fix organization creation test failure --- .../management/v1/OrganizationManagementBaseTest.java | 2 +- .../management/v1/OrganizationManagementSuccessTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/organization/management/v1/OrganizationManagementBaseTest.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/organization/management/v1/OrganizationManagementBaseTest.java index 09027596e68..2a1f2347a63 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/organization/management/v1/OrganizationManagementBaseTest.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/organization/management/v1/OrganizationManagementBaseTest.java @@ -156,7 +156,7 @@ private String createBaseOrg() { " \"name\": \"ABC Builders\",\n" + " \"description\": \"Building constructions\",\n" + " \"type\": \"TENANT\",\n" + - " \"parentId\": \"Super\",\n" + + " \"parentId\": \"10084a8d-113f-4211-a0d5-efe36b082211\",\n" + " \"attributes\": [\n" + " {\n" + " \"key\": \"Country\",\n" + diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/organization/management/v1/OrganizationManagementSuccessTest.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/organization/management/v1/OrganizationManagementSuccessTest.java index df59a76377a..e8d1d62a1f1 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/organization/management/v1/OrganizationManagementSuccessTest.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/organization/management/v1/OrganizationManagementSuccessTest.java @@ -72,7 +72,7 @@ public void createOrganization() throws Exception { if (OrganizationLevel.SUPER_ORGANIZATION.equals(this.organizationLevel)) { org = "Level1Org"; - parentId = SUPER_ORGANIZATION_NAME; + parentId = SUPER_ORGANIZATION_ID; } else { org = "Level2Org"; parentId = subOrganizationId;