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

coheigea pushed a commit to branch camel-2.24.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 1e78be3249649df60f8100045f04d81d56f86155
Author: Colm O hEigeartaigh <cohei...@apache.org>
AuthorDate: Tue Jun 25 12:00:38 2019 +0100

    Fixing Zookeeper test that was previously removed
---
 .../camel/component/zookeeper/operations/CreateOperationTest.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-zookeeper/src/test/java/org/apache/camel/component/zookeeper/operations/CreateOperationTest.java
 
b/components/camel-zookeeper/src/test/java/org/apache/camel/component/zookeeper/operations/CreateOperationTest.java
index 48624c8..6b75d9e 100644
--- 
a/components/camel-zookeeper/src/test/java/org/apache/camel/component/zookeeper/operations/CreateOperationTest.java
+++ 
b/components/camel-zookeeper/src/test/java/org/apache/camel/component/zookeeper/operations/CreateOperationTest.java
@@ -16,7 +16,7 @@
  */
 package org.apache.camel.component.zookeeper.operations;
 
-import java.util.Collections;
+import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.camel.component.zookeeper.ZooKeeperTestSupport;
@@ -96,7 +96,9 @@ public class CreateOperationTest extends ZooKeeperTestSupport 
{
     public void createNodeWithSpecificAccess() throws Exception {
         CreateOperation create = new CreateOperation(connection, "/four");
         create.setData(testPayload.getBytes());
-        List<ACL> perms = Collections.singletonList(new ACL(Perms.CREATE, 
Ids.ANYONE_ID_UNSAFE));
+        List<ACL> perms = new ArrayList<>();
+        perms.add(new ACL(Perms.CREATE, Ids.ANYONE_ID_UNSAFE));
+        perms.add(new ACL(Perms.READ, Ids.ANYONE_ID_UNSAFE));
         create.setPermissions(perms);
 
         OperationResult<String> result = create.get();

Reply via email to