Skip to content

Commit 1baa735

Browse files
authored
Merge pull request #210 from mdellweg/195_string_arrays
Improve deb_remote test
2 parents 7d32c62 + 63e6577 commit 1baa735

File tree

11 files changed

+10738
-4269
lines changed

11 files changed

+10738
-4269
lines changed

tests/fixtures/deb_remote-0.yml

Lines changed: 10537 additions & 4080 deletions
Large diffs are not rendered by default.

tests/fixtures/deb_remote-1.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ interactions:
99
Connection:
1010
- keep-alive
1111
User-Agent:
12-
- Squeezer/0.1.0-dev
12+
- Squeezer/0.2.0-dev
1313
method: GET
1414
uri: http://pulp.example.org/pulp/api/v3/remotes/deb/apt/?name=test_deb_remote&offset=0&limit=1
1515
response:
1616
body:
17-
string: '{"count":1,"next":null,"previous":null,"results":[{"pulp_href":"/pulp/api/v3/remotes/deb/apt/0194a270-bd55-72ff-83a5-7183858e4221/","prn":"prn:deb.aptremote:0194a270-bd55-72ff-83a5-7183858e4221","pulp_created":"2025-01-26T11:48:05.078088Z","pulp_last_updated":"2025-01-26T11:48:05.078104Z","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":"jotunheimr","architectures":"ppc64","sync_sources":false,"sync_udebs":false,"sync_installer":false,"gpgkey":null,"ignore_missing_package_indices":false}]}'
17+
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
18+
jotunheimr","architectures":"arm ppc64","sync_sources":false,"sync_udebs":false,"sync_installer":false,"gpgkey":null,"ignore_missing_package_indices":false}]}'
1819
headers:
1920
Access-Control-Expose-Headers:
2021
- Correlation-ID
@@ -23,15 +24,15 @@ interactions:
2324
Connection:
2425
- keep-alive
2526
Content-Length:
26-
- '1057'
27+
- '1068'
2728
Content-Type:
2829
- application/json
2930
Correlation-ID:
30-
- 30e35a83b9f24efea0ae15cd092ea579
31+
- e0d749f3ad2d46c88bc0272087c71df2
3132
Cross-Origin-Opener-Policy:
3233
- same-origin
3334
Date:
34-
- Sun, 26 Jan 2025 11:48:05 GMT
35+
- Fri, 18 Jul 2025 07:53:53 GMT
3536
Referrer-Policy:
3637
- same-origin
3738
Server:

tests/fixtures/deb_remote-2.yml

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ interactions:
99
Connection:
1010
- keep-alive
1111
User-Agent:
12-
- Squeezer/0.1.0-dev
12+
- Squeezer/0.2.0-dev
1313
method: GET
1414
uri: http://pulp.example.org/pulp/api/v3/remotes/deb/apt/?name=test_deb_remote&offset=0&limit=1
1515
response:
1616
body:
17-
string: '{"count":1,"next":null,"previous":null,"results":[{"pulp_href":"/pulp/api/v3/remotes/deb/apt/0194a270-bd55-72ff-83a5-7183858e4221/","prn":"prn:deb.aptremote:0194a270-bd55-72ff-83a5-7183858e4221","pulp_created":"2025-01-26T11:48:05.078088Z","pulp_last_updated":"2025-01-26T11:48:05.078104Z","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":"jotunheimr","architectures":"ppc64","sync_sources":false,"sync_udebs":false,"sync_installer":false,"gpgkey":null,"ignore_missing_package_indices":false}]}'
17+
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
18+
jotunheimr","architectures":"arm ppc64","sync_sources":false,"sync_udebs":false,"sync_installer":false,"gpgkey":null,"ignore_missing_package_indices":false}]}'
1819
headers:
1920
Access-Control-Expose-Headers:
2021
- Correlation-ID
@@ -23,15 +24,15 @@ interactions:
2324
Connection:
2425
- keep-alive
2526
Content-Length:
26-
- '1057'
27+
- '1068'
2728
Content-Type:
2829
- application/json
2930
Correlation-ID:
30-
- 69ac3bcac76545daa69e64fae18eabde
31+
- 98fdedb479d64e1398b1d33bd54d9ad3
3132
Cross-Origin-Opener-Policy:
3233
- same-origin
3334
Date:
34-
- Sun, 26 Jan 2025 11:48:05 GMT
35+
- Fri, 18 Jul 2025 07:53:53 GMT
3536
Referrer-Policy:
3637
- same-origin
3738
Server:
@@ -57,16 +58,16 @@ interactions:
5758
Content-Length:
5859
- '48'
5960
Correlation-Id:
60-
- 69ac3bcac76545daa69e64fae18eabde
61+
- 98fdedb479d64e1398b1d33bd54d9ad3
6162
User-Agent:
62-
- Squeezer/0.1.0-dev
63+
- Squeezer/0.2.0-dev
6364
content-type:
6465
- application/json
6566
method: PATCH
66-
uri: http://pulp.example.org/pulp/api/v3/remotes/deb/apt/0194a270-bd55-72ff-83a5-7183858e4221/
67+
uri: http://pulp.example.org/pulp/api/v3/remotes/deb/apt/01981c86-7cd6-76b8-97bc-9d58a4c90063/
6768
response:
6869
body:
69-
string: '{"task":"/pulp/api/v3/tasks/0194a270-c0d1-76b7-8d53-afbf37033a63/"}'
70+
string: '{"task":"/pulp/api/v3/tasks/01981c86-800c-7e3b-9487-c2c8f8290c55/"}'
7071
headers:
7172
Access-Control-Expose-Headers:
7273
- Correlation-ID
@@ -79,11 +80,11 @@ interactions:
7980
Content-Type:
8081
- application/json
8182
Correlation-ID:
82-
- 69ac3bcac76545daa69e64fae18eabde
83+
- 98fdedb479d64e1398b1d33bd54d9ad3
8384
Cross-Origin-Opener-Policy:
8485
- same-origin
8586
Date:
86-
- Sun, 26 Jan 2025 11:48:05 GMT
87+
- Fri, 18 Jul 2025 07:53:53 GMT
8788
Referrer-Policy:
8889
- same-origin
8990
Server:
@@ -107,14 +108,14 @@ interactions:
107108
Connection:
108109
- keep-alive
109110
Correlation-Id:
110-
- 69ac3bcac76545daa69e64fae18eabde
111+
- 98fdedb479d64e1398b1d33bd54d9ad3
111112
User-Agent:
112-
- Squeezer/0.1.0-dev
113+
- Squeezer/0.2.0-dev
113114
method: GET
114-
uri: http://pulp.example.org/pulp/api/v3/tasks/0194a270-c0d1-76b7-8d53-afbf37033a63/
115+
uri: http://pulp.example.org/pulp/api/v3/tasks/01981c86-800c-7e3b-9487-c2c8f8290c55/
115116
response:
116117
body:
117-
string: '{"pulp_href":"/pulp/api/v3/tasks/0194a270-c0d1-76b7-8d53-afbf37033a63/","prn":"prn:core.task:0194a270-c0d1-76b7-8d53-afbf37033a63","pulp_created":"2025-01-26T11:48:05.970316Z","pulp_last_updated":"2025-01-26T11:48:05.970326Z","state":"completed","name":"pulpcore.app.tasks.base.general_update","logging_cid":"69ac3bcac76545daa69e64fae18eabde","created_by":"/pulp/api/v3/users/1/","unblocked_at":"2025-01-26T11:48:05.977135Z","started_at":"2025-01-26T11:48:05.977701Z","finished_at":"2025-01-26T11:48:05.981976Z","error":null,"worker":null,"parent_task":null,"child_tasks":[],"task_group":null,"progress_reports":[],"created_resources":[],"reserved_resources_record":["prn:deb.aptremote:0194a270-bd55-72ff-83a5-7183858e4221","shared:prn:core.domain:0194a25b-8114-7dfe-8f64-04c6d8e26465"]}'
118+
string: '{"pulp_href":"/pulp/api/v3/tasks/01981c86-800c-7e3b-9487-c2c8f8290c55/","prn":"prn:core.task:01981c86-800c-7e3b-9487-c2c8f8290c55","pulp_created":"2025-07-18T07:53:53.420768Z","pulp_last_updated":"2025-07-18T07:53:53.420778Z","state":"completed","name":"pulpcore.app.tasks.base.ageneral_update","logging_cid":"98fdedb479d64e1398b1d33bd54d9ad3","created_by":"/pulp/api/v3/users/1/","unblocked_at":"2025-07-18T07:53:53.426398Z","started_at":"2025-07-18T07:53:53.427153Z","finished_at":"2025-07-18T07:53:53.431996Z","error":null,"worker":null,"parent_task":null,"child_tasks":[],"task_group":null,"progress_reports":[],"created_resources":[],"reserved_resources_record":["prn:deb.aptremote:01981c86-7cd6-76b8-97bc-9d58a4c90063","shared:prn:core.domain:7d8c4e1b-94d4-4d3f-89b7-4a67e6ba61ca"]}'
118119
headers:
119120
Access-Control-Expose-Headers:
120121
- Correlation-ID
@@ -123,15 +124,15 @@ interactions:
123124
Connection:
124125
- keep-alive
125126
Content-Length:
126-
- '787'
127+
- '788'
127128
Content-Type:
128129
- application/json
129130
Correlation-ID:
130-
- 69ac3bcac76545daa69e64fae18eabde
131+
- 98fdedb479d64e1398b1d33bd54d9ad3
131132
Cross-Origin-Opener-Policy:
132133
- same-origin
133134
Date:
134-
- Sun, 26 Jan 2025 11:48:06 GMT
135+
- Fri, 18 Jul 2025 07:53:53 GMT
135136
Referrer-Policy:
136137
- same-origin
137138
Server:
@@ -155,14 +156,15 @@ interactions:
155156
Connection:
156157
- keep-alive
157158
Correlation-Id:
158-
- 69ac3bcac76545daa69e64fae18eabde
159+
- 98fdedb479d64e1398b1d33bd54d9ad3
159160
User-Agent:
160-
- Squeezer/0.1.0-dev
161+
- Squeezer/0.2.0-dev
161162
method: GET
162-
uri: http://pulp.example.org/pulp/api/v3/remotes/deb/apt/0194a270-bd55-72ff-83a5-7183858e4221/
163+
uri: http://pulp.example.org/pulp/api/v3/remotes/deb/apt/01981c86-7cd6-76b8-97bc-9d58a4c90063/
163164
response:
164165
body:
165-
string: '{"pulp_href":"/pulp/api/v3/remotes/deb/apt/0194a270-bd55-72ff-83a5-7183858e4221/","prn":"prn:deb.aptremote:0194a270-bd55-72ff-83a5-7183858e4221","pulp_created":"2025-01-26T11:48:05.078088Z","pulp_last_updated":"2025-01-26T11:48:05.979996Z","name":"test_deb_remote","url":"https://example.org/deb/","ca_cert":null,"client_cert":null,"tls_validation":false,"proxy_url":"http://proxy.int:3128","pulp_labels":{},"download_concurrency":null,"max_retries":null,"policy":"on_demand","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":"jotunheimr","architectures":"ppc64","sync_sources":false,"sync_udebs":false,"sync_installer":false,"gpgkey":null,"ignore_missing_package_indices":false}'
166+
string: '{"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:53.430594Z","name":"test_deb_remote","url":"https://example.org/deb/","ca_cert":null,"client_cert":null,"tls_validation":false,"proxy_url":"http://proxy.int:3128","pulp_labels":{},"download_concurrency":null,"max_retries":null,"policy":"on_demand","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
167+
jotunheimr","architectures":"arm ppc64","sync_sources":false,"sync_udebs":false,"sync_installer":false,"gpgkey":null,"ignore_missing_package_indices":false}'
166168
headers:
167169
Access-Control-Expose-Headers:
168170
- Correlation-ID
@@ -171,15 +173,15 @@ interactions:
171173
Connection:
172174
- keep-alive
173175
Content-Length:
174-
- '1006'
176+
- '1017'
175177
Content-Type:
176178
- application/json
177179
Correlation-ID:
178-
- 69ac3bcac76545daa69e64fae18eabde
180+
- 98fdedb479d64e1398b1d33bd54d9ad3
179181
Cross-Origin-Opener-Policy:
180182
- same-origin
181183
Date:
182-
- Sun, 26 Jan 2025 11:48:06 GMT
184+
- Fri, 18 Jul 2025 07:53:53 GMT
183185
Referrer-Policy:
184186
- same-origin
185187
Server:

tests/fixtures/deb_remote-3.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ interactions:
99
Connection:
1010
- keep-alive
1111
User-Agent:
12-
- Squeezer/0.1.0-dev
12+
- Squeezer/0.2.0-dev
1313
method: GET
1414
uri: http://pulp.example.org/pulp/api/v3/remotes/deb/apt/?name=test_deb_remote&offset=0&limit=1
1515
response:
1616
body:
17-
string: '{"count":1,"next":null,"previous":null,"results":[{"pulp_href":"/pulp/api/v3/remotes/deb/apt/0194a270-bd55-72ff-83a5-7183858e4221/","prn":"prn:deb.aptremote:0194a270-bd55-72ff-83a5-7183858e4221","pulp_created":"2025-01-26T11:48:05.078088Z","pulp_last_updated":"2025-01-26T11:48:05.979996Z","name":"test_deb_remote","url":"https://example.org/deb/","ca_cert":null,"client_cert":null,"tls_validation":false,"proxy_url":"http://proxy.int:3128","pulp_labels":{},"download_concurrency":null,"max_retries":null,"policy":"on_demand","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":"jotunheimr","architectures":"ppc64","sync_sources":false,"sync_udebs":false,"sync_installer":false,"gpgkey":null,"ignore_missing_package_indices":false}]}'
17+
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:53.430594Z","name":"test_deb_remote","url":"https://example.org/deb/","ca_cert":null,"client_cert":null,"tls_validation":false,"proxy_url":"http://proxy.int:3128","pulp_labels":{},"download_concurrency":null,"max_retries":null,"policy":"on_demand","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
18+
jotunheimr","architectures":"arm ppc64","sync_sources":false,"sync_udebs":false,"sync_installer":false,"gpgkey":null,"ignore_missing_package_indices":false}]}'
1819
headers:
1920
Access-Control-Expose-Headers:
2021
- Correlation-ID
@@ -23,15 +24,15 @@ interactions:
2324
Connection:
2425
- keep-alive
2526
Content-Length:
26-
- '1058'
27+
- '1069'
2728
Content-Type:
2829
- application/json
2930
Correlation-ID:
30-
- 44e0559554f348b89bf37f8078638a86
31+
- d5d5c00f534d494194e483c4751d8980
3132
Cross-Origin-Opener-Policy:
3233
- same-origin
3334
Date:
34-
- Sun, 26 Jan 2025 11:48:06 GMT
35+
- Fri, 18 Jul 2025 07:53:53 GMT
3536
Referrer-Policy:
3637
- same-origin
3738
Server:

0 commit comments

Comments
 (0)