Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
lower_bounds: true
steps:
- uses: "actions/checkout@v7"
- uses: "actions/cache@v5"
- uses: "actions/cache@v6"
with:
path: "~/.cache/pip"
key: "${{ runner.os }}-pip-${{ hashFiles('**/*requirements*.txt', '**/*constraints*.lock', '**/setup.py', '**/pyproject.toml') }}"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ __pycache__/
/tests/settings/certs/
/build/
importer_result.json
uv.lock
19 changes: 17 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
[dependency-groups]
dev = [
"ansible-core",
"ansible-runner>=2.4.3",
"flake8>=7.3.0",
"pulp-glue>=0.29.2,<0.40",
"pulp-glue-deb>=0.3.0,<0.5",
"pycodestyle>=2.14.0",
"pylint>=4.0.6",
"pytest>=4.4.0",
"pytest-xdist>=3.8.0",
"vcrpy",
"voluptuous>=0.16.0",
]

[tool.black]
line-length = 100

Expand All @@ -18,8 +33,8 @@ serialize = [
[tool.bumpversion.parts.release]
optional_value = "prod"
values = [
"dev",
"prod",
"dev",
"prod",
]

[[tool.bumpversion.files]]
Expand Down
76,136 changes: 466 additions & 75,670 deletions tests/fixtures/deb_package-0.yml

Large diffs are not rendered by default.

253 changes: 150 additions & 103 deletions tests/fixtures/deb_package-1.yml
Original file line number Diff line number Diff line change
@@ -1,103 +1,150 @@
interactions:
- request:
body: null
headers:
? !!python/object/apply:multidict._multidict.istr
- Accept
: - application/json
Accept-Encoding:
- gzip, deflate, zstd
Connection:
- keep-alive
? !!python/object/apply:multidict._multidict.istr
- User-Agent
: - Squeezer/0.5.0-dev
method: GET
uri: http://pulp.example.org/pulp/api/v3/repositories/deb/apt/?name=test_deb_repository&offset=0&limit=1
response:
body:
string: '{"count":1,"next":null,"previous":null,"results":[{"pulp_href":"/pulp/api/v3/repositories/deb/apt/019eb35f-17ba-708e-b988-38a74aba420b/","prn":"prn:deb.aptrepository:019eb35f-17ba-708e-b988-38a74aba420b","pulp_created":"2026-06-10T21:10:14.203257Z","pulp_last_updated":"2026-06-10T21:10:24.221402Z","versions_href":"/pulp/api/v3/repositories/deb/apt/019eb35f-17ba-708e-b988-38a74aba420b/versions/","pulp_labels":{},"latest_version_href":"/pulp/api/v3/repositories/deb/apt/019eb35f-17ba-708e-b988-38a74aba420b/versions/1/","name":"test_deb_repository","description":null,"retain_repo_versions":null,"remote":null,"autopublish":false,"publish_upstream_release_fields":true,"signing_service":null,"signing_service_release_overrides":{}}]}'
headers:
Access-Control-Expose-Headers:
- Correlation-ID
Allow:
- GET, POST, HEAD, OPTIONS
Connection:
- keep-alive
Content-Length:
- '735'
Content-Type:
- application/json
Correlation-ID:
- ec83e8ea56d849059f0743968bff1546
Cross-Origin-Opener-Policy:
- same-origin
Date:
- Wed, 10 Jun 2026 21:10:27 GMT
Referrer-Policy:
- same-origin
Server:
- nginx/1.22.1
Vary:
- Accept
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
status:
code: 200
message: OK
- request:
body: null
headers:
? !!python/object/apply:multidict._multidict.istr
- Accept
: - application/json
Accept-Encoding:
- gzip, deflate, zstd
Connection:
- keep-alive
? !!python/object/apply:multidict._multidict.istr
- Correlation-Id
: - ec83e8ea56d849059f0743968bff1546
? !!python/object/apply:multidict._multidict.istr
- User-Agent
: - Squeezer/0.5.0-dev
method: GET
uri: http://pulp.example.org/pulp/api/v3/content/deb/packages/?sha256=eb061a19af924d0add800ea5c86546d125f96454b45e60a541c205bdba5f6f6b&repository_version=%2Fpulp%2Fapi%2Fv3%2Frepositories%2Fdeb%2Fapt%2F019eb35f-17ba-708e-b988-38a74aba420b%2Fversions%2F1%2F&offset=0&limit=1
response:
body:
string: '{"count":1,"next":null,"previous":null,"results":[{"pulp_href":"/pulp/api/v3/content/deb/packages/019eb35f-3e94-7214-8036-d77c4dfeba21/","prn":"prn:deb.package:019eb35f-3e94-7214-8036-d77c4dfeba21","pulp_created":"2026-06-10T21:10:24.153728Z","pulp_last_updated":"2026-06-10T21:10:24.153749Z","pulp_labels":{},"vuln_report":null,"artifact":"/pulp/api/v3/artifacts/019eb35f-3dbf-7b1f-ae8f-d456872442cd/","relative_path":"pool/g/geirrodr/geirrodr_1.0_armeb.deb","md5":null,"sha1":null,"sha224":"4e7f5641b0c912087fdc42a99aa3226c984f38dc169f8387e4d36622","sha256":"eb061a19af924d0add800ea5c86546d125f96454b45e60a541c205bdba5f6f6b","sha384":"e44ba9043b39e09f7c086178e0fd51ef6bc61bcd40f6fb80d308b2e6cf025d34167f73906289dc771059813acae432af","sha512":"6adf58df1e40469bac2a7ee2cb170c0aba7eab4ec3596250258b2bb15ab184165d85450d486d0f7ada1552c2bef5b06377049b8894417e8bd92c08f7f8785afc","package":"geirrodr","source":null,"version":"1.0","architecture":"armeb","section":"misc","priority":"optional","origin":null,"tag":null,"bugs":null,"essential":null,"build_essential":null,"installed_size":"9","maintainer":"Equivs
Dummy Package Generator <root@bd208d733cce>","original_maintainer":null,"description":"Geirrodr\n
Geirrodr was a jotunn and the father of the giantesses Gjalp and Greip.","description_md5":null,"homepage":null,"built_using":null,"auto_built_package":null,"multi_arch":"foreign","breaks":null,"conflicts":null,"depends":null,"recommends":null,"suggests":null,"enhances":null,"pre_depends":null,"provides":null,"replaces":null}]}'
headers:
Access-Control-Expose-Headers:
- Correlation-ID
Allow:
- GET, POST, HEAD, OPTIONS
Connection:
- keep-alive
Content-Length:
- '1534'
Content-Type:
- application/json
Correlation-ID:
- ec83e8ea56d849059f0743968bff1546
Cross-Origin-Opener-Policy:
- same-origin
Date:
- Wed, 10 Jun 2026 21:10:27 GMT
Referrer-Policy:
- same-origin
Server:
- nginx/1.22.1
Vary:
- Accept
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
status:
code: 200
message: OK
version: 1
{
"version": 1,
"interactions": [
{
"request": {
"method": "GET",
"uri": "http://pulp.example.org/pulp/api/v3/repositories/deb/apt/?name=test_deb_repository&offset=0&limit=1",
"body": null,
"headers": {
"User-Agent": [
"Squeezer/0.5.0-dev"
],
"Accept-Encoding": [
"gzip, deflate, zstd"
],
"Accept": [
"application/json"
],
"Connection": [
"keep-alive"
]
}
},
"response": {
"status": {
"code": 200,
"message": "OK"
},
"headers": {
"Allow": [
"GET, POST, HEAD, OPTIONS"
],
"Vary": [
"Accept"
],
"Date": [
"Mon, 24 Aug 2026 09:43:45 GMT"
],
"Server": [
"nginx/1.22.1"
],
"X-Frame-Options": [
"DENY"
],
"Correlation-ID": [
"f0033d465d754c8db2124641ee84e2d6"
],
"Content-Length": [
"761"
],
"Referrer-Policy": [
"same-origin"
],
"Connection": [
"keep-alive"
],
"Content-Type": [
"application/json"
],
"Access-Control-Expose-Headers": [
"Correlation-ID"
],
"X-Content-Type-Options": [
"nosniff"
],
"Cross-Origin-Opener-Policy": [
"same-origin"
]
},
"body": {
"string": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"pulp_href\":\"/pulp/api/v3/repositories/deb/apt/01a03327-77ef-781e-ab4f-f14918444a6d/\",\"prn\":\"prn:deb.aptrepository:01a03327-77ef-781e-ab4f-f14918444a6d\",\"pulp_created\":\"2026-08-24T09:43:39.769759Z\",\"pulp_last_updated\":\"2026-08-24T09:43:43.914882Z\",\"versions_href\":\"/pulp/api/v3/repositories/deb/apt/01a03327-77ef-781e-ab4f-f14918444a6d/versions/\",\"pulp_labels\":{},\"latest_version_href\":\"/pulp/api/v3/repositories/deb/apt/01a03327-77ef-781e-ab4f-f14918444a6d/versions/1/\",\"name\":\"test_deb_repository\",\"description\":null,\"retain_repo_versions\":null,\"retain_checkpoints\":null,\"remote\":null,\"autopublish\":false,\"publish_upstream_release_fields\":true,\"signing_service\":null,\"signing_service_release_overrides\":{}}]}"
}
}
},
{
"request": {
"method": "GET",
"uri": "http://pulp.example.org/pulp/api/v3/content/deb/packages/?sha256=eb061a19af924d0add800ea5c86546d125f96454b45e60a541c205bdba5f6f6b&repository_version=%2Fpulp%2Fapi%2Fv3%2Frepositories%2Fdeb%2Fapt%2F01a03327-77ef-781e-ab4f-f14918444a6d%2Fversions%2F1%2F&offset=0&limit=1",
"body": null,
"headers": {
"User-Agent": [
"Squeezer/0.5.0-dev"
],
"Accept-Encoding": [
"gzip, deflate, zstd"
],
"Accept": [
"application/json"
],
"Connection": [
"keep-alive"
],
"Correlation-Id": [
"f0033d465d754c8db2124641ee84e2d6"
]
}
},
"response": {
"status": {
"code": 200,
"message": "OK"
},
"headers": {
"Allow": [
"GET, POST, HEAD, OPTIONS"
],
"Vary": [
"Accept"
],
"Date": [
"Mon, 24 Aug 2026 09:43:45 GMT"
],
"Server": [
"nginx/1.22.1"
],
"X-Frame-Options": [
"DENY"
],
"Correlation-ID": [
"f0033d465d754c8db2124641ee84e2d6"
],
"Content-Length": [
"1534"
],
"Referrer-Policy": [
"same-origin"
],
"Connection": [
"keep-alive"
],
"Content-Type": [
"application/json"
],
"Access-Control-Expose-Headers": [
"Correlation-ID"
],
"X-Content-Type-Options": [
"nosniff"
],
"Cross-Origin-Opener-Policy": [
"same-origin"
]
},
"body": {
"string": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"pulp_href\":\"/pulp/api/v3/content/deb/packages/01a03327-87ef-78a5-a0ca-c2178d452f3c/\",\"prn\":\"prn:deb.package:01a03327-87ef-78a5-a0ca-c2178d452f3c\",\"pulp_created\":\"2026-08-24T09:43:43.855716Z\",\"pulp_last_updated\":\"2026-08-24T09:43:43.855730Z\",\"pulp_labels\":{},\"vuln_report\":null,\"artifact\":\"/pulp/api/v3/artifacts/01a03327-8754-772b-9c59-8f0c9f7afc71/\",\"relative_path\":\"pool/g/geirrodr/geirrodr_1.0_armeb.deb\",\"md5\":null,\"sha1\":null,\"sha224\":\"4e7f5641b0c912087fdc42a99aa3226c984f38dc169f8387e4d36622\",\"sha256\":\"eb061a19af924d0add800ea5c86546d125f96454b45e60a541c205bdba5f6f6b\",\"sha384\":\"e44ba9043b39e09f7c086178e0fd51ef6bc61bcd40f6fb80d308b2e6cf025d34167f73906289dc771059813acae432af\",\"sha512\":\"6adf58df1e40469bac2a7ee2cb170c0aba7eab4ec3596250258b2bb15ab184165d85450d486d0f7ada1552c2bef5b06377049b8894417e8bd92c08f7f8785afc\",\"package\":\"geirrodr\",\"source\":null,\"version\":\"1.0\",\"architecture\":\"armeb\",\"section\":\"misc\",\"priority\":\"optional\",\"origin\":null,\"tag\":null,\"bugs\":null,\"essential\":null,\"build_essential\":null,\"installed_size\":\"9\",\"maintainer\":\"Equivs Dummy Package Generator <root@bd208d733cce>\",\"original_maintainer\":null,\"description\":\"Geirrodr\\n Geirrodr was a jotunn and the father of the giantesses Gjalp and Greip.\",\"description_md5\":null,\"homepage\":null,\"built_using\":null,\"auto_built_package\":null,\"multi_arch\":\"foreign\",\"breaks\":null,\"conflicts\":null,\"depends\":null,\"recommends\":null,\"suggests\":null,\"enhances\":null,\"pre_depends\":null,\"provides\":null,\"replaces\":null}]}"
}
}
}
]
}
Loading