From 7be7008f0095a693785cb048085e0c26598fa42f Mon Sep 17 00:00:00 2001 From: Alessio Gallitano <25105748+galales@users.noreply.github.com> Date: Fri, 3 May 2024 12:57:20 +0200 Subject: [PATCH] remove-unused-config: Remove unused configs --- src/main/resources/application-standalone.conf | 3 --- src/main/resources/application.conf | 3 --- .../common/system/ApplicationConfiguration.scala | 4 ---- src/test/resources/application-test.conf | 4 ---- 4 files changed, 14 deletions(-) diff --git a/src/main/resources/application-standalone.conf b/src/main/resources/application-standalone.conf index 25cc52de..89444118 100644 --- a/src/main/resources/application-standalone.conf +++ b/src/main/resources/application-standalone.conf @@ -27,11 +27,8 @@ agreement-process { } selfcare-v2-client-api-key = ${SELFCARE_V2_API_KEY} services { - catalog-management = "https://gateway.interop.pdnd.dev/catalog-management/0.1" agreement-management = "https://gateway.interop.pdnd.dev/agreement-management/0.1" - attribute-registry-management = "https://gateway.interop.pdnd.dev/attribute-registry-management/0.1" authorization-management = "https://gateway.interop.pdnd.dev/authorization-management/0.1" - tenant-management = "https://gateway.interop.pdnd.dev/tenant-management/0.1" party-process = "https://gateway.interop.pdnd.dev/party-process/0.1" selfcare-v2-client = "https://gateway.interop.pdnd.dev/userselfcare-v2-client/0.1" } diff --git a/src/main/resources/application.conf b/src/main/resources/application.conf index def9b463..e72a6326 100644 --- a/src/main/resources/application.conf +++ b/src/main/resources/application.conf @@ -27,10 +27,7 @@ agreement-process { } selfcare-v2-client-api-key = ${SELFCARE_V2_API_KEY} services { - catalog-management = ${CATALOG_MANAGEMENT_URL} - tenant-management = ${TENANT_MANAGEMENT_URL} agreement-management = ${AGREEMENT_MANAGEMENT_URL} - attribute-registry-management = ${ATTRIBUTE_REGISTRY_MANAGEMENT_URL} authorization-management = ${AUTHORIZATION_MANAGEMENT_URL} selfcare-v2-client = ${SELFCARE_V2_URL} } diff --git a/src/main/scala/it/pagopa/interop/agreementprocess/common/system/ApplicationConfiguration.scala b/src/main/scala/it/pagopa/interop/agreementprocess/common/system/ApplicationConfiguration.scala index 681af4d1..fa84663f 100644 --- a/src/main/scala/it/pagopa/interop/agreementprocess/common/system/ApplicationConfiguration.scala +++ b/src/main/scala/it/pagopa/interop/agreementprocess/common/system/ApplicationConfiguration.scala @@ -8,13 +8,9 @@ object ApplicationConfiguration { val serverPort: Int = config.getInt("agreement-process.port") val agreementManagementURL: String = config.getString("agreement-process.services.agreement-management") - val catalogManagementURL: String = config.getString("agreement-process.services.catalog-management") - val tenantManagementURL: String = config.getString("agreement-process.services.tenant-management") val authorizationManagementURL: String = config.getString("agreement-process.services.authorization-management") val selfcareV2ClientURL: String = config.getString("agreement-process.services.selfcare-v2-client") val jwtAudience: Set[String] = config.getString("agreement-process.jwt.audience").split(",").toSet.filter(_.nonEmpty) - val attributeRegistryManagementURL: String = - config.getString("agreement-process.services.attribute-registry-management") require(jwtAudience.nonEmpty, "Audience cannot be empty") diff --git a/src/test/resources/application-test.conf b/src/test/resources/application-test.conf index 71fd4299..7fd134ee 100644 --- a/src/test/resources/application-test.conf +++ b/src/test/resources/application-test.conf @@ -11,12 +11,8 @@ agreement-process { } selfcare-v2-client-api-key = "selfcare-v2-api-key" services { - catalog-management = "catalog-management" - tenant-management = "tenant-management" agreement-management = "agreement-management" - attribute-registry-management = "attribute-registry-management" authorization-management = "authorization-management" - tenant-management = "tenant-management" selfcare-v2-client = "selfcare-v2-client" }