@@ -517,8 +517,8 @@ void test17DiscoverDomainWithRequiredArgument(TestInfo testInfo) throws Exceptio
517
517
+ " -archive_file " + discoveredArchive
518
518
+ " -domain_type RestrictedJRF" ;
519
519
CommandResult result = Runner .run (cmd , getTestMethodEnvironment (testInfo ), out );
520
-
521
- verifyResult ( result , "discoverDomain.sh completed successfully " );
520
+ // SecurityConfiguration warning
521
+ assertEquals ( 1 , result . exitValue () , "Unexpected return code " );
522
522
523
523
// unzip discoveredArchive.zip
524
524
cmd = "unzip -o " + discoveredArchive + " -d " + getTestOutputPath (testInfo );
@@ -561,8 +561,8 @@ void test18DiscoverDomainWithModelFile(TestInfo testInfo) throws Exception {
561
561
" -model_file " + discoveredModelFile ;
562
562
try (PrintWriter out = getTestMethodWriter (testInfo )) {
563
563
CommandResult result = Runner .run (cmd , getTestMethodEnvironment (testInfo ), out );
564
-
565
- verifyResult ( result , "discoverDomain.sh completed successfully " );
564
+ // SecurityConfiguration warning
565
+ assertEquals ( 1 , result . exitValue () , "Unexpected return code " );
566
566
567
567
// verify model file
568
568
verifyModelFile (discoveredModelFile .toString ());
@@ -593,7 +593,8 @@ void test19DiscoverDomainWithVariableFile(TestInfo testInfo) throws Exception {
593
593
594
594
try (PrintWriter out = getTestMethodWriter (testInfo )) {
595
595
CommandResult result = Runner .run (cmd , getTestMethodEnvironment (testInfo ), out );
596
- verifyResult (result , "discoverDomain.sh completed successfully" );
596
+ // SecurityConfiguration warning
597
+ assertEquals (1 , result .exitValue (), "Unexpected return code" );
597
598
598
599
// verify model file and variable file
599
600
verifyModelFile (discoveredModelFile .toString ());
@@ -643,8 +644,8 @@ void test20DiscoverDomainJRFDomainType(TestInfo testInfo) throws Exception {
643
644
+ " -domain_type JRF" ;
644
645
645
646
CommandResult result = Runner .run (cmd , getTestMethodEnvironment (testInfo ), out );
646
-
647
- verifyResult ( result , "discoverDomain.sh completed successfully " );
647
+ // SecurityConfiguration warning
648
+ assertEquals ( 1 , result . exitValue () , "Unexpected return code " );
648
649
649
650
// verify model file
650
651
verifyModelFile (discoveredModelFile .toString ());
@@ -1034,8 +1035,8 @@ void test32PrepareModel(TestInfo testInfo) throws Exception {
1034
1035
+ " -target " + "wko" ;
1035
1036
1036
1037
CommandResult result = Runner .run (cmd , getTestMethodEnvironment (testInfo ), out );
1037
-
1038
- verifyResult ( result , "prepareModel.sh completed successfully " );
1038
+ // ListenPort differences warning
1039
+ assertEquals ( 1 , result . exitValue () , "Unexpected return code " );
1039
1040
1040
1041
// verify model file
1041
1042
String tempWkoModel = outputFiles + FS + "simple-topology-targetwko.yaml" ;
0 commit comments