Skip to content

Commit

Permalink
[SELC-4371] fix: Added originId into response of get Onboardings by f…
Browse files Browse the repository at this point in the history
…ilters API
  • Loading branch information
pierpaolodidato89 authored Jun 28, 2024
1 parent 932fe9a commit 80d80c4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/onboarding-ms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
<dependency>
<groupId>it.pagopa.selfcare</groupId>
<artifactId>onboarding-sdk-common</artifactId>
<version>0.1.14</version>
<version>0.1.16</version>
<scope>compile</scope>
</dependency>

Expand Down
3 changes: 3 additions & 0 deletions apps/onboarding-ms/src/main/docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,9 @@
"origin" : {
"$ref" : "#/components/schemas/Origin"
},
"originId" : {
"type" : "string"
},
"city" : {
"type" : "string"
},
Expand Down
2 changes: 2 additions & 0 deletions apps/onboarding-ms/src/main/docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,8 @@ components:
$ref: "#/components/schemas/InstitutionPaSubunitType"
origin:
$ref: "#/components/schemas/Origin"
originId:
type: string
city:
type: string
country:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class InstitutionResponse {
private String subunitCode;
private InstitutionPaSubunitType subunitType;
private Origin origin;
private String originId;
private String city;
private String country;
private String county;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1529,10 +1529,10 @@ void onboardingUsersWithInstitutionNotFound() {

@Test
void testInstitutionOnboardings() {
Onboarding onboarding1 = mock(Onboarding.class);
Onboarding onboarding = mock(Onboarding.class);
PanacheMock.mock(Onboarding.class);
ReactivePanacheQuery query = Mockito.mock(ReactivePanacheQuery.class);
when(query.stream()).thenReturn(Multi.createFrom().item(onboarding1));
when(query.stream()).thenReturn(Multi.createFrom().item(onboarding));
when(Onboarding.find(any())).thenReturn(query);
UniAssertSubscriber<List<OnboardingResponse>> subscriber = onboardingService
.institutionOnboardings("taxCode", "subunitCode", "origin", "originId", OnboardingStatus.PENDING)
Expand Down

0 comments on commit 80d80c4

Please sign in to comment.