Skip to content

Commit

Permalink
rpm tests: Add multiple archs integration test scenario
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Pimentel <[email protected]>
  • Loading branch information
brunoapimentel committed May 7, 2024
1 parent d0bb78c commit 2d21aa4
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
environment_variables: []
project_files: []
79 changes: 79 additions & 0 deletions tests/integration/test_data/rpm_multiple_archs/bom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"bomFormat": "CycloneDX",
"components": [
{
"name": "vim-common",
"properties": [
{
"name": "cachi2:found_by",
"value": "cachi2"
}
],
"purl": "pkg:rpm/fedora%20project/[email protected]?arch=x86_64&epoch=2&download_url=http%3A//fedora.c3sl.ufpr.br/linux/releases/40/Everything/x86_64/os/Packages/v/vim-common-9.1.158-1.fc40.x86_64.rpm",
"type": "library",
"version": "9.1.158"
},
{
"name": "vim-data",
"properties": [
{
"name": "cachi2:found_by",
"value": "cachi2"
},
{
"name": "cachi2:missing_hash:in_file",
"value": "rpms.lock.yaml"
}
],
"purl": "pkg:rpm/fedora%20project/[email protected]?arch=noarch&epoch=2&download_url=http%3A//fedora.c3sl.ufpr.br/linux/releases/40/Everything/x86_64/os/Packages/v/vim-data-9.1.158-1.fc40.noarch.rpm",
"type": "library",
"version": "9.1.158"
},
{
"name": "vim-minimal",
"properties": [
{
"name": "cachi2:found_by",
"value": "cachi2"
}
],
"purl": "pkg:rpm/fedora%20project/[email protected]?arch=aarch64&epoch=2&download_url=http%3A//fedora.c3sl.ufpr.br/linux/releases/40/Everything/aarch64/os/Packages/v/vim-minimal-9.1.158-1.fc40.aarch64.rpm",
"type": "library",
"version": "9.1.158"
},
{
"name": "vim-minimal",
"properties": [
{
"name": "cachi2:found_by",
"value": "cachi2"
}
],
"purl": "pkg:rpm/fedora%20project/[email protected]?arch=x86_64&epoch=2&download_url=http%3A//fedora.c3sl.ufpr.br/linux/releases/40/Everything/x86_64/os/Packages/v/vim-minimal-9.1.158-1.fc40.x86_64.rpm",
"type": "library",
"version": "9.1.158"
},
{
"name": "vim",
"properties": [
{
"name": "cachi2:found_by",
"value": "cachi2"
}
],
"purl": "pkg:rpm/fedora%20project/[email protected]?arch=i686&epoch=2&download_url=http%3A//fedora.c3sl.ufpr.br/linux/releases/40/Everything/source/tree/Packages/v/vim-9.1.158-1.fc40.src.rpm",
"type": "library",
"version": "9.1.158"
}
],
"metadata": {
"tools": [
{
"name": "cachi2",
"vendor": "red hat"
}
]
},
"specVersion": "1.4",
"version": 1
}
13 changes: 13 additions & 0 deletions tests/integration/test_rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,19 @@
),
id="rpm_multiple_packages",
),
pytest.param(
utils.TestParameters(
repo="https://github.com/cachito-testing/cachi2-rpm",
ref="22cb12ee0ba4f98d8a751e552c3caee8de5b0237",
packages=({"path": ".", "type": "rpm"},),
flags=["--dev-package-managers"],
check_output=True,
check_deps_checksums=False,
check_vendor_checksums=False,
expected_exit_code=0,
),
id="rpm_multiple_archs",
),
],
)
def test_rpm_packages(
Expand Down

0 comments on commit 2d21aa4

Please sign in to comment.