diff options
author | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-20 13:44:00 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-20 13:56:34 +0200 |
commit | 2e3005c471ba6520b17438c93f4a36369cbc3acd (patch) | |
tree | 90d3d6c4a9acbf323512d201f62b5bf1c8df3480 /jrt/tests | |
parent | 6c9dcea0e9c3b9dd3a1b8979c84d2d2fe5b17e4c (diff) |
Implement RequireCapabilitiesFilter in jrt + misc
Add peerSpec to Target/Connection. Always provide ConnectionAuthContext.
Add helper for creating default, all-granting ConnectionAuthContext.
Diffstat (limited to 'jrt/tests')
-rw-r--r-- | jrt/tests/com/yahoo/jrt/EchoTest.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/jrt/tests/com/yahoo/jrt/EchoTest.java b/jrt/tests/com/yahoo/jrt/EchoTest.java index e65422bc66e..47c6e806635 100644 --- a/jrt/tests/com/yahoo/jrt/EchoTest.java +++ b/jrt/tests/com/yahoo/jrt/EchoTest.java @@ -16,7 +16,6 @@ import java.util.List; import static com.yahoo.jrt.CryptoUtils.createTestTlsContext; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; @RunWith(Parameterized.class) @@ -147,7 +146,7 @@ public class EchoTest { for (int i = 0; i < p.size(); i++) { r.add(p.get(i)); } - connAuthCtx = req.target().getConnectionAuthContext().orElse(null); + connAuthCtx = req.target().connectionAuthContext(); } @org.junit.Test @@ -168,8 +167,6 @@ public class EchoTest { if (connAuthCtxAssertion != null) { assertNotNull(connAuthCtx); connAuthCtxAssertion.assertConnectionAuthContext(connAuthCtx); - } else { - assertNull(connAuthCtx); } } } |