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
4 changes: 2 additions & 2 deletions lower_bounds_constraints.lock
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pulp-glue==0.29.2
pulp-glue-deb==0.3.0
pulp-glue==0.39.5
pulp-glue-deb==0.4.0
4 changes: 2 additions & 2 deletions plugins/module_utils/pulp_glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

from ansible.module_utils.basic import AnsibleModule, env_fallback, missing_required_lib

GLUE_VERSION_SPEC = ">=0.29.2,<0.40"
GLUE_DEB_VERSION_SPEC = ">=0.3.0,<0.5"
GLUE_VERSION_SPEC = ">=0.39.5,<0.41"
GLUE_DEB_VERSION_SPEC = ">=0.4.0,<0.6"


def assert_version(spec, version, name):
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/api_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def main():
if json_body is None:
body = module.params["body"]
else:
body = PreprocessedEntityDefinition(json.loads(json_body))
body = PreprocessedEntityDefinition(json.loads(json_body), _partial=False)
if module.pulp_ctx.api.operations[operation_id][0].upper() not in ["GET", "HEAD"]:
module.set_changed()
try:
Expand Down
4 changes: 2 additions & 2 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pulp-glue<0.40,>=0.29.2
pulp-glue-deb<0.5,>=0.3.0
pulp-glue<0.41,>=0.39.5
pulp-glue-deb<0.6,>=0.4.0

ansible-core
ansible_runner
Expand Down
64,263 changes: 245 additions & 64,018 deletions tests/fixtures/deb_remote-0.yml

Large diffs are not rendered by default.

125 changes: 76 additions & 49 deletions tests/fixtures/deb_remote-1.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,76 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- Squeezer/0.2.0-dev
method: GET
uri: http://pulp.example.org/pulp/api/v3/remotes/deb/apt/?name=test_deb_remote&offset=0&limit=1
response:
body:
string: '{"count":1,"next":null,"previous":null,"results":[{"pulp_href":"/pulp/api/v3/remotes/deb/apt/01981c86-7cd6-76b8-97bc-9d58a4c90063/","prn":"prn:deb.aptremote:01981c86-7cd6-76b8-97bc-9d58a4c90063","pulp_created":"2025-07-18T07:53:52.598516Z","pulp_last_updated":"2025-07-18T07:53:52.598526Z","name":"test_deb_remote","url":"https://example.org/deb/","ca_cert":null,"client_cert":null,"tls_validation":true,"proxy_url":"http://proxy.int:3128","pulp_labels":{},"download_concurrency":null,"max_retries":null,"policy":"immediate","total_timeout":null,"connect_timeout":null,"sock_connect_timeout":null,"sock_read_timeout":null,"headers":null,"rate_limit":null,"hidden_fields":[{"name":"client_key","is_set":false},{"name":"proxy_username","is_set":false},{"name":"proxy_password","is_set":false},{"name":"username","is_set":false},{"name":"password","is_set":false}],"distributions":"ragnarok","components":"asgard
jotunheimr","architectures":"arm ppc64","sync_sources":false,"sync_udebs":false,"sync_installer":false,"gpgkey":null,"ignore_missing_package_indices":false}]}'
headers:
Access-Control-Expose-Headers:
- Correlation-ID
Allow:
- GET, POST, HEAD, OPTIONS
Connection:
- keep-alive
Content-Length:
- '1068'
Content-Type:
- application/json
Correlation-ID:
- e0d749f3ad2d46c88bc0272087c71df2
Cross-Origin-Opener-Policy:
- same-origin
Date:
- Fri, 18 Jul 2025 07:53:53 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/remotes/deb/apt/?name=test_deb_remote&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": {
"Server": [
"nginx/1.22.1"
],
"Connection": [
"keep-alive"
],
"Cross-Origin-Opener-Policy": [
"same-origin"
],
"Referrer-Policy": [
"same-origin"
],
"Access-Control-Expose-Headers": [
"Correlation-ID"
],
"Content-Length": [
"1068"
],
"Allow": [
"GET, POST, HEAD, OPTIONS"
],
"Vary": [
"Accept"
],
"Date": [
"Thu, 27 Aug 2026 09:03:08 GMT"
],
"Correlation-ID": [
"254ba607b8f449058c48095db79b0332"
],
"X-Content-Type-Options": [
"nosniff"
],
"X-Frame-Options": [
"DENY"
],
"Content-Type": [
"application/json"
]
},
"body": {
"string": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"pulp_href\":\"/pulp/api/v3/remotes/deb/apt/01a04275-7176-7bd6-bf54-9a9680b20804/\",\"prn\":\"prn:deb.aptremote:01a04275-7176-7bd6-bf54-9a9680b20804\",\"pulp_created\":\"2026-08-27T09:03:08.150546Z\",\"pulp_last_updated\":\"2026-08-27T09:03:08.150555Z\",\"name\":\"test_deb_remote\",\"url\":\"https://example.org/deb/\",\"pulp_labels\":{},\"policy\":\"immediate\",\"hidden_fields\":[{\"name\":\"client_key\",\"is_set\":false},{\"name\":\"proxy_username\",\"is_set\":false},{\"name\":\"proxy_password\",\"is_set\":false},{\"name\":\"username\",\"is_set\":false},{\"name\":\"password\",\"is_set\":false}],\"ca_cert\":null,\"client_cert\":null,\"tls_validation\":true,\"proxy_url\":\"http://proxy.int:3128\",\"max_retries\":null,\"total_timeout\":null,\"connect_timeout\":null,\"sock_connect_timeout\":null,\"sock_read_timeout\":null,\"headers\":null,\"download_concurrency\":null,\"rate_limit\":null,\"distributions\":\"ragnarok\",\"components\":\"asgard jotunheimr\",\"architectures\":\"arm ppc64\",\"sync_sources\":false,\"sync_udebs\":false,\"sync_installer\":false,\"gpgkey\":null,\"ignore_missing_package_indices\":false}]}"
}
}
}
]
}
Loading