Skip to content

Commit

Permalink
skip legacy security domain configuration in versions that support on…
Browse files Browse the repository at this point in the history
…ly Elytron in ChangeOrbOnlineTest
  • Loading branch information
simkam authored and jstourac committed Jun 28, 2023
1 parent 50724a7 commit 35657dc
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,17 @@ public void changeAll() throws Exception {
.transactions(TransactionValues.ON)
.rootContext("supported")
.exportCorbaloc(false)
.securityDomain("other")
.addComponentViaInterceptor(false)
.clientSupports(AuthValues.NONE)
.clientRequires(AuthValues.CLIENT_AUTH)
.serverSupports(AuthValues.NONE)
.serverRequires(AuthValues.CLIENT_AUTH);

if (onlineClient.version().lessThanOrEqualTo(ServerVersion.VERSION_18_0_0)) {
// legacy security was removed in WF25
cmdBuilder.securityDomain("other");
}

if (isIiop) {
cmdBuilder
.integrity(SupportedValues.SUPPORTED)
Expand All @@ -107,7 +112,9 @@ public void changeAll() throws Exception {
assertEquals("supported", attributes.get("root-context"));
assertEquals("jacorb", attributes.get("socket-binding"));
assertEquals("jacorb-ssl", attributes.get("ssl-socket-binding"));
assertEquals("other", attributes.get("security-domain"));
if (onlineClient.version().lessThanOrEqualTo(ServerVersion.VERSION_18_0_0)) {
assertEquals("other", attributes.get("security-domain"));
}
assertEquals("ClientAuth", attributes.get("client-requires"));
assertEquals("None", attributes.get("server-supports"));
assertEquals("ClientAuth", attributes.get("server-requires"));
Expand Down

0 comments on commit 35657dc

Please sign in to comment.