Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BRMO-250] testcase stabiliseren #1642

Merged
merged 3 commits into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions brmo-loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,24 @@
</plugins>
</build>
</profile>
<profile>
<id>postgresql-github</id>
<activation>
<property>
<name>env.CI</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<excludedGroups>skip-flakey-pgsql-github</excludedGroups>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
Expand Down Expand Up @@ -57,7 +58,11 @@
* voor Oracle.
*
* @author mprins
*
* @todo Deze test draait niet op github omdat er nogal eens een database fout optreed.
*
*/
@Tag("skip-flakey-pgsql-github")
class Brk2StandMutatieGedeeldeStukkenVerwerkingIntegrationTest extends AbstractDatabaseIntegrationTest {

private static final Log LOG = LogFactory.getLog(Brk2StandMutatieGedeeldeStukkenVerwerkingIntegrationTest.class);
Expand Down Expand Up @@ -88,7 +93,7 @@ static Stream<Arguments> argumentsProvider() {
// stukken NL.IMKAD.TIAStuk:20020924000346 en NL.IMKAD.TIAStuk:20081017002053 worden gedeeld in de stand
Stream.of("NL.IMKAD.TIAStuk:20020924000346", "NL.IMKAD.TIAStuk:20081017002053", /*2e*/ "NL.IMKAD.TIAStuk:18011026015603", "NL.IMKAD.TIAStuk:20020924000346", "NL.IMKAD.TIAStuk:20081017002053").collect(Collectors.toCollection(HashSet::new)),
// stukdeel NL.IMKAD.Stukdeel:AKR1.10630844 wordt gedeeld in de stand
// stukdeel NL.IMKAD.Stukdeel:1022805638 komt uit 1e bericht
// stukdeel NL.IMKAD.Stukdeel:1022805638 komt uit 1e bericht/53880252670000
Stream.of("NL.IMKAD.Stukdeel:1022805638", "NL.IMKAD.Stukdeel:AKR1.10630844",/*2e*/"NL.IMKAD.TIAStuk:20081017002053", "NL.IMKAD.Stukdeel:AKR1.10630844", "NL.IMKAD.Stukdeel:AKR1.10754757").collect(Collectors.toCollection(HashSet::new)),
// mutaties
Stream.of("NL.IMKAD.ZakelijkRecht:50036403", "NL.IMKAD.Tenaamstelling:1013515840", "NL.IMKAD.Tenaamstelling:1013515841", /*2*/"NL.IMKAD.ZakelijkRecht:50036398", "NL.IMKAD.Tenaamstelling:1013515838", "NL.IMKAD.Tenaamstelling:1013515839", "NL.IMKAD.Aantekening:50007474").collect(Collectors.toCollection(HashSet::new)),
Expand Down Expand Up @@ -198,9 +203,10 @@ void testBerichten(
bestandenLadenEnValideren(objectRefs, 0, bestandNamen);
// voor stand, maar op volgorde van database
brmo.setOrderBerichten(false);
brmo.setEnablePipeline(false);
brmo.setBatchCapacity(1);
brmo.setTransformPipelineCapacity(1);
// brmo.setEnablePipeline(true);
// brmo.setTransformPipelineCapacity(2);
// brmo.setBatchCapacity(1);
// brmo.setLimitStandBerichtenToTransform(1);
transformerenEnValideren(bestandNamen.length);

// controle BRK inhoud stand
Expand Down Expand Up @@ -365,7 +371,7 @@ private void checkIdentificatiesEnAantal(ITable tableToCheck, Set<String> expect


private void transformerenEnValideren(int expected) throws BrmoException, InterruptedException {
LOG.info("Transformeren berichten naar rsgb DB met optie 'orderberichten='" + brmo.isOrderBerichten());
LOG.info("Transformeren berichten naar rsgb DB met optie 'orderberichten': " + brmo.isOrderBerichten());
Thread t = brmo.toRsgb();
t.join();

Expand Down