From f9baa5146ea1e2526064db96b4355b9fddb027bd Mon Sep 17 00:00:00 2001 From: ds-lcapellino Date: Thu, 29 Feb 2024 12:32:27 +0100 Subject: [PATCH] feature: 420 fix base url in EdcContractAgreementService --- .../contract/service/EdcContractAgreementServiceTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/irs-edc-client/src/test/java/org/eclipse/tractusx/irs/edc/client/contract/service/EdcContractAgreementServiceTest.java b/irs-edc-client/src/test/java/org/eclipse/tractusx/irs/edc/client/contract/service/EdcContractAgreementServiceTest.java index 4173982d95..0017d3c60b 100644 --- a/irs-edc-client/src/test/java/org/eclipse/tractusx/irs/edc/client/contract/service/EdcContractAgreementServiceTest.java +++ b/irs-edc-client/src/test/java/org/eclipse/tractusx/irs/edc/client/contract/service/EdcContractAgreementServiceTest.java @@ -59,7 +59,7 @@ class EdcContractAgreementServiceTest { @BeforeEach void setUp() { edcConfiguration.getControlplane().setEndpoint(new EdcConfiguration.ControlplaneConfig.EndpointConfig()); - edcConfiguration.getControlplane().getEndpoint().setData("https://irs-consumer-controlplane.dev.demo.catena-x.net/data"); + edcConfiguration.getControlplane().getEndpoint().setData("https://irs-consumer-controlplane.dev.demo.catena-x.net/data/management"); edcConfiguration.getControlplane().getEndpoint().setContractAgreements("/v2/contractagreements"); this.edcContractAgreementService = new EdcContractAgreementService(edcConfiguration, restTemplate); } @@ -90,7 +90,7 @@ void shouldReturnContractAgreements() throws ContractAgreementException { //THEN Mockito.verify(restTemplate) - .postForEntity(eq("https://irs-consumer-controlplane.dev.demo.catena-x.net/data/v2/contractagreements/request"), any(), + .postForEntity(eq("https://irs-consumer-controlplane.dev.demo.catena-x.net/data/management/v2/contractagreements/request"), any(), eq(EdcContractAgreementsResponse.class)); assertNotNull(contractAgreements); } @@ -109,7 +109,7 @@ void shouldThrowContractAgreementExceptionWhenResponseBodyIsEmtpy() { //THEN Mockito.verify(restTemplate) - .postForEntity(eq("https://irs-consumer-controlplane.dev.demo.catena-x.net/data/v2/contractagreements/request"), any(), + .postForEntity(eq("https://irs-consumer-controlplane.dev.demo.catena-x.net/data/management/v2/contractagreements/request"), any(), eq(EdcContractAgreementsResponse.class)); assertEquals("Empty message body on edc response: <200 OK OK,[]>", contractAgreementException.getMessage()); } @@ -134,7 +134,7 @@ void shouldReturnContractAgreementNegotiation() { //THEN Mockito.verify(restTemplate) - .getForEntity("https://irs-consumer-controlplane.dev.demo.catena-x.net/data/v2/contractagreements/contractAgreementId/negotiation", + .getForEntity("https://irs-consumer-controlplane.dev.demo.catena-x.net/data/management/v2/contractagreements/contractAgreementId/negotiation", ContractNegotiation.class); assertNotNull(contractAgreementNegotiation); }