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

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 0eecf3c0315e4cddc402a55c2263461897d7b863
Author: Rene Cordier <[email protected]>
AuthorDate: Mon Nov 4 16:20:39 2019 +0700

    JAMES-2950 Add test scenario for regex chaining
---
 .../data-library/src/test/resources/cucumber/rewrite_tables.feature  | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/server/data/data-library/src/test/resources/cucumber/rewrite_tables.feature 
b/server/data/data-library/src/test/resources/cucumber/rewrite_tables.feature
index bfc5d75..9e1a367 100644
--- 
a/server/data/data-library/src/test/resources/cucumber/rewrite_tables.feature
+++ 
b/server/data/data-library/src/test/resources/cucumber/rewrite_tables.feature
@@ -34,6 +34,11 @@ Feature: Rewrite Tables tests
     Given store "(.*)@localhost" regexp mapping for user "test" at domain 
"localhost"
     Then mappings for user "test" at domain "localhost" should be empty
 
+  Scenario: chained stored regexp mapping should be retrieved when two levels
+    Given store "(.*)@localhost:user@localhost" regexp mapping for user "test" 
at domain "localhost"
+    And store "use(.+)@localhost:final@localhost" regexp mapping for user 
"user" at domain "localhost"
+    Then mappings for user "test" at domain "localhost" should contain only 
"final@localhost"
+
 # Address mapping
 
   Scenario: stored address mapping should be retrieved when one mapping 
matching


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to