From b981868178233003ad5e066ff5c7e5479861a9f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Kr=C3=BCger?= Date: Tue, 28 Nov 2023 15:31:34 +0100 Subject: [PATCH] Add testdata --- .../testcode/maven-projects/.gitignore | 1 + .../private-repository/.gitignore | 15 ++++ .../private-repository/README.adoc | 36 +++++++++ .../dependency-project/pom.xml.template | 25 ++++++ .../example/dependency/DependencyClass.java | 13 +++ .../dependent-project/pom.xml.template | 33 ++++++++ .../com/example/dependent/DependentClass.java | 7 ++ ...pendency-project-1.0-20231105.102337-1.jar | Bin 0 -> 2436 bytes ...ency-project-1.0-20231105.102337-1.jar.md5 | 1 + ...ncy-project-1.0-20231105.102337-1.jar.sha1 | 1 + ...pendency-project-1.0-20231105.102337-1.pom | 25 ++++++ ...ency-project-1.0-20231105.102337-1.pom.md5 | 1 + ...ncy-project-1.0-20231105.102337-1.pom.sha1 | 1 + .../1.0-SNAPSHOT/dependency-project-1.0.jar | Bin 0 -> 2436 bytes .../1.0-SNAPSHOT/maven-metadata.xml | 25 ++++++ .../1.0-SNAPSHOT/maven-metadata.xml.md5 | 1 + .../1.0-SNAPSHOT/maven-metadata.xml.sha1 | 1 + .../dependency-project/maven-metadata.xml | 11 +++ .../dependency-project/maven-metadata.xml.md5 | 1 + .../maven-metadata.xml.sha1 | 1 + .../reposilite-data/shared.configuration.json | 75 ++++++++++++++++++ .../user.home/.m2/settings-clear-password.xml | 14 ++++ .../user.home/.m2/settings-security.xml | 4 + .../user.home/.m2/settings.xml.template | 15 ++++ 24 files changed, 307 insertions(+) create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/.gitignore create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/.gitignore create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/README.adoc create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependency-project/pom.xml.template create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependency-project/src/main/java/com/example/dependency/DependencyClass.java create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependent-project/pom.xml.template create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependent-project/src/main/java/com/example/dependent/DependentClass.java create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.jar create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.jar.md5 create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.jar.sha1 create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.pom create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.pom.md5 create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.pom.sha1 create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0.jar create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/maven-metadata.xml create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/maven-metadata.xml.md5 create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/maven-metadata.xml.sha1 create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/maven-metadata.xml create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/maven-metadata.xml.md5 create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/maven-metadata.xml.sha1 create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/shared.configuration.json create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/user.home/.m2/settings-clear-password.xml create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/user.home/.m2/settings-security.xml create mode 100644 spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/user.home/.m2/settings.xml.template diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/.gitignore b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/.gitignore new file mode 100644 index 000000000..7c573fec6 --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/.gitignore @@ -0,0 +1 @@ +cwa-server \ No newline at end of file diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/.gitignore b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/.gitignore new file mode 100644 index 000000000..b8f740a9b --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/.gitignore @@ -0,0 +1,15 @@ +**/target +**/.rewrite-cache +/dependency-project/pom.xml +/dependent-project/pom.xml +/user.home/.config/ +/user.home/apache-maven-3.9.5/ +/user.home/.m2/repository +/user.home/.m2/settings.xml +!/user.home/.m2/settings.xml.template +!/user.home/.m2/settings-security.xml +/reposilite-data/static +/reposilite-data/.local +/reposilite-data/plugins +/reposilite-data/reposilite.db +/reposilite-data/configuration.cdn diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/README.adoc b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/README.adoc new file mode 100644 index 000000000..094c99e9d --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/README.adoc @@ -0,0 +1,36 @@ +# Artifact Repository Test + +Test that artifacts available in a private artifact repository configured in `~/.m2/settings.xml` can be accessed. +This is important as many enterprise projects use their private artifact repository to retrieve private dependencies. + +- A private artifact repository using (https://github.com/dzikoysk/reposilite[reposilite]) is started in a Docker container. +The reposilite instance has a user configured (admin:secret) which can deploy and access artifacts. + +- The repositories in the artifact repository (e.g. snapshot) require successful authentication (deploy + download). + +- `dependency-project` has a simple class `DependencyClass` and gets deployed to the artifact repository. + +- `dependent-project` depends on `dependency-project` and has a class `DependentClass` that uses `DependencyClass` + +- `dependent-project` gets parsed + +- The resulting AST has the type information of `dependency-project` resolved when the repository information and credentials were read from `settings.xml` and `security-settings.xml`. + +Technical requirements: + +- The port of the Docker container is dynamic and used in settings.xml and pom.xml. +- The local Maven installation of any system should not be affected by this test. +- The location of the Maven dir `.m2` must therefore point to a different location while the test is running. + + + + + + +This requires temporarily a different `.m2` location, here `testcode/maven-projects/private-repository/user.home/.m2`. +When deploying the `dependency-project` the path to `settings.xml` is provided, pointing to `testcode/maven-projects/private-repository/user.home/.m2/settings.xml`. +This file declares the location of the local Maven repository pointing to the same dir. +Because these paths can't be relative for this test and absolute paths + + +The `user.home` is set to point to `testcode/maven-projects/private-repository/user.home` which contains a `.m2` directory providing access configuration to the reposilite instance through `.m2/settings.xml` and `.m2/security-settings.xml`, diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependency-project/pom.xml.template b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependency-project/pom.xml.template new file mode 100644 index 000000000..920e5e677 --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependency-project/pom.xml.template @@ -0,0 +1,25 @@ + + + 4.0.0 + + com.example.dependency + dependency-project + 1.0-SNAPSHOT + + dependency-project + + + UTF-8 + 17 + 17 + + + + + repository-snapshots + Snapshots Repository + http://localhost:${port}/snapshots + + + diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependency-project/src/main/java/com/example/dependency/DependencyClass.java b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependency-project/src/main/java/com/example/dependency/DependencyClass.java new file mode 100644 index 000000000..67b1f0dd1 --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependency-project/src/main/java/com/example/dependency/DependencyClass.java @@ -0,0 +1,13 @@ +package com.example.dependency; +public class DependencyClass +{ + private String value; + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } +} diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependent-project/pom.xml.template b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependent-project/pom.xml.template new file mode 100644 index 000000000..797073c0d --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependent-project/pom.xml.template @@ -0,0 +1,33 @@ + + + 4.0.0 + + com.example.dependent + dependent-project + 1.0-SNAPSHOT + + dependent-project + + + UTF-8 + 17 + 17 + + + + + com.example.dependency + dependency-project + 1.0-SNAPSHOT + + + + + + repository-snapshots + Snapshots Repository + http://localhost:${port}/snapshots + + + diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependent-project/src/main/java/com/example/dependent/DependentClass.java b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependent-project/src/main/java/com/example/dependent/DependentClass.java new file mode 100644 index 000000000..2fead286c --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/dependent-project/src/main/java/com/example/dependent/DependentClass.java @@ -0,0 +1,7 @@ +package com.example.dependent; + +import com.example.dependency.DependencyClass; + +public class DependentClass { + private DependencyClass dependencyClass; +} diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.jar b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.jar new file mode 100644 index 0000000000000000000000000000000000000000..7e3c1683c36f46a4c97f2fab0989bd065004af28 GIT binary patch literal 2436 zcmWIWW@h1HVBlb2_#BlQ&VU3sfoxyb5Jz24KR5jVpfVAlG7hk^819U30YK?MAO?ye zl=(XPdAhj>Nh+~un^BLjma69a<|ZqK{G z!@)TxvA9?-8ASF5ob@~8An`jsYQ9ol>-M)zcJr@|9nba-Tr-ycOIN^;hfdDsh6vy?N^KbPVtWxU*z0` z1ygu_ZS6_DmVDvPws>bzQ|4v7+-8SeC-~TYJhObWM@6!s@W+TF2fNF6xBcxn|D0#4 zYQI?1Lc<#@Jexy~Jrs4`Ilt%SdC3zIcl4JjPqh0KIA!zX26sFErLV#d7kyJXc~SO{ z{_H=i7oPZ|wEyL{@3{eU*GuY_PrvX@@=W3;59UJkt9)nIPFOeT!JNL}MVpOQmB=|s zCGOI`%KXZvN^^W~Z=sr(U>c`uzu|W=JG_0%p778po?$z(^=!W?*oj zByJ0UDXAhir*%@S|6v7@w)fw)XWbLu^>b$H#)^d(Q-YJ1e-t~t@$eRhhP==BxwriG zS{C_&G@N;fejw@#W|((%cJF;Yt}#ndxiy!>XV)l%j~y}z0+sm_~LHc4;p z<>VgeZA_gr(w+)UFcPh+oAtPOO1suXnfx_3F24RMwf4M{`Kix}b@R`2&A+k1$K&-3 z9YtA{&hrwtHO_~ejFEYLzwBiGkz=3y&M3A2v0l25J5!|n*V@~&k4YSKzoif`HE?a+ zgDoMvO}yD9ydBMKC--{ZXUTuun0l7t^><1|;B|18$oBTMG;C#`KgXdR<>)DB+Yc(Hk+ppgHT;+%VGVRMhUu?g&i0!g* zNrmf&mnTl@9QR>;7ZN7VDgEHEXw!k#Qn#8d4?h*FMY8gGTrW3RFjdrV=6k;nlOB|; zPYW~3oqj5^iS@qW#SKZ)UU6lAuAQEj?d$t{e#r0h;rdfcA9r7TVRW3mmHBFKbN_S2 zAKM?6FS~q@A5m`Z0A@BV#WH1YVEhIFu{)*l49w33sYNB3sm0zpS|@$Hee^#1Z1nZi z^*HP8dDeT~6OO9(w7Y(${71QhomX)zUDPXJSv5yi%M}ICZI*X!^6~H>F-l zzF_-p$;MLsqrHF;m@XNaM3`|`2tY>zfdIo>M-YuvJ%F^~t{^~)L10OvI*^2GL#i&2 zEyh;BgSCS#UI}DEihG1p(RF|dd45}ayn!_ literal 0 HcmV?d00001 diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.jar.md5 b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.jar.md5 new file mode 100644 index 000000000..49cdda0c0 --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.jar.md5 @@ -0,0 +1 @@ +5c1fa9eb9814ca94bec1d507acb02910 \ No newline at end of file diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.jar.sha1 b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.jar.sha1 new file mode 100644 index 000000000..27e747716 --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.jar.sha1 @@ -0,0 +1 @@ +453d6aa069f223e17d5505601a3a3a7f576d61f4 \ No newline at end of file diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.pom b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.pom new file mode 100644 index 000000000..78420e9bc --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.pom @@ -0,0 +1,25 @@ + + + 4.0.0 + + com.example.dependency + dependency-project + 1.0-SNAPSHOT + + dependency-project + + + UTF-8 + 17 + 17 + + + + + repository-snapshots + Snapshots Repository + http://localhost:52260/snapshots + + + diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.pom.md5 b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.pom.md5 new file mode 100644 index 000000000..940ac3b57 --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.pom.md5 @@ -0,0 +1 @@ +b5e883c0ee08ff935cf96727bb8623f4 \ No newline at end of file diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.pom.sha1 b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.pom.sha1 new file mode 100644 index 000000000..50ec63f3c --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0-20231105.102337-1.pom.sha1 @@ -0,0 +1 @@ +534f31aa5ef763fe4562871d4dbb167a5cdc26f0 \ No newline at end of file diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0.jar b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/dependency-project-1.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..7e3c1683c36f46a4c97f2fab0989bd065004af28 GIT binary patch literal 2436 zcmWIWW@h1HVBlb2_#BlQ&VU3sfoxyb5Jz24KR5jVpfVAlG7hk^819U30YK?MAO?ye zl=(XPdAhj>Nh+~un^BLjma69a<|ZqK{G z!@)TxvA9?-8ASF5ob@~8An`jsYQ9ol>-M)zcJr@|9nba-Tr-ycOIN^;hfdDsh6vy?N^KbPVtWxU*z0` z1ygu_ZS6_DmVDvPws>bzQ|4v7+-8SeC-~TYJhObWM@6!s@W+TF2fNF6xBcxn|D0#4 zYQI?1Lc<#@Jexy~Jrs4`Ilt%SdC3zIcl4JjPqh0KIA!zX26sFErLV#d7kyJXc~SO{ z{_H=i7oPZ|wEyL{@3{eU*GuY_PrvX@@=W3;59UJkt9)nIPFOeT!JNL}MVpOQmB=|s zCGOI`%KXZvN^^W~Z=sr(U>c`uzu|W=JG_0%p778po?$z(^=!W?*oj zByJ0UDXAhir*%@S|6v7@w)fw)XWbLu^>b$H#)^d(Q-YJ1e-t~t@$eRhhP==BxwriG zS{C_&G@N;fejw@#W|((%cJF;Yt}#ndxiy!>XV)l%j~y}z0+sm_~LHc4;p z<>VgeZA_gr(w+)UFcPh+oAtPOO1suXnfx_3F24RMwf4M{`Kix}b@R`2&A+k1$K&-3 z9YtA{&hrwtHO_~ejFEYLzwBiGkz=3y&M3A2v0l25J5!|n*V@~&k4YSKzoif`HE?a+ zgDoMvO}yD9ydBMKC--{ZXUTuun0l7t^><1|;B|18$oBTMG;C#`KgXdR<>)DB+Yc(Hk+ppgHT;+%VGVRMhUu?g&i0!g* zNrmf&mnTl@9QR>;7ZN7VDgEHEXw!k#Qn#8d4?h*FMY8gGTrW3RFjdrV=6k;nlOB|; zPYW~3oqj5^iS@qW#SKZ)UU6lAuAQEj?d$t{e#r0h;rdfcA9r7TVRW3mmHBFKbN_S2 zAKM?6FS~q@A5m`Z0A@BV#WH1YVEhIFu{)*l49w33sYNB3sm0zpS|@$Hee^#1Z1nZi z^*HP8dDeT~6OO9(w7Y(${71QhomX)zUDPXJSv5yi%M}ICZI*X!^6~H>F-l zzF_-p$;MLsqrHF;m@XNaM3`|`2tY>zfdIo>M-YuvJ%F^~t{^~)L10OvI*^2GL#i&2 zEyh;BgSCS#UI}DEihG1p(RF|dd45}ayn!_ literal 0 HcmV?d00001 diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/maven-metadata.xml b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/maven-metadata.xml new file mode 100644 index 000000000..aacf3480f --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/maven-metadata.xml @@ -0,0 +1,25 @@ + + + com.example.dependency + dependency-project + + 20231105102337 + + 20231105.102337 + 1 + + + + pom + 1.0-20231105.102337-1 + 20231105102337 + + + jar + 1.0-20231105.102337-1 + 20231105102337 + + + + 1.0-SNAPSHOT + diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/maven-metadata.xml.md5 b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/maven-metadata.xml.md5 new file mode 100644 index 000000000..03c2d4d82 --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/maven-metadata.xml.md5 @@ -0,0 +1 @@ +40910b0eb66467f44ca8792bfe5a847e \ No newline at end of file diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/maven-metadata.xml.sha1 b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/maven-metadata.xml.sha1 new file mode 100644 index 000000000..24af63b0f --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/1.0-SNAPSHOT/maven-metadata.xml.sha1 @@ -0,0 +1 @@ +6262ab25ed0f7e2128fb26fab1acd090c535abaf \ No newline at end of file diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/maven-metadata.xml b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/maven-metadata.xml new file mode 100644 index 000000000..10b9e9598 --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/maven-metadata.xml @@ -0,0 +1,11 @@ + + + com.example.dependency + dependency-project + + + 1.0-SNAPSHOT + + 20231105102337 + + diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/maven-metadata.xml.md5 b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/maven-metadata.xml.md5 new file mode 100644 index 000000000..fa762d2be --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/maven-metadata.xml.md5 @@ -0,0 +1 @@ +9bf1c816b6c0f8166efd71605db83682 \ No newline at end of file diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/maven-metadata.xml.sha1 b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/maven-metadata.xml.sha1 new file mode 100644 index 000000000..3aa41af3a --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/repositories/snapshots/com/example/dependency/dependency-project/maven-metadata.xml.sha1 @@ -0,0 +1 @@ +4fa1150761b6af92a0b232fe8ec688b9e90d0f88 \ No newline at end of file diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/shared.configuration.json b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/shared.configuration.json new file mode 100644 index 000000000..90c3c48d0 --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/reposilite-data/shared.configuration.json @@ -0,0 +1,75 @@ +{ + "statistics": { + "enabled": true, + "resolvedRequestsInterval": "MONTHLY" + }, + "web": { + "forwardedIp": "X-Forwarded-For" + }, + "frontend": { + "id": "reposilite-repository", + "title": "Reposilite Repository", + "description": "Public Maven repository hosted through the Reposilite", + "organizationWebsite": "https://reposilite.com", + "organizationLogo": "https://avatars.githubusercontent.com/u/88636591", + "icpLicense": "" + }, + "authentication": { + "ldap": { + "enabled": false, + "ssl": false, + "hostname": "ldap.domain.com", + "port": 389, + "baseDn": "dc=company,dc=com", + "searchUserDn": "cn=reposilite,ou=admins,dc=domain,dc=com", + "searchUserPassword": "reposilite-admin-secret", + "typeAttribute": "person", + "userAttribute": "cn", + "userFilter": "(&(objectClass=person)(ou=Maven Users))", + "userType": "PERSISTENT" + } + }, + "maven": { + "repositories": [ + { + "id": "releases", + "visibility": "PRIVATE", + "redeployment": false, + "preserveSnapshots": false, + "storageProvider": { + "type": "fs", + "quota": "100%", + "mount": "" + }, + "storagePolicy": "PRIORITIZE_UPSTREAM_METADATA", + "proxied": [] + }, + { + "id": "snapshots", + "visibility": "PRIVATE", + "redeployment": true, + "preserveSnapshots": false, + "storageProvider": { + "type": "fs", + "quota": "100%", + "mount": "./snapshots" + }, + "storagePolicy": "PRIORITIZE_UPSTREAM_METADATA", + "proxied": [] + }, + { + "id": "private", + "visibility": "PRIVATE", + "redeployment": false, + "preserveSnapshots": false, + "storageProvider": { + "type": "fs", + "quota": "100%", + "mount": "" + }, + "storagePolicy": "PRIORITIZE_UPSTREAM_METADATA", + "proxied": [] + } + ] + } +} \ No newline at end of file diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/user.home/.m2/settings-clear-password.xml b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/user.home/.m2/settings-clear-password.xml new file mode 100644 index 000000000..4d2209073 --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/user.home/.m2/settings-clear-password.xml @@ -0,0 +1,14 @@ + + + /Users/fkrueger/projects/spring-boot-migrator/sbm-support-rewrite/testcode/maven-projects/private-repository/user.home/.m2/repository + + + + repository-snapshots + user + + secret + + + diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/user.home/.m2/settings-security.xml b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/user.home/.m2/settings-security.xml new file mode 100644 index 000000000..69a679944 --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/user.home/.m2/settings-security.xml @@ -0,0 +1,4 @@ + + + {BzCEWWQMgMkHk0P8+Rr+hsscSisZT6A4+G9Mub7f/m4=} + \ No newline at end of file diff --git a/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/user.home/.m2/settings.xml.template b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/user.home/.m2/settings.xml.template new file mode 100644 index 000000000..6994fc296 --- /dev/null +++ b/spring-rewrite-commons-functional-tests/private-artifact-repository-tests/testcode/maven-projects/private-repository/user.home/.m2/settings.xml.template @@ -0,0 +1,15 @@ + + + ${user.home}/.m2/repository + + + + repository-snapshots + user + + {iKYxpFKiVu0HTAe4w0RAzev3TAav0DG8wEom2qNoRws=} + + + +