This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 78e0f36db0 Add test cases
78e0f36db0 is described below
commit 78e0f36db0e1813d70feb3c3b45a4b0af2a24d51
Author: Mark Thomas <[email protected]>
AuthorDate: Sat Oct 3 16:08:39 2026 +0100
Add test cases
Co-authored-by: Claude Sonnet 5.5
---
.../TestOpenSSLCipherConfigurationParser.java | 36 ++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git
a/test/org/apache/tomcat/util/net/openssl/ciphers/TestOpenSSLCipherConfigurationParser.java
b/test/org/apache/tomcat/util/net/openssl/ciphers/TestOpenSSLCipherConfigurationParser.java
index a7ace8f22c..a01e8ba384 100644
---
a/test/org/apache/tomcat/util/net/openssl/ciphers/TestOpenSSLCipherConfigurationParser.java
+++
b/test/org/apache/tomcat/util/net/openssl/ciphers/TestOpenSSLCipherConfigurationParser.java
@@ -544,6 +544,42 @@ public class TestOpenSSLCipherConfigurationParser {
}
+ @Test
+ public void testReAddAfterRemove() throws Exception {
+ testSpecification("AES256:AES128:-AES256:AES");
+ }
+
+
+ @Test
+ public void testReAddMultipleRemovalsOrder() throws Exception {
+ testSpecification("AES128:AES256:-AES256:-AES128:AES");
+ }
+
+
+ @Test
+ public void testExcludeBeatsReAdd() throws Exception {
+ testSpecification("AES:-AES256:!AES256:AES");
+ }
+
+
+ @Test
+ public void testReAddViaIntersection() throws Exception {
+ testSpecification("AES256:AES128:-AES256:AES+AESGCM");
+ }
+
+
+ @Test
+ public void testReAddAfterMoveToEnd01() throws Exception {
+ testSpecification("AES128-SHA:AES256-SHA:+AES128-SHA:-AES:AES");
+ }
+
+
+ @Test
+ public void testReAddAfterMoveToEnd02() throws Exception {
+ testSpecification("AES128-SHA:AES256-SHA:-AES128-SHA:+AES128-SHA:AES");
+ }
+
+
private void testSpecification(String specification) throws Exception {
// Filter out cipher suites that OpenSSL does not implement
String openSSLCipherList =
TesterOpenSSL.getOpenSSLCiphersAsExpression(specification);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]