Skip to content

Commit

Permalink
fix: edit dockerfile and baseurl (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
antocalo authored Dec 12, 2024
1 parent fae60c0 commit 700c5e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
2 changes: 1 addition & 1 deletion openapi/p4pa-pdnd.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 700c5e2

Please sign in to comment.