Skip to content
Open
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
77,310 changes: 162 additions & 77,148 deletions tests/fixtures/deb_repository-0.yml

Large diffs are not rendered by default.

277 changes: 159 additions & 118 deletions tests/fixtures/deb_repository-1.yml
Original file line number Diff line number Diff line change
@@ -1,118 +1,159 @@
interactions:
- request:
body: null
headers:
? !!python/object/new:multidict._multidict_py.istr
args:
- Accept
state:
__istr_identity__: Accept
: - application/json
Accept-Encoding:
- gzip, deflate, zstd
Connection:
- keep-alive
? !!python/object/new:multidict._multidict_py.istr
args:
- User-Agent
state:
__istr_identity__: User-Agent
: - Squeezer/0.4.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":0,"next":null,"previous":null,"results":[]}'
headers:
Access-Control-Expose-Headers:
- Correlation-ID
Allow:
- GET, POST, HEAD, OPTIONS
Connection:
- keep-alive
Content-Length:
- '52'
Content-Type:
- application/json
Correlation-ID:
- 9f23225ad146416ba1d4d24f3d818a4a
Cross-Origin-Opener-Policy:
- same-origin
Date:
- Tue, 26 May 2026 10:57:20 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: '{"description": null, "name": "test_deb_repository"}'
headers:
? !!python/object/new:multidict._multidict_py.istr
args:
- Accept
state:
__istr_identity__: Accept
: - application/json
Accept-Encoding:
- gzip, deflate, zstd
Connection:
- keep-alive
Content-Length:
- '52'
Correlation-Id:
- 9f23225ad146416ba1d4d24f3d818a4a
? !!python/object/new:multidict._multidict_py.istr
args:
- User-Agent
state:
__istr_identity__: User-Agent
: - Squeezer/0.4.0-dev
content-type:
- application/json
method: POST
uri: http://pulp.example.org/pulp/api/v3/repositories/deb/apt/
response:
body:
string: '{"pulp_href":"/pulp/api/v3/repositories/deb/apt/019e63ee-9688-783a-b803-3075d01e6c85/","prn":"prn:deb.aptrepository:019e63ee-9688-783a-b803-3075d01e6c85","pulp_created":"2026-05-26T10:57:21.033732Z","pulp_last_updated":"2026-05-26T10:57:21.040401Z","versions_href":"/pulp/api/v3/repositories/deb/apt/019e63ee-9688-783a-b803-3075d01e6c85/versions/","pulp_labels":{},"latest_version_href":"/pulp/api/v3/repositories/deb/apt/019e63ee-9688-783a-b803-3075d01e6c85/versions/0/","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":{}}'
headers:
Access-Control-Expose-Headers:
- Correlation-ID
Allow:
- GET, POST, HEAD, OPTIONS
Connection:
- keep-alive
Content-Length:
- '709'
Content-Type:
- application/json
Correlation-ID:
- 9f23225ad146416ba1d4d24f3d818a4a
Cross-Origin-Opener-Policy:
- same-origin
Date:
- Tue, 26 May 2026 10:57:21 GMT
Location:
- /pulp/api/v3/repositories/deb/apt/019e63ee-9688-783a-b803-3075d01e6c85/
Referrer-Policy:
- same-origin
Server:
- nginx/1.22.1
Vary:
- Accept
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
status:
code: 201
message: Created
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"
],
"Accept": [
"application/json"
],
"Connection": [
"keep-alive"
]
}
},
"response": {
"status": {
"code": 200,
"message": "OK"
},
"headers": {
"Referrer-Policy": [
"same-origin"
],
"Date": [
"Wed, 24 Jun 2026 15:09:16 GMT"
],
"X-Frame-Options": [
"DENY"
],
"Allow": [
"GET, POST, HEAD, OPTIONS"
],
"Connection": [
"keep-alive"
],
"Content-Type": [
"application/json"
],
"Content-Length": [
"52"
],
"Server": [
"nginx/1.22.1"
],
"Vary": [
"Accept"
],
"Cross-Origin-Opener-Policy": [
"same-origin"
],
"Correlation-ID": [
"6cb099e8a8804216ac2088d6b695c182"
],
"Access-Control-Expose-Headers": [
"Correlation-ID"
],
"X-Content-Type-Options": [
"nosniff"
]
},
"body": {
"string": "{\"count\":0,\"next\":null,\"previous\":null,\"results\":[]}"
}
}
},
{
"request": {
"method": "POST",
"uri": "http://pulp.example.org/pulp/api/v3/repositories/deb/apt/",
"body": "{\"description\": null, \"name\": \"test_deb_repository\"}",
"headers": {
"User-Agent": [
"Squeezer/0.5.0-dev"
],
"Accept-Encoding": [
"gzip, deflate"
],
"Accept": [
"application/json"
],
"Connection": [
"keep-alive"
],
"Correlation-Id": [
"6cb099e8a8804216ac2088d6b695c182"
],
"Content-Type": [
"application/json"
],
"Content-Length": [
"52"
]
}
},
"response": {
"status": {
"code": 201,
"message": "Created"
},
"headers": {
"Referrer-Policy": [
"same-origin"
],
"Date": [
"Wed, 24 Jun 2026 15:09:16 GMT"
],
"X-Frame-Options": [
"DENY"
],
"Allow": [
"GET, POST, HEAD, OPTIONS"
],
"Connection": [
"keep-alive"
],
"Content-Type": [
"application/json"
],
"Content-Length": [
"709"
],
"Server": [
"nginx/1.22.1"
],
"Location": [
"/pulp/api/v3/repositories/deb/apt/019efa2d-a818-7502-91d2-8963e11be14b/"
],
"Vary": [
"Accept"
],
"Cross-Origin-Opener-Policy": [
"same-origin"
],
"Correlation-ID": [
"6cb099e8a8804216ac2088d6b695c182"
],
"Access-Control-Expose-Headers": [
"Correlation-ID"
],
"X-Content-Type-Options": [
"nosniff"
]
},
"body": {
"string": "{\"pulp_href\":\"/pulp/api/v3/repositories/deb/apt/019efa2d-a818-7502-91d2-8963e11be14b/\",\"prn\":\"prn:deb.aptrepository:019efa2d-a818-7502-91d2-8963e11be14b\",\"pulp_created\":\"2026-06-24T15:09:16.697304Z\",\"pulp_last_updated\":\"2026-06-24T15:09:16.704198Z\",\"versions_href\":\"/pulp/api/v3/repositories/deb/apt/019efa2d-a818-7502-91d2-8963e11be14b/versions/\",\"pulp_labels\":{},\"latest_version_href\":\"/pulp/api/v3/repositories/deb/apt/019efa2d-a818-7502-91d2-8963e11be14b/versions/0/\",\"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\":{}}"
}
}
}
]
}
Loading
Loading