Skip to content

Commit

Permalink
test(bom createreleases): assure behaviour on diverging source URLs
Browse files Browse the repository at this point in the history
In context of unconditional sourceUrl change introduced by commit
"feat: prevent uploading .git files", assure that existing, valid URLs
are not changed. The test introduced in d47fa16 is not enough, we need
to use a valid source URL.
  • Loading branch information
gernot-h committed Nov 27, 2024
1 parent 0e19d78 commit d5713bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_bom_create_releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ def test_update_release_SourceUrl(self) -> None:
item2 = Component(name="")
CycloneDxSupport.update_or_set_ext_ref(
item2, ExternalReferenceType.DISTRIBUTION,
CaPyCliBom.SOURCE_URL_COMMENT, "new_url")
CaPyCliBom.SOURCE_URL_COMMENT, "https://some.new/file.tar.gz")
self.app.update_release(item2, release_data)
captured = self.capsys.readouterr() # type: ignore
assert "differs from BOM URL" in captured.out
Expand Down

0 comments on commit d5713bc

Please sign in to comment.