From d6d3d88a05f728400c868acfc6436ae47be83115 Mon Sep 17 00:00:00 2001 From: vimukthiRajapaksha Date: Thu, 14 Nov 2024 09:32:45 +0530 Subject: [PATCH] Add integration tests to cover RAR functionalities --- .../src/main/webapp/WEB-INF/beans.xml | 1 + modules/distribution/pom.xml | 4 + modules/distribution/src/assembly/bin.xml | 7 + ...thorizationRequestsGrantTypesTestCase.java | 833 ++++++++++++++++++ ...uth2RichAuthorizationRequestsTestCase.java | 250 ++++++ .../v1/model/APIResourcePatchModel.java | 246 ++++++ .../v1/model/APIResourceResponse.java | 26 + .../v1/model/AuthorizationDetailsType.java | 202 +++++ .../v1/model/AuthorizedAPICreationModel.java | 25 +- .../v1/model/AuthorizedAPIPatchModel.java | 200 +++++ .../v1/model/AuthorizedAPIResponse.java | 44 +- .../test/restclients/OAuth2RestClient.java | 238 +++++ .../test/utils/OAuth2Constant.java | 1 + .../utils/RichAuthorizationRequestsUtils.java | 162 ++++ .../src/test/resources/testng.xml | 2 + pom.xml | 14 +- 16 files changed, 2249 insertions(+), 6 deletions(-) create mode 100644 modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oauth2/OAuth2RichAuthorizationRequestsGrantTypesTestCase.java create mode 100644 modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oauth2/OAuth2RichAuthorizationRequestsTestCase.java create mode 100644 modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/api/resource/v1/model/APIResourcePatchModel.java create mode 100644 modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/api/resource/v1/model/AuthorizationDetailsType.java create mode 100644 modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/application/management/v1/model/AuthorizedAPIPatchModel.java create mode 100644 modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/utils/RichAuthorizationRequestsUtils.java diff --git a/modules/api-resources/api-resources-full/src/main/webapp/WEB-INF/beans.xml b/modules/api-resources/api-resources-full/src/main/webapp/WEB-INF/beans.xml index d0a76acd922..66efce94cb2 100644 --- a/modules/api-resources/api-resources-full/src/main/webapp/WEB-INF/beans.xml +++ b/modules/api-resources/api-resources-full/src/main/webapp/WEB-INF/beans.xml @@ -147,6 +147,7 @@ + diff --git a/modules/distribution/pom.xml b/modules/distribution/pom.xml index a7d623a3773..71dce3b4c36 100755 --- a/modules/distribution/pom.xml +++ b/modules/distribution/pom.xml @@ -58,6 +58,10 @@ org.slf4j slf4j-simple + + io.vertx + vertx-json-schema + org.wso2.org.ops4j.pax.logging @@ -2365,7 +2370,7 @@ - 7.6.7 + 7.6.8-SNAPSHOT [5.14.67, 8.0.0) @@ -2386,7 +2391,7 @@ - 7.0.190 + 7.0.191-SNAPSHOT 5.11.45 5.10.2 5.11.12 @@ -2477,7 +2482,7 @@ 2.0.17 - 1.2.251 + 1.2.252-SNAPSHOT 1.3.45 5.5.9 @@ -2490,7 +2495,7 @@ 2.34.25 2.13.1 - 2.7.4 + 2.7.7-SNAPSHOT 1.6.378 @@ -2529,6 +2534,7 @@ 2.0.0-wso2v42 2.2.224.wso2v2 1.7.28 + 4.5.10 2.2.2