Skip to content
Snippets Groups Projects
Commit fa7ecc8f authored by vlorentz's avatar vlorentz
Browse files

maven: Pass the base URL of the Maven instance to the loader

I would like to use it as the metadata authority URI in the loader,
instead of '{p_url.scheme}://{p_url.netloc}/', which I do not think
is accurate, as it is possible to have multiple Maven instances at
the same netloc.
parent 15fa84cf
No related branches found
Tags v2.7.0
No related merge requests found
......@@ -302,6 +302,7 @@ class MavenLister(Lister[MavenListerState, RepoPage]):
"gid": page["gid"],
"aid": page["aid"],
"version": page["version"],
"base_url": self.BASE_URL,
}
]
},
......
......@@ -122,6 +122,7 @@ def test_maven_full_listing(
assert src.get("gid") == artifact["gid"]
assert src.get("aid") == artifact["aid"]
assert src.get("version") == artifact["version"]
assert MVN_URL == artifact["base_url"]
break
else:
raise AssertionError
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment