Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed May 24, 2024
1 parent c4ab7e7 commit 4ba0a23
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,26 +192,16 @@ private static ConfigGenerator.GeneratedValueAndExpectation generateForBoxy(bool
);
} else {
String EXPECTED_ERROR = "a non empty string value must be specified for boxyURL in the additionalConfig for Boxy SAML provider";
int option = new Random().nextInt(5);
int option = new Random().nextInt(3);
switch (option) {
case 0:
return new ConfigGenerator.GeneratedValueAndExpectation(
null,
new ConfigGenerator.Expectation("exception", EXPECTED_ERROR)
);
case 1:
return new ConfigGenerator.GeneratedValueAndExpectation(
new JsonObject(),
new ConfigGenerator.Expectation("exception", EXPECTED_ERROR)
);
case 2:
JsonObject result = new JsonObject();
result.add("boxyURL", null);
return new ConfigGenerator.GeneratedValueAndExpectation(
result,
new ConfigGenerator.Expectation("exception", EXPECTED_ERROR)
);
case 3:
case 1:
result = new JsonObject();
result.add("boxyURL", new JsonPrimitive(""));
return new ConfigGenerator.GeneratedValueAndExpectation(
Expand Down

0 comments on commit 4ba0a23

Please sign in to comment.