sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject svn commit: r1579228 - /sling/trunk/contrib/extensions/replication/it/src/test/java/org/apache/sling/replication/it/DefaultAgentsTest.java
Date Wed, 19 Mar 2014 13:40:31 GMT
Author: tommaso
Date: Wed Mar 19 13:40:30 2014
New Revision: 1579228

URL: http://svn.apache.org/r1579228
Log:
SLING-3456 - improved default agent configurations IT to check for all the configs provided
by replication.core

Modified:
    sling/trunk/contrib/extensions/replication/it/src/test/java/org/apache/sling/replication/it/DefaultAgentsTest.java

Modified: sling/trunk/contrib/extensions/replication/it/src/test/java/org/apache/sling/replication/it/DefaultAgentsTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/replication/it/src/test/java/org/apache/sling/replication/it/DefaultAgentsTest.java?rev=1579228&r1=1579227&r2=1579228&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/replication/it/src/test/java/org/apache/sling/replication/it/DefaultAgentsTest.java
(original)
+++ sling/trunk/contrib/extensions/replication/it/src/test/java/org/apache/sling/replication/it/DefaultAgentsTest.java
Wed Mar 19 13:40:30 2014
@@ -28,8 +28,21 @@ import org.junit.Test;
 public class DefaultAgentsTest extends SlingTestBase {
 
     @Test
-    public void testDefaultAgents() throws IOException {
-        String path = "/libs/sling/replication/config/agent/publish.json";
+    public void testDefaultAgentConfigurations() throws IOException {
+        String[] defaultAgentConfigPaths = new String[]{
+                "/libs/sling/replication/config/agent/publish.json",
+                "/libs/sling/replication/config/agent/publish-reverse.json",
+                "/libs/sling/replication/config/agent/reverserepo.json",
+                "/libs/sling/replication/config/agent/author.json",
+                "/libs/sling/replication/config/agent/cache-flush.json"
+        };
+        for (String path : defaultAgentConfigPaths) {
+            assertResourceExists(path);
+        }
+
+    }
+
+    private void assertResourceExists(String path) throws IOException {
         getRequestExecutor().execute(
                 getRequestBuilder().buildGetRequest(path)
                         .withCredentials(getServerUsername(), getServerPassword())



Mime
View raw message