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

Examples of org.sonatype.nexus.client.core.subsystem.config.Security


  @Test
  public void automaticallyEnableRealmWhenCapabilityCreated()
      throws Exception
  {
    // check that realm is added
    Security security = serverConfiguration().security();
    assertThat(security.settings().getRealms(), not(hasItem(RUTAUTH_REALM)));
    configureRemoteHeader("REMOTE_USER");
    assertThat(security.refresh().settings().getRealms(), hasItem(RUTAUTH_REALM));
    // check that we do not add the realm once more when we update
    List<String> realmsBeforeUpdate = security.refresh().settings().getRealms();
    configureRemoteHeader("REMOTE_AUTH");
    assertThat(
        security.refresh().settings().getRealms(),
        containsInAnyOrder(realmsBeforeUpdate.toArray(new String[realmsBeforeUpdate.size()]))
    );
  }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.client.core.subsystem.config.Security

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.