Fixing an issue with distribution management repositories losing authentication settings.

- Added testcase
This commit is contained in:
Riesen, Stefan 2023-12-11 10:50:25 +01:00 committed by Mark Derricutt
parent 804efcf098
commit 7380278b2f

View File

@ -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() {