Package org.sonatype.nexus.client.core.subsystem.security

Examples of org.sonatype.nexus.client.core.subsystem.security.Users


   * Related to NEXUS-5037 ensure that html escaped passwords(specifically quote character in this case) can be used
   * as credentials.
   */
  @Test
  public void testUserWithSingleQuotePassword() {
    Users users = client().getSubsystem(Users.class);
    String password = "\"";
    users.create("test").withPassword(password).withRole("nx-admin").withEmail("no@where.com").save();
    NexusClient client = createNexusClient(nexus(), "test", password);
    //will fail if can't authenticate
    Assert.assertThat(client.getNexusStatus(), Is.is(notNullValue()));
  }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.client.core.subsystem.security.Users

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.