This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into s3-scraper-fix
- Loading branch information
Showing
19 changed files
with
140 additions
and
12 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
nexus-client-core-testsuite/src/test/java/org/sonatype/nexus/client/testsuite/UserIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Sonatype Nexus (TM) Open Source Version | ||
* Copyright (c) 2007-2012 Sonatype, Inc. | ||
* All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. | ||
* | ||
* This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, | ||
* which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. | ||
* | ||
* Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks | ||
* of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the | ||
* Eclipse Foundation. All other trademarks are the property of their respective owners. | ||
*/ | ||
package org.sonatype.nexus.client.testsuite; | ||
|
||
import static org.hamcrest.Matchers.notNullValue; | ||
import static org.hamcrest.core.Is.is; | ||
import static org.junit.Assert.assertThat; | ||
|
||
import org.junit.Test; | ||
import org.sonatype.nexus.client.core.NexusClient; | ||
import org.sonatype.nexus.client.core.subsystem.security.Users; | ||
|
||
/** | ||
* @since 2.5 | ||
*/ | ||
public class UserIT | ||
extends NexusClientITSupport | ||
{ | ||
|
||
public UserIT( final String nexusBundleCoordinates ) | ||
{ | ||
super( nexusBundleCoordinates ); | ||
} | ||
|
||
/** | ||
* 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 | ||
assertThat( client.getNexusStatus(), is( notNullValue() ) ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+2.87 KB
...s-core/src/test/resources/reposes/releases/org/sonatype/test/1.0.1/test-1.0.1-sources.jar
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...e/src/test/resources/reposes/releases/org/sonatype/test/1.0.1/test-1.0.1-sources.jar.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4bc91382f9f7f7a2300b8038892b143475e62b47 |
Binary file added
BIN
+2.87 KB
nexus-core/src/test/resources/reposes/releases/org/sonatype/test/1.0/test-1.0-sources.jar
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...-core/src/test/resources/reposes/releases/org/sonatype/test/1.0/test-1.0-sources.jar.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4bc91382f9f7f7a2300b8038892b143475e62b47 |
Binary file added
BIN
+2.87 KB
...est/resources/reposes/releases/org/sonatype/test/2.1000.9999/test-2.1000.9999-sources.jar
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...esources/reposes/releases/org/sonatype/test/2.1000.9999/test-2.1000.9999-sources.jar.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4bc91382f9f7f7a2300b8038892b143475e62b47 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters