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(
257
257
httpserver .expect_request (artifact_path + ".sha256" ).respond_with_data (expected_hash )
258
258
httpserver .expect_request (artifact_path ).respond_with_data (b"example_data_2" )
259
259
260
- result = maven_registry .get_artifact_hash (purl )
260
+ result , _ = maven_registry .get_artifact_hash (purl )
261
261
262
262
assert not result
263
263
@@ -282,7 +282,9 @@ def test_get_artifact_hash_success(
282
282
expected_hash = hash_algorithm .hexdigest ()
283
283
httpserver .expect_request (artifact_path + ".sha256" ).respond_with_data (expected_hash )
284
284
httpserver .expect_request (artifact_path ).respond_with_data (b"example_data" )
285
+ expected_artifact_path = f"http://{ httpserver .host } :{ httpserver .port } { artifact_path } "
285
286
286
- result = maven_registry .get_artifact_hash (purl )
287
+ result , result_path = maven_registry .get_artifact_hash (purl )
287
288
288
289
assert result
290
+ assert expected_artifact_path == result_path
You can’t perform that action at this time.
0 commit comments