From 700c5e2f0125e037e7dbb98e64109f8d7c2f13bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Cal=C3=B2?= Date: Thu, 12 Dec 2024 16:43:15 +0100 Subject: [PATCH] fix: edit dockerfile and baseurl (#14) --- Dockerfile | 4 ++++ openapi/p4pa-pdnd.openapi.yaml | 2 +- .../pdnd/anpr/controller/PdndServiceControllerTest.java | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6822b33..3f2c5f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -106,6 +106,10 @@ RUN gradle openApiGeneratePayhub dependencies --no-daemon RUN gradle openApiGeneratePdndClient dependencies --no-daemon +RUN gradle openApiGenerateAnprApiC030 dependencies --no-daemon + +RUN gradle openApiGenerateAnprApiC003 dependencies --no-daemon + # # 🏗️ Build Stage # diff --git a/openapi/p4pa-pdnd.openapi.yaml b/openapi/p4pa-pdnd.openapi.yaml index 6820fe3..8cb96da 100644 --- a/openapi/p4pa-pdnd.openapi.yaml +++ b/openapi/p4pa-pdnd.openapi.yaml @@ -4,7 +4,7 @@ info: description: API and Models. version: 0.0.1 servers: - - url: "http://localhost:8080/p4papdnd" + - url: "http://localhost:8080" paths: /anpr-service-e002/citizen: get: diff --git a/src/test/java/it/gov/pagopa/payhub/pdnd/anpr/controller/PdndServiceControllerTest.java b/src/test/java/it/gov/pagopa/payhub/pdnd/anpr/controller/PdndServiceControllerTest.java index cd08dc5..d7a0c7a 100644 --- a/src/test/java/it/gov/pagopa/payhub/pdnd/anpr/controller/PdndServiceControllerTest.java +++ b/src/test/java/it/gov/pagopa/payhub/pdnd/anpr/controller/PdndServiceControllerTest.java @@ -43,7 +43,7 @@ void givenValidFiscalCodeWhenGetCitizenDataThenReturnCitizenDetails() throws Exc Mockito.when(pdndService.getCitizenData(fiscalCode)).thenReturn(citizen); - mockMvc.perform(get("/p4papdnd/anpr-service-e002/citizen") + mockMvc.perform(get("/anpr-service-e002/citizen") .param("fiscalCode", fiscalCode)) .andExpect(status().isOk()) .andExpect(jsonPath("$.firstName").value("Julieta"))