mirror of
https://github.com/bmlong137/maven-tiles
synced 2025-05-12 20:54:42 +00:00
Fixing an issue with distribution management repositories losing authentication settings.
- Added testcase
This commit is contained in:
parent
804efcf098
commit
7380278b2f
@ -560,8 +560,16 @@ public class TilesMavenLifecycleParticipantTest {
|
|||||||
def participant = new TilesMavenLifecycleParticipant()
|
def participant = new TilesMavenLifecycleParticipant()
|
||||||
participant.discoverAndSetDistributionManagementArtifactoryRepositoriesIfTheyExist(project);
|
participant.discoverAndSetDistributionManagementArtifactoryRepositoriesIfTheyExist(project);
|
||||||
|
|
||||||
assert project.releaseArtifactRepository.authentication!=null;
|
|
||||||
assert project.snapshotArtifactRepository.authentication!=null;
|
def releaseAuthentication = project.releaseArtifactRepository.authentication
|
||||||
|
assert releaseAuthentication !=null;
|
||||||
|
assert releaseAuthentication.username == "username"
|
||||||
|
assert releaseAuthentication.password == "secret"
|
||||||
|
|
||||||
|
def snapshotAuthentication = project.snapshotArtifactRepository.authentication
|
||||||
|
assert snapshotAuthentication !=null;
|
||||||
|
assert snapshotAuthentication.username == "username"
|
||||||
|
assert snapshotAuthentication.password == "secret"
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static Model createBasicModel() {
|
protected static Model createBasicModel() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user