Skip to content

Commit

Permalink
refactor(maven): Refactor datasource tests (#9745)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Apr 27, 2021
1 parent be3b4bc commit 1d7a984
Show file tree
Hide file tree
Showing 14 changed files with 1,110 additions and 584 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

13 changes: 13 additions & 0 deletions lib/datasource/maven/__fixtures__/metadata-extra.xml
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.example</groupId>
<artifactId>package</artifactId>
<versioning>
<latest>3.0.0</latest>
<release>3.0.0</release>
<versions>
<version>3.0.0</version>
</versions>
<lastUpdated>20210101000000</lastUpdated>
</versioning>
</metadata>
9 changes: 9 additions & 0 deletions lib/datasource/maven/__fixtures__/metadata-invalid.xml
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.example</groupId>
<artifactId>package</artifactId>
<version>3.0.0-SNAPSHOT</version>
<versioning>
<lastUpdated>20210101010000</lastUpdated>
</versioning>
</metadata>
16 changes: 16 additions & 0 deletions lib/datasource/maven/__fixtures__/metadata.xml
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.example</groupId>
<artifactId>package</artifactId>
<versioning>
<latest>2.0.0</latest>
<release>2.0.0</release>
<versions>
<version>1.0.0</version>
<version>1.0.1</version>
<version>1.0.2</version>
<version>2.0.0</version>
</versions>
<lastUpdated>20210101000000</lastUpdated>
</versioning>
</metadata>
18 changes: 18 additions & 0 deletions lib/datasource/maven/__fixtures__/pom.scm-prefix.xml
@@ -0,0 +1,18 @@

<!--
License
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>package</artifactId>
<name>Generic Package</name>
<description>Generic Maven Package</description>
<scm>
<url>scm:https://github.com/example/test</url>
<connection>scm:git@github.com:example/test.git</connection>
<developerConnection>scm:git@github.com:example/test.git</developerConnection>
</scm>
</project>
14 changes: 14 additions & 0 deletions lib/datasource/maven/__fixtures__/pom.xml
@@ -0,0 +1,14 @@

<!--
License
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>package</artifactId>
<name>Generic Package</name>
<description>Generic Maven Package</description>
<url>https://package.example.org/about</url>
</project>

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 1d7a984

Please sign in to comment.