-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #697 from AlmaLinux/albs-deploy-fix-2
albs-deploy-fix 2
- Loading branch information
Showing
7 changed files
with
140 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import os | ||
import tempfile | ||
|
||
import pytest | ||
from syncer import sync | ||
|
||
from scripts.packages_exporter import Exporter | ||
|
||
IN_GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") is not None | ||
|
||
|
||
@pytest.mark.skip( | ||
reason="See https://github.com/AlmaLinux/build-system/issues/204" | ||
) | ||
def test_repomd_signer(): | ||
exporter = Exporter( | ||
pulp_client=None, repodata_cache_dir='~/.cache/pulp_exporter' | ||
) | ||
db_keys = sync(exporter.get_sign_keys()) | ||
key_id = db_keys[0]['keyid'] | ||
with tempfile.NamedTemporaryFile() as fp: | ||
fp.write(b'Hello world!') | ||
res = sync(exporter.sign_repomd_xml(fp.name, key_id)) | ||
assert res['error'] is None |
f8e86e5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage report for changed files •