james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matth...@apache.org
Subject svn commit: r1712000 - in /james/project/trunk/server/data: data-file/src/test/java/org/apache/james/rrt/file/RewriteTablesTest.java data-library/src/test/resources/cucumber/rewrite_tables.feature
Date Mon, 02 Nov 2015 13:50:08 GMT
Author: matthieu
Date: Mon Nov  2 13:50:07 2015
New Revision: 1712000

URL: http://svn.apache.org/viewvc?rev=1712000&view=rev
Log:
JAMES-1598 XML rewrite table can execute read only tests

Modified:
    james/project/trunk/server/data/data-file/src/test/java/org/apache/james/rrt/file/RewriteTablesTest.java
    james/project/trunk/server/data/data-library/src/test/resources/cucumber/rewrite_tables.feature

Modified: james/project/trunk/server/data/data-file/src/test/java/org/apache/james/rrt/file/RewriteTablesTest.java
URL: http://svn.apache.org/viewvc/james/project/trunk/server/data/data-file/src/test/java/org/apache/james/rrt/file/RewriteTablesTest.java?rev=1712000&r1=1711999&r2=1712000&view=diff
==============================================================================
--- james/project/trunk/server/data/data-file/src/test/java/org/apache/james/rrt/file/RewriteTablesTest.java
(original)
+++ james/project/trunk/server/data/data-file/src/test/java/org/apache/james/rrt/file/RewriteTablesTest.java
Mon Nov  2 13:50:07 2015
@@ -18,17 +18,16 @@
  ****************************************************************/
 package org.apache.james.rrt.file;
 
-import org.junit.Ignore;
 import org.junit.runner.RunWith;
 
 import cucumber.api.CucumberOptions;
 import cucumber.api.junit.Cucumber;
 
-@Ignore("addMappingInternal not implemented")
 @RunWith(Cucumber.class)
 @CucumberOptions(
         features = { "classpath:cucumber/" },
-        glue = { "org.apache.james.rrt.lib", "org.apache.james.rrt.file" }
+        glue = { "org.apache.james.rrt.lib", "org.apache.james.rrt.file" },
+        tags = { "@readonly" }
     )
 public class RewriteTablesTest {
 }

Modified: james/project/trunk/server/data/data-library/src/test/resources/cucumber/rewrite_tables.feature
URL: http://svn.apache.org/viewvc/james/project/trunk/server/data/data-library/src/test/resources/cucumber/rewrite_tables.feature?rev=1712000&r1=1711999&r2=1712000&view=diff
==============================================================================
--- james/project/trunk/server/data/data-library/src/test/resources/cucumber/rewrite_tables.feature
(original)
+++ james/project/trunk/server/data/data-library/src/test/resources/cucumber/rewrite_tables.feature
Mon Nov  2 13:50:07 2015
@@ -1,5 +1,6 @@
 Feature: Rewrite Tables tests
 
+  @readonly
   Scenario: rewrite tables should be empty when none defined
     Then mappings should be empty
 
@@ -25,6 +26,7 @@ Feature: Rewrite Tables tests
     When user "test" at domain "localhost" removes a regexp mapping "(.+)@test"
     Then mappings for user "test" at domain "localhost" should contains only "regex:(.*)@localhost"
 
+  @readonly
   Scenario: storing an invalid regexp mapping should not work
     When store an invalid ".*):" regexp mapping for user "test" at domain "localhost"
     Then a "RecipientRewriteTableException" exception should have been thrown



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message