You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2018/05/22 20:26:39 UTC

[directory-studio] branch master updated: Add test for DIRSTUDIO-1151

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

seelmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-studio.git


The following commit(s) were added to refs/heads/master by this push:
     new 9db2af1  Add test for DIRSTUDIO-1151
9db2af1 is described below

commit 9db2af1f20dba6ab04f36d561c17a4f30c4dd1b9
Author: Stefan Seelmann <ma...@stefan-seelmann.de>
AuthorDate: Tue May 22 22:26:31 2018 +0200

    Add test for DIRSTUDIO-1151
---
 .../studio/test/integration/ui/BrowserTest.java        | 18 ++++++++++++++++++
 .../studio/test/integration/ui/BrowserTest.ldif        |  8 ++++++++
 2 files changed, 26 insertions(+)

diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/BrowserTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/BrowserTest.java
index d129f9a..355fc1e 100644
--- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/BrowserTest.java
+++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/BrowserTest.java
@@ -457,6 +457,24 @@ public class BrowserTest extends AbstractLdapTestUnit
 
 
     /**
+     * Test for DIRSTUDIO-1151: DN with backslash not displayed
+     */
+    @Test
+    public void testBrowseDnWithBackslash() throws Exception
+    {
+        // expand parent and verify entry is visible
+        browserViewBot.expandEntry( "DIT", "Root DSE", "ou=system", "ou=users" );
+        assertTrue( browserViewBot.existsEntry( "DIT", "Root DSE", "ou=system", "ou=users", "uid=user.0\\,foo" ) );
+        browserViewBot.selectEntry( "DIT", "Root DSE", "ou=system", "ou=users", "uid=user.0\\,foo" );
+
+        // refresh entry and verify child is still visible
+        browserViewBot.selectEntry( "DIT", "Root DSE", "ou=system", "ou=users" );
+        browserViewBot.refresh();
+        assertTrue( browserViewBot.existsEntry( "DIT", "Root DSE", "ou=system", "ou=users", "uid=user.0\\,foo" ) );
+    }
+
+
+    /**
      * Test for DIRSTUDIO-597.
      * (Modification sent to the server while browsing through the DIT and refreshing entries)
      *
diff --git a/tests/test.integration.ui/src/main/resources/org/apache/directory/studio/test/integration/ui/BrowserTest.ldif b/tests/test.integration.ui/src/main/resources/org/apache/directory/studio/test/integration/ui/BrowserTest.ldif
index 25623aa..23ad96a 100644
--- a/tests/test.integration.ui/src/main/resources/org/apache/directory/studio/test/integration/ui/BrowserTest.ldif
+++ b/tests/test.integration.ui/src/main/resources/org/apache/directory/studio/test/integration/ui/BrowserTest.ldif
@@ -249,3 +249,11 @@ objectClass: person
 cn: user.A
 sn: user.A
 
+dn: uid=user.0\,foo,ou=users, ou=system
+objectClass: top
+objectClass: person
+objectClass: organizationalPerson
+objectClass: inetOrgPerson
+sn: bbb
+cn: aaa
+uid: user.0,foo

-- 
To stop receiving notification emails like this one, please contact
seelmann@apache.org.