This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new 438f8c783f Add test cases
438f8c783f is described below

commit 438f8c783fe4e910ed190ca3f98c90018b36945f
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]

Reply via email to