Package org.platformlayer.service.openldap.tests

Examples of org.platformlayer.service.openldap.tests.OpenLdapTestHelpers


    getTypedItemMapper().addClass(LdapDomain.class);
  }

  @Test
  public void testCreateAndDeleteItem() throws Exception {
    OpenLdapTestHelpers openLdap = new OpenLdapTestHelpers(getContext());
    LdapService ldapService = openLdap.createLdapServer();

    InetSocketAddress socketAddress = getUniqueEndpoint(ldapService);
    Assert.assertFalse(isPortOpen(socketAddress));

    openFirewall(ldapService, LdapServiceController.PORT);
    Assert.assertTrue(isPortOpen(socketAddress));

    String organizationName = "test.platformlayer.org";
    LdapDomain ldapDomain = openLdap.createLdapDomain(ldapService, organizationName);

    // TODO: Make endpoint ldap://<ip>:<port>/ ???
    String ldapUrl = "ldap://" + socketAddress.getAddress().getHostAddress() + ":" + socketAddress.getPort() + "/";
    testLdap(ldapUrl, ldapDomain.adminPassword);
  }
View Full Code Here


    getTypedItemMapper().addClass(GitService.class);
  }

  @Test
  public void testCreateAndDeleteItem() throws Exception {
    OpenLdapTestHelpers openLdap = new OpenLdapTestHelpers(getContext());
    LdapService ldapService = openLdap.createLdapServer();

    openFirewall(ldapService, LdapServiceController.PORT);

    String organizationName = "test.platformlayer.org";
    LdapDomain ldapDomain = openLdap.createLdapDomain(ldapService, organizationName);

    String id = "git" + random.randomAlphanumericString(8);

    GitService service = new GitService();
    service.dnsName = id + ".test.platformlayer.org";
View Full Code Here

TOP

Related Classes of org.platformlayer.service.openldap.tests.OpenLdapTestHelpers

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.