From f3c09383ab99d88edff9308a35d4f6fc9cf6c135 Mon Sep 17 00:00:00 2001 From: Nitin Vavdiya Date: Wed, 12 Jun 2024 12:43:29 +0530 Subject: [PATCH] chore: removed envs from dev asset and sonar fix --- dev-assets/env-files/env.docker.dist | 1 - dev-assets/env-files/env.local.dist | 1 - .../managedidentitywallets/vp/PresentationServiceTest.java | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/dev-assets/env-files/env.docker.dist b/dev-assets/env-files/env.docker.dist index aeedf42a1..e0ac25992 100644 --- a/dev-assets/env-files/env.docker.dist +++ b/dev-assets/env-files/env.docker.dist @@ -31,7 +31,6 @@ LOCAL_SIGNING_KEY_STORAGE_TYPE=DB KEYCLOAK_REALM=miw_test VC_SCHEMA_LINK="https://www.w3.org/2018/credentials/v1, https://catenax-ng.github.io/product-core-schemas/businessPartnerData.json" VC_EXPIRY_DATE=01-01-2025 -SUPPORTED_FRAMEWORK_VC_TYPES="PcfCredential, SustainabilityCredential, QualityCredential, TraceabilityCredential, BehaviorTwinCredential, ResiliencyCredential" MIW_HOST_NAME=localhost ENFORCE_HTTPS_IN_DID_RESOLUTION=false diff --git a/dev-assets/env-files/env.local.dist b/dev-assets/env-files/env.local.dist index 30c20135a..d7065338a 100644 --- a/dev-assets/env-files/env.local.dist +++ b/dev-assets/env-files/env.local.dist @@ -31,7 +31,6 @@ LOCAL_SIGNING_KEY_STORAGE_TYPE=DB KEYCLOAK_REALM=miw_test VC_SCHEMA_LINK="https://www.w3.org/2018/credentials/v1, https://catenax-ng.github.io/product-core-schemas/businessPartnerData.json" VC_EXPIRY_DATE=01-01-2025 -SUPPORTED_FRAMEWORK_VC_TYPES="PcfCredential, SustainabilityCredential, QualityCredential, TraceabilityCredential, BehaviorTwinCredential, ResiliencyCredential" MIW_HOST_NAME=localhost ENFORCE_HTTPS_IN_DID_RESOLUTION=false diff --git a/src/test/java/org/eclipse/tractusx/managedidentitywallets/vp/PresentationServiceTest.java b/src/test/java/org/eclipse/tractusx/managedidentitywallets/vp/PresentationServiceTest.java index cfe0c8199..31768e042 100644 --- a/src/test/java/org/eclipse/tractusx/managedidentitywallets/vp/PresentationServiceTest.java +++ b/src/test/java/org/eclipse/tractusx/managedidentitywallets/vp/PresentationServiceTest.java @@ -110,7 +110,7 @@ void createPresentation200ResponseAsJWT() { jtiRepository.save(jtiRecord); //issue BPN vc - VerifiableCredential bpnVc = TestUtils.issueCustomVCUsingBaseWallet(bpn, did, miwSettings.authorityWalletDid(), StringPool.BPN_CREDENTIAL, + TestUtils.issueCustomVCUsingBaseWallet(bpn, did, miwSettings.authorityWalletDid(), StringPool.BPN_CREDENTIAL, AuthenticationUtils.getValidUserHttpHeaders(miwSettings.authorityWalletBpn()), miwSettings, objectMapper, restTemplate); Map presentation = presentationService.createVpWithRequiredScopes(SignedJWT.parse(accessToken), asJwt);