diff --git a/pom.xml b/pom.xml
index 4089dde5..a7f27bf8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -95,8 +95,8 @@
0.1.0
13.0.10.Final
0.8.10
- 2.2.0
- 2.4.6
+ 2.3.0
+ 2.4.9
6.2.4.Final
1.6.13
1.0.5
diff --git a/src/main/java/org/jboss/pnc/deliverablesanalyzer/model/FinderResultCreator.java b/src/main/java/org/jboss/pnc/deliverablesanalyzer/model/FinderResultCreator.java
index 3ffff2af..b9f3a5b8 100644
--- a/src/main/java/org/jboss/pnc/deliverablesanalyzer/model/FinderResultCreator.java
+++ b/src/main/java/org/jboss/pnc/deliverablesanalyzer/model/FinderResultCreator.java
@@ -108,6 +108,7 @@ private static Collection createNotFoundArtifacts(KojiLocalArchive loc
localArchive.getArchive().setFilename(filename);
setCommonArtifactFields(builder, localArchive);
+ builder.archiveFilenames(List.of(filename)).archiveUnmatchedFilenames(localArchive.getUnmatchedFilenames());
artifacts.add(builder.build());
}
@@ -163,7 +164,7 @@ private static Build createBuild(
builder.brewId((long) kojiBuild.getBuildInfo().getId());
builder.brewNVR(kojiBuild.getBuildInfo().getNvr());
}
- return builder.artifacts(artifacts).build();
+ return builder.isImport(kojiBuild.isImport()).artifacts(artifacts).build();
}
private static Artifact createArtifact(KojiLocalArchive localArchive, BuildSystem buildSystem, boolean imported) {
@@ -195,6 +196,8 @@ private static Artifact createArtifact(KojiLocalArchive localArchive, BuildSyste
builder.builtFromSource(localArchive.isBuiltFromSource() && !imported);
setCommonArtifactFields(builder, localArchive);
+ builder.archiveFilenames(localArchive.getFilenames())
+ .archiveUnmatchedFilenames(localArchive.getUnmatchedFilenames());
return builder.build();
}
diff --git a/src/test/resources/analyzeTestOKSimple/brewHub/mappings/-4f7c7a02-2c72-4c5e-9b25-52ed5515a9f0.json b/src/test/resources/analyzeTestOKSimple/brewHub/mappings/-4f7c7a02-2c72-4c5e-9b25-52ed5515a9f0.json
new file mode 100644
index 00000000..8b2b44d6
--- /dev/null
+++ b/src/test/resources/analyzeTestOKSimple/brewHub/mappings/-4f7c7a02-2c72-4c5e-9b25-52ed5515a9f0.json
@@ -0,0 +1,25 @@
+{
+ "id" : "4f7c7a02-2c72-4c5e-9b25-52ed5515a9f0",
+ "name" : "",
+ "request" : {
+ "url" : "/",
+ "method" : "POST",
+ "bodyPatterns" : [ {
+ "equalToXml" : "multiCallmethodNamelistArchivesparams__starstar1checksum${xmlunit.ignore}",
+ "enablePlaceholders": true
+ } ]
+ },
+ "response" : {
+ "status" : 200,
+ "body" : "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
+ "headers" : {
+ "Date" : "Tue, 19 Jan 2021 10:08:00 GMT",
+ "Server" : "Apache/2.4.37 (Red Hat Enterprise Linux) OpenSSL/1.1.1c mod_auth_gssapi/1.6.1 mod_fcgid/2.3.9 mod_wsgi/4.6.4 Python/3.6",
+ "Keep-Alive" : "timeout=5, max=98",
+ "Content-Type" : "text/xml"
+ }
+ },
+ "uuid" : "4f7c7a02-2c72-4c5e-9b25-52ed5515a9f0",
+ "persistent" : true,
+ "insertionIndex" : 4
+}
diff --git a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-1a8d43e0-8660-4a46-a294-13ef36c6dd31.json b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-1a8d43e0-8660-4a46-a294-13ef36c6dd31.json
index 2ba6fced..d282d911 100644
--- a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-1a8d43e0-8660-4a46-a294-13ef36c6dd31.json
+++ b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-1a8d43e0-8660-4a46-a294-13ef36c6dd31.json
@@ -2,7 +2,7 @@
"id" : "1a8d43e0-8660-4a46-a294-13ef36c6dd31",
"name" : "pnc-rest_v2_artifacts",
"request" : {
- "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&md5=2b2ae0cf8ef48e7cad31f75552e7b695",
+ "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&sha256=6b0138885a6598965f9ac759efb20845e3c3bac1a8df812e2e0f9020d66d9e26",
"method" : "GET"
},
"response" : {
diff --git a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-203d62cf-30fb-4b86-9b04-ee15dffc9c17.json b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-203d62cf-30fb-4b86-9b04-ee15dffc9c17.json
index bf860010..490d5eb1 100644
--- a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-203d62cf-30fb-4b86-9b04-ee15dffc9c17.json
+++ b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-203d62cf-30fb-4b86-9b04-ee15dffc9c17.json
@@ -2,7 +2,7 @@
"id" : "203d62cf-30fb-4b86-9b04-ee15dffc9c17",
"name" : "pnc-rest_v2_artifacts",
"request" : {
- "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&md5=28091f0ca08c8c68a97a85f6ff429727",
+ "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&sha256=106d62007ab85e7399d1684cba3d2cfb8b55a7daf5d7c7d473074c733db5bf9b",
"method" : "GET"
},
"response" : {
diff --git a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-2817c585-b607-4703-8ba3-8fc9e7ac664f.json b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-2817c585-b607-4703-8ba3-8fc9e7ac664f.json
index 4d5fa768..7bdfd64b 100644
--- a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-2817c585-b607-4703-8ba3-8fc9e7ac664f.json
+++ b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-2817c585-b607-4703-8ba3-8fc9e7ac664f.json
@@ -2,7 +2,7 @@
"id" : "2817c585-b607-4703-8ba3-8fc9e7ac664f",
"name" : "pnc-rest_v2_artifacts",
"request" : {
- "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&md5=7d4c14e2272407c640c8ff4353def961",
+ "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&sha256=ae1565e4ce3d0b98a9a39a4121e5932cfef5f4ca443429addfad0ed351e1a2b1",
"method" : "GET"
},
"response" : {
diff --git a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-30014322-3311-4635-ba7d-876f65290b55.json b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-30014322-3311-4635-ba7d-876f65290b55.json
index 65ddef83..887529a9 100644
--- a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-30014322-3311-4635-ba7d-876f65290b55.json
+++ b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-30014322-3311-4635-ba7d-876f65290b55.json
@@ -2,7 +2,7 @@
"id" : "30014322-3311-4635-ba7d-876f65290b55",
"name" : "pnc-rest_v2_artifacts",
"request" : {
- "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&md5=7d4c14e2272407c640c8ff4353def961",
+ "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&sha256=ae1565e4ce3d0b98a9a39a4121e5932cfef5f4ca443429addfad0ed351e1a2b1",
"method" : "GET"
},
"response" : {
diff --git a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-5c6b5295-910f-40f1-a232-7e89a57b99f0.json b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-5c6b5295-910f-40f1-a232-7e89a57b99f0.json
index 6c8c27ac..a903629f 100644
--- a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-5c6b5295-910f-40f1-a232-7e89a57b99f0.json
+++ b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-5c6b5295-910f-40f1-a232-7e89a57b99f0.json
@@ -2,7 +2,7 @@
"id" : "5c6b5295-910f-40f1-a232-7e89a57b99f0",
"name" : "pnc-rest_v2_artifacts",
"request" : {
- "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&md5=fc97e71a3abc5b7876fc87f3d3be0988",
+ "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&sha256=6b30db33e0003be8e5cc033188fcd6a9b0acceb198ac73db3594f1ff972d3c71",
"method" : "GET"
},
"response" : {
diff --git a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-62dec8d8-fd06-457b-907d-9db0f944032e.json b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-62dec8d8-fd06-457b-907d-9db0f944032e.json
index bd81b5c5..3b8fc1f3 100644
--- a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-62dec8d8-fd06-457b-907d-9db0f944032e.json
+++ b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-62dec8d8-fd06-457b-907d-9db0f944032e.json
@@ -2,7 +2,7 @@
"id" : "62dec8d8-fd06-457b-907d-9db0f944032e",
"name" : "pnc-rest_v2_artifacts",
"request" : {
- "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&md5=2b2ae0cf8ef48e7cad31f75552e7b695",
+ "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&sha256=6b0138885a6598965f9ac759efb20845e3c3bac1a8df812e2e0f9020d66d9e26",
"method" : "GET"
},
"response" : {
diff --git a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-c0145195-a9c4-499e-bc2c-460aef3f71a1.json b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-c0145195-a9c4-499e-bc2c-460aef3f71a1.json
index 2d60b928..193985a6 100644
--- a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-c0145195-a9c4-499e-bc2c-460aef3f71a1.json
+++ b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-c0145195-a9c4-499e-bc2c-460aef3f71a1.json
@@ -2,7 +2,7 @@
"id" : "c0145195-a9c4-499e-bc2c-460aef3f71a1",
"name" : "pnc-rest_v2_artifacts",
"request" : {
- "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&md5=28091f0ca08c8c68a97a85f6ff429727",
+ "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&sha256=106d62007ab85e7399d1684cba3d2cfb8b55a7daf5d7c7d473074c733db5bf9b",
"method" : "GET"
},
"response" : {
diff --git a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-c9095ab6-1f4f-4ac6-82c4-62da74bb3048.json b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-c9095ab6-1f4f-4ac6-82c4-62da74bb3048.json
index 949139ac..1fd49b5b 100644
--- a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-c9095ab6-1f4f-4ac6-82c4-62da74bb3048.json
+++ b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-c9095ab6-1f4f-4ac6-82c4-62da74bb3048.json
@@ -2,7 +2,7 @@
"id" : "c9095ab6-1f4f-4ac6-82c4-62da74bb3048",
"name" : "pnc-rest_v2_artifacts",
"request" : {
- "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&md5=93ca942eea6f376a6ae83f34dead442e",
+ "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&sha256=7ffa90cadb9ad19225101b31737b916d2b61094f5695ffeaf4a143a6bc23165f",
"method" : "GET"
},
"response" : {
diff --git a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-cefe2e44-fdc4-4546-81ba-cfa670e3f814.json b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-cefe2e44-fdc4-4546-81ba-cfa670e3f814.json
index 690d8a2a..74c6b02a 100644
--- a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-cefe2e44-fdc4-4546-81ba-cfa670e3f814.json
+++ b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-cefe2e44-fdc4-4546-81ba-cfa670e3f814.json
@@ -2,7 +2,7 @@
"id" : "cefe2e44-fdc4-4546-81ba-cfa670e3f814",
"name" : "pnc-rest_v2_artifacts",
"request" : {
- "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&md5=5153ea9bdc6fff4576d641ad406d977e",
+ "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&sha256=63140a1d60c7ec30865ff66227762e95a2a54df8d2a9d65902b09d027894818c",
"method" : "GET"
},
"response" : {
diff --git a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-d50606fb-7536-4aa0-b680-4cb228ac0262.json b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-d50606fb-7536-4aa0-b680-4cb228ac0262.json
index 4e06d0ae..dac18e7c 100644
--- a/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-d50606fb-7536-4aa0-b680-4cb228ac0262.json
+++ b/src/test/resources/analyzeTestOKSimple/pnc/mappings/pnc-rest_v2_artifacts-d50606fb-7536-4aa0-b680-4cb228ac0262.json
@@ -2,7 +2,7 @@
"id" : "d50606fb-7536-4aa0-b680-4cb228ac0262",
"name" : "pnc-rest_v2_artifacts",
"request" : {
- "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&md5=5153ea9bdc6fff4576d641ad406d977e",
+ "url" : "/pnc-rest/v2/artifacts?pageSize=18&pageIndex=0&q=build%3Disnull%3Dfalse&sha256=63140a1d60c7ec30865ff66227762e95a2a54df8d2a9d65902b09d027894818c",
"method" : "GET"
},
"response" : {