File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
tests/slsa_analyzer/package_registry Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ def test_get_artifact_hash_failures(
257257 httpserver .expect_request (artifact_path + ".sha256" ).respond_with_data (expected_hash )
258258 httpserver .expect_request (artifact_path ).respond_with_data (b"example_data_2" )
259259
260- result = maven_registry .get_artifact_hash (purl )
260+ result , _ = maven_registry .get_artifact_hash (purl )
261261
262262 assert not result
263263
@@ -282,7 +282,9 @@ def test_get_artifact_hash_success(
282282 expected_hash = hash_algorithm .hexdigest ()
283283 httpserver .expect_request (artifact_path + ".sha256" ).respond_with_data (expected_hash )
284284 httpserver .expect_request (artifact_path ).respond_with_data (b"example_data" )
285+ expected_artifact_path = f"http://{ httpserver .host } :{ httpserver .port } { artifact_path } "
285286
286- result = maven_registry .get_artifact_hash (purl )
287+ result , result_path = maven_registry .get_artifact_hash (purl )
287288
288289 assert result
290+ assert expected_artifact_path == result_path
You can’t perform that action at this time.
0 commit comments