From 7380278b2f7f0ae6fb6b8f85e35bdad9b8ab5a1c Mon Sep 17 00:00:00 2001 From: "Riesen, Stefan" Date: Mon, 11 Dec 2023 10:50:25 +0100 Subject: [PATCH] Fixing an issue with distribution management repositories losing authentication settings. - Added testcase --- .../tiles/TilesMavenLifecycleParticipantTest.groovy | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/test/groovy/io/repaint/maven/tiles/TilesMavenLifecycleParticipantTest.groovy b/src/test/groovy/io/repaint/maven/tiles/TilesMavenLifecycleParticipantTest.groovy index 6744aa2..beee73c 100644 --- a/src/test/groovy/io/repaint/maven/tiles/TilesMavenLifecycleParticipantTest.groovy +++ b/src/test/groovy/io/repaint/maven/tiles/TilesMavenLifecycleParticipantTest.groovy @@ -560,8 +560,16 @@ public class TilesMavenLifecycleParticipantTest { def participant = new TilesMavenLifecycleParticipant() 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() {