directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject [directory-studio] branch master updated: DIRSTUDIO-1172: Add test to verify fixed in LDAP API
Date Mon, 21 May 2018 12:51:23 GMT
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 2730f30  DIRSTUDIO-1172: Add test to verify fixed in LDAP API
2730f30 is described below

commit 2730f3087cf7678bf7df8bb792f8062067b6de1a
Author: Stefan Seelmann <mail@stefan-seelmann.de>
AuthorDate: Mon May 21 14:51:13 2018 +0200

    DIRSTUDIO-1172: Add test to verify fixed in LDAP API
---
 .../studio/test/integration/ui/BrowserTest.java          | 16 ++++++++++++++++
 .../studio/test/integration/ui/BrowserTest.ldif          | 13 +++++++++++++
 2 files changed, 29 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 22ebef5..3722d60 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
@@ -441,6 +441,22 @@ public class BrowserTest extends AbstractLdapTestUnit
 
 
     /**
+     * Test for DIRSTUDIO-1172: Studio doesn't display entries with trailing =.
+     */
+    @Test
+    public void testBrowseDnWithTrailingEqualsCharacter() throws Exception
+    {
+        assertTrue( browserViewBot.existsEntry( "DIT", "Root DSE", "ou=system", "ou=users",
+            "cn=nghZwwtHgxgyvVbTQCYyeY\\+O4cc=" ) );
+        browserViewBot.selectEntry( "DIT", "Root DSE", "ou=system", "ou=users", "cn=nghZwwtHgxgyvVbTQCYyeY\\+O4cc="
);
+
+        assertTrue( browserViewBot.existsEntry( "DIT", "Root DSE", "ou=system", "ou=users",
+            "cn=nghZwwtHgxgyvVbTQCYyeY+email=" ) );
+        browserViewBot.selectEntry( "DIT", "Root DSE", "ou=system", "ou=users", "cn=nghZwwtHgxgyvVbTQCYyeY+email="
);
+    }
+
+
+    /**
      * 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 4d3bef4..6c3fe88 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
@@ -221,3 +221,16 @@ objectClass: person
 cn: #ACL_AD-Projects_Author
 sn: #ACL_AD-Projects_Author
 
+dn: cn=nghZwwtHgxgyvVbTQCYyeY\+O4cc=,ou=users,ou=system
+objectClass: top
+objectClass: person
+cn: nghZwwtHgxgyvVbTQCYyeY+O4cc=
+sn: nghZwwtHgxgyvVbTQCYyeY+O4cc=
+
+dn: cn=nghZwwtHgxgyvVbTQCYyeY+email=,ou=users,ou=system
+objectClass: top
+objectClass: person
+objectClass: extensibleObject
+cn: nghZwwtHgxgyvVbTQCYyeY
+sn: nghZwwtHgxgyvVbTQCYyeY
+email: 

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

Mime
View raw message