Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbucket-pipelines committed Sep 16, 2024
2 parents 4a6409c + 10c1e2e commit a68c79e
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.46.0</version>
<version>2.47.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion interfaces/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.46.0</version>
<version>2.47.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
import be.vlaanderen.vip.magda.client.domeinservice.MagdaRegistrationInfo;
import jakarta.annotation.Nullable;
import jakarta.validation.constraints.NotNull;
import lombok.AccessLevel;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import lombok.*;

import java.util.UUID;

Expand Down Expand Up @@ -74,6 +71,9 @@ public MagdaServiceIdentification magdaServiceIdentification() {
protected void fillIn(MagdaDocument request, UUID requestId, MagdaRegistrationInfo magdaRegistrationInfo) {
fillInCommonFields(request, requestId, magdaRegistrationInfo);

request.setValue("//Inhoud/Bron", (source != null ? source : RR).getValue());
var sourceValue = source != null ? source : RR;
request.setValue("//Inhoud/Bron", sourceValue.getValue());

if (sourceValue == RR) { request.removeNode("//Inhoud/Criteria/OpvragingenKSZ"); }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
<Inhoud>
<Criteria>
<INSZ>INSZ</INSZ>
<OpvragingenKSZ>
<BasisPersoonsgegevens>1</BasisPersoonsgegevens>
</OpvragingenKSZ>
</Criteria>
<Bron>RR</Bron>
<Taal>nl</Taal>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ void setsFields() {

assertThat(requestDocument.getValue("//Inhoud/Criteria/INSZ"), is(equalTo(TestBase.TEST_INSZ)));
assertThat(requestDocument.getValue("//Inhoud/Bron"), is(equalTo("RR")));
assertNull(requestDocument.getValue("//Inhoud/Criteria/OpvragingenKSZ"));
assertNull(requestDocument.getValue("//Inhoud/Criteria/OpvragingenKSZ/BasisPersoonsgegevens"));
}

@Test
Expand All @@ -108,6 +110,7 @@ void setsFields_withCustomSource() {

assertThat(requestDocument.getValue("//Inhoud/Criteria/INSZ"), is(equalTo(TestBase.TEST_INSZ)));
assertThat(requestDocument.getValue("//Inhoud/Bron"), is(equalTo("KSZ")));
assertThat(requestDocument.getValue("//Inhoud/Criteria/OpvragingenKSZ/BasisPersoonsgegevens"), is(equalTo("1")));
}
}
}
2 changes: 1 addition & 1 deletion magdaconnector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.46.0</version>
<version>2.47.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion magdamock-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.46.0</version>
<version>2.47.0</version>
</parent>
<artifactId>magdamock-starter</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion magdamock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.46.0</version>
<version>2.47.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion magdaservice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.46.0</version>
<version>2.47.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>be.vlaanderen.vip.mock</groupId>
<artifactId>magda</artifactId>
<version>2.46.0</version>
<version>2.47.0</version>
<name>magdaservice</name>
<description>MAGDA diensten Mock voor afnemers</description>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion signing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.46.0</version>
<version>2.47.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion tester/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.46.0</version>
<version>2.47.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down

0 comments on commit a68c79e

Please sign in to comment.