pulpcore 3.92.0__py3-none-any.whl → 3.92.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulpcore might be problematic. Click here for more details.
- pulp_certguard/app/__init__.py +1 -1
- pulp_file/app/__init__.py +1 -1
- pulpcore/app/apps.py +1 -1
- pulpcore/app/models/repository.py +2 -2
- pulpcore/content/handler.py +2 -2
- pulpcore/tests/unit/content/test_handler.py +4 -4
- {pulpcore-3.92.0.dist-info → pulpcore-3.92.1.dist-info}/METADATA +1 -1
- {pulpcore-3.92.0.dist-info → pulpcore-3.92.1.dist-info}/RECORD +12 -12
- {pulpcore-3.92.0.dist-info → pulpcore-3.92.1.dist-info}/WHEEL +0 -0
- {pulpcore-3.92.0.dist-info → pulpcore-3.92.1.dist-info}/entry_points.txt +0 -0
- {pulpcore-3.92.0.dist-info → pulpcore-3.92.1.dist-info}/licenses/LICENSE +0 -0
- {pulpcore-3.92.0.dist-info → pulpcore-3.92.1.dist-info}/top_level.txt +0 -0
pulp_certguard/app/__init__.py
CHANGED
pulp_file/app/__init__.py
CHANGED
pulpcore/app/apps.py
CHANGED
|
@@ -376,10 +376,10 @@ class Repository(MasterModel):
|
|
|
376
376
|
if not cpk or already_present.exists():
|
|
377
377
|
return None
|
|
378
378
|
|
|
379
|
-
from pulpcore.plugin.tasking import dispatch,
|
|
379
|
+
from pulpcore.plugin.tasking import dispatch, aadd_and_remove
|
|
380
380
|
|
|
381
381
|
body = {"repository_pk": self.pk, "add_content_units": [cpk], "remove_content_units": []}
|
|
382
|
-
return dispatch(
|
|
382
|
+
return dispatch(aadd_and_remove, kwargs=body, exclusive_resources=[self], immediate=True)
|
|
383
383
|
|
|
384
384
|
async def async_pull_through_add_content(self, content_artifact):
|
|
385
385
|
cpk = content_artifact.content_id
|
pulpcore/content/handler.py
CHANGED
|
@@ -903,7 +903,7 @@ class Handler:
|
|
|
903
903
|
ca = ra.content_artifact
|
|
904
904
|
# Try to add content to repository if present & supported
|
|
905
905
|
if repository and repository.PULL_THROUGH_SUPPORTED:
|
|
906
|
-
await
|
|
906
|
+
await repository.async_pull_through_add_content(ca)
|
|
907
907
|
# Try to stream the ContentArtifact if already created
|
|
908
908
|
if ca.artifact:
|
|
909
909
|
return await self._serve_content_artifact(ca, headers, request)
|
|
@@ -1347,7 +1347,7 @@ class Handler:
|
|
|
1347
1347
|
)
|
|
1348
1348
|
# Try to add content to repository if present & supported
|
|
1349
1349
|
if repository and repository.PULL_THROUGH_SUPPORTED:
|
|
1350
|
-
await
|
|
1350
|
+
await repository.async_pull_through_add_content(ca)
|
|
1351
1351
|
await response.write_eof()
|
|
1352
1352
|
|
|
1353
1353
|
if response.status == 404:
|
|
@@ -533,7 +533,7 @@ async def test_pull_through_repository_add(request123, monkeypatch):
|
|
|
533
533
|
await create_remote_artifact(remote, ca)
|
|
534
534
|
repo = await create_repository()
|
|
535
535
|
monkeypatch.setattr(Remote, "get_remote_artifact_content_type", Mock(return_value=Content))
|
|
536
|
-
monkeypatch.setattr(Repository, "
|
|
536
|
+
monkeypatch.setattr(Repository, "async_pull_through_add_content", AsyncMock())
|
|
537
537
|
distro = await create_distribution(remote, repository=repo)
|
|
538
538
|
|
|
539
539
|
try:
|
|
@@ -541,7 +541,7 @@ async def test_pull_through_repository_add(request123, monkeypatch):
|
|
|
541
541
|
await handler._match_and_stream(f"{distro.base_path}/c123", request123)
|
|
542
542
|
handler._stream_content_artifact.assert_called_once()
|
|
543
543
|
assert ca in handler._stream_content_artifact.call_args[0]
|
|
544
|
-
repo.
|
|
544
|
+
repo.async_pull_through_add_content.assert_not_called()
|
|
545
545
|
|
|
546
546
|
# Now set PULL_THROUGH_SUPPORTED=True and see the method is called with CA
|
|
547
547
|
monkeypatch.setattr(Repository, "PULL_THROUGH_SUPPORTED", True)
|
|
@@ -549,8 +549,8 @@ async def test_pull_through_repository_add(request123, monkeypatch):
|
|
|
549
549
|
await handler._match_and_stream(f"{distro.base_path}/c123", request123)
|
|
550
550
|
handler._stream_content_artifact.assert_called_once()
|
|
551
551
|
assert ca in handler._stream_content_artifact.call_args[0]
|
|
552
|
-
repo.
|
|
553
|
-
assert ca in repo.
|
|
552
|
+
repo.async_pull_through_add_content.assert_called_once()
|
|
553
|
+
assert ca in repo.async_pull_through_add_content.call_args[0]
|
|
554
554
|
finally:
|
|
555
555
|
await content.adelete()
|
|
556
556
|
await repo.adelete()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
pulp_certguard/__init__.py,sha256=llnEd00PrsAretsgAOHiNKFbmvIdXe3iDVPmSaKz7gU,71
|
|
2
2
|
pulp_certguard/pytest_plugin.py,sha256=qhRbChzqN2PROtD-65KuoTfKr5k9T3GPsz9daFgpqpM,852
|
|
3
|
-
pulp_certguard/app/__init__.py,sha256=
|
|
3
|
+
pulp_certguard/app/__init__.py,sha256=hzmnwPoBb09t2bQa_KpeBO5twFILxTh3_wZDGmfxs8A,297
|
|
4
4
|
pulp_certguard/app/models.py,sha256=YLEhBtZM4hetekVZ_GTnbLlWD6CkIQw2B3ILwXRcq-s,7483
|
|
5
5
|
pulp_certguard/app/serializers.py,sha256=9IxlQiy783RdKF9oI1mrYS4haG5Boy2DOjfP_eJtMLY,1726
|
|
6
6
|
pulp_certguard/app/viewsets.py,sha256=1_gNmsWyOT8kcOiGVkn4-wrtAjZO4wC8q0-aoEsCpjI,697
|
|
@@ -51,7 +51,7 @@ pulp_certguard/tests/unit/test_rhsm_check_path.py,sha256=Q1CsXnUgD7ELvtolPeumyNr
|
|
|
51
51
|
pulp_file/__init__.py,sha256=0vOCXofR6Eyxkg4y66esnOGPeESCe23C1cNBHj56w44,61
|
|
52
52
|
pulp_file/manifest.py,sha256=1WwIOJrPSkFcmkRm7CkWifVOCoZvo_nnANgce6uuG7U,3796
|
|
53
53
|
pulp_file/pytest_plugin.py,sha256=l1PvTxUi5D3uJy4SnHWNhr-otWEYNcm-kc5nSqVJg0Y,10646
|
|
54
|
-
pulp_file/app/__init__.py,sha256=
|
|
54
|
+
pulp_file/app/__init__.py,sha256=IKpdrCB9EaFEkGC1TR97EE90gQYctjPQE686MObdWBk,292
|
|
55
55
|
pulp_file/app/modelresource.py,sha256=v-m-_bBEsfr8wG0TI5ffx1TuKUy2-PsirhuQz4XXF-0,1063
|
|
56
56
|
pulp_file/app/models.py,sha256=QsrVg_2uKqnR89sLN2Y7Zy260_nLIcUfa94uZowlmFw,4571
|
|
57
57
|
pulp_file/app/replica.py,sha256=OtNWVmdFUgNTYhPttftVNQnSrnvx2_hnrJgtW_G0Vrg,1894
|
|
@@ -97,7 +97,7 @@ pulpcore/pytest_plugin.py,sha256=fy9vz5-bw30T7f4jxDtNIgF7L_0MJ_q7KIAzpvizvnY,382
|
|
|
97
97
|
pulpcore/responses.py,sha256=mIGKmdCfTSoZxbFu4yIH1xbdLx1u5gqt3D99LTamcJg,6125
|
|
98
98
|
pulpcore/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
99
99
|
pulpcore/app/access_policy.py,sha256=5vCKy6WoHtIt1_-eS5vMaZ7CmR4G-CIpsrB8yT-d88Q,6079
|
|
100
|
-
pulpcore/app/apps.py,sha256=
|
|
100
|
+
pulpcore/app/apps.py,sha256=xUQ2dbhyq5MVZ_dcD3MdwuH33TEMyNesdg-t4Ol2L3Y,17981
|
|
101
101
|
pulpcore/app/authentication.py,sha256=1LIJW6HIQQlZrliHy__jdzkDEh6Oj7xKgd0V-vRcDus,2855
|
|
102
102
|
pulpcore/app/checks.py,sha256=jbfTF7nmftBbky4AQXHigpyCaGydKasvRUXsd72JZVg,1946
|
|
103
103
|
pulpcore/app/entrypoint.py,sha256=GYEq4GjglQZhFlU3865AT_H0nPypDKJAsf8qdyR4tPY,4985
|
|
@@ -212,7 +212,7 @@ pulpcore/app/models/openpgp.py,sha256=3R5p8ZBPq63NzaE2_EwCXEMYPUQu7QUWanMcKCOoWk
|
|
|
212
212
|
pulpcore/app/models/progress.py,sha256=osD0cqPWC5oaebKgjpaOLY6tgv1bpjA66ty7nr8TaLU,13499
|
|
213
213
|
pulpcore/app/models/publication.py,sha256=75uUnm_sU5V_QraD6kPvEXVKxYyA1ikIsoFD517-1aE,27146
|
|
214
214
|
pulpcore/app/models/replica.py,sha256=i_wPxyPaVWpEVTJNVjJsBarxFauqeagtuwLadsmVz-g,2067
|
|
215
|
-
pulpcore/app/models/repository.py,sha256=
|
|
215
|
+
pulpcore/app/models/repository.py,sha256=WOzaSW_Pehj_ChDDqvvaKQdccfoCK5Puqlqn2Usomi0,58694
|
|
216
216
|
pulpcore/app/models/role.py,sha256=dZklNd2VeAw4cT6dyJ7SyTBt9sZvdqakY86wXGAY3vU,3287
|
|
217
217
|
pulpcore/app/models/status.py,sha256=khh0GalMNwirg9uyY3xEXh2bgsermImEWYZeZHOZcoY,4173
|
|
218
218
|
pulpcore/app/models/storage.py,sha256=2b-DQWaO31NqjV6FiISALegND-sQZAU7BVAsduUvm3o,6780
|
|
@@ -291,7 +291,7 @@ pulpcore/cache/cache.py,sha256=d8GMlvjeGG9MOMdi5_9029WpGCKH8Y5q9b2lt3wSREo,17371
|
|
|
291
291
|
pulpcore/content/__init__.py,sha256=mHYi85Hy-IhG50AR-jICk9pIiMUatHJx5wO1dFJkn9k,4000
|
|
292
292
|
pulpcore/content/authentication.py,sha256=lEZBkXBBBkIdtFMCSpHDD7583M0bO-zsZNYXTmpr4k8,3235
|
|
293
293
|
pulpcore/content/entrypoint.py,sha256=DiQTQzfcUiuyl37uvy6Wpa_7kr8t79ekpMHr31MDL2s,2132
|
|
294
|
-
pulpcore/content/handler.py,sha256=
|
|
294
|
+
pulpcore/content/handler.py,sha256=H2bGQf1Llrxezb80DjOG3AOeobe0VJFUt4YCIZjKyEQ,56941
|
|
295
295
|
pulpcore/content/instrumentation.py,sha256=spnqCJljCxshc4I05YkFxk4dFWjrqs8G0tBztP-jrQo,1608
|
|
296
296
|
pulpcore/download/__init__.py,sha256=s3Wh2GKdsmbUooVIR6wSvhYVIhpaTbtfR3Ar1OJhC7s,154
|
|
297
297
|
pulpcore/download/base.py,sha256=4KCAYnV8jSOX078ETwlfwNZGY3xCBF9yy866tyGKAzE,13095
|
|
@@ -415,7 +415,7 @@ pulpcore/tests/unit/test_util.py,sha256=hgioXXC5-tufFpk6zrmMEHtWPG7UbmMHqeF5CiXO
|
|
|
415
415
|
pulpcore/tests/unit/test_viewsets.py,sha256=6rek28Rr0kEuYjQZ0_kTSnKsTvmMmD3l-WV_GVb48YQ,3208
|
|
416
416
|
pulpcore/tests/unit/test_vulnerability_report.py,sha256=KFehXFns2gIkGQ-zWsXyK--d8CqVfHgijlWbMI8QmF0,2986
|
|
417
417
|
pulpcore/tests/unit/content/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
418
|
-
pulpcore/tests/unit/content/test_handler.py,sha256=
|
|
418
|
+
pulpcore/tests/unit/content/test_handler.py,sha256=0U9yHff_uVTcvkus6V6sLMj6kszvJBy312BxiO61MdM,21235
|
|
419
419
|
pulpcore/tests/unit/content/test_heartbeat.py,sha256=Xtj4cvyI0jBsFZskcypwxruKgMh5M9cgNXQGDWhXMP4,1250
|
|
420
420
|
pulpcore/tests/unit/download/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
421
421
|
pulpcore/tests/unit/download/test_downloader_base.py,sha256=TYG_OPuyj-_N5L-zLTW1qJD_29nKFMA_PC-fPfLKLOo,1281
|
|
@@ -446,9 +446,9 @@ pulpcore/tests/unit/stages/test_artifactdownloader.py,sha256=DX6jHctGYbDhsnzQpXf
|
|
|
446
446
|
pulpcore/tests/unit/stages/test_stages.py,sha256=H1a2BQLjdZlZvcb_qULp62huZ1xy6ItTcthktVyGU0w,4735
|
|
447
447
|
pulpcore/tests/unit/viewsets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
448
448
|
pulpcore/tests/unit/viewsets/test_viewset_base.py,sha256=gmVIgE9o0tAdiF92HCNiJkb1joc8oEaG5rnzh5V1loc,4837
|
|
449
|
-
pulpcore-3.92.
|
|
450
|
-
pulpcore-3.92.
|
|
451
|
-
pulpcore-3.92.
|
|
452
|
-
pulpcore-3.92.
|
|
453
|
-
pulpcore-3.92.
|
|
454
|
-
pulpcore-3.92.
|
|
449
|
+
pulpcore-3.92.1.dist-info/licenses/LICENSE,sha256=dhnHU8rJXUdAIgIjveSKAyYG_KzN5eVG-bxETIGrNW0,17988
|
|
450
|
+
pulpcore-3.92.1.dist-info/METADATA,sha256=eAnxCeVZ6wOlwnNvxEGs_z1PTR0eJsm_ztrFFDHftec,4104
|
|
451
|
+
pulpcore-3.92.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
452
|
+
pulpcore-3.92.1.dist-info/entry_points.txt,sha256=OZven4wzXzQA5b5q9MpP4HUpIPPQCSvIOvkKtNInrK0,452
|
|
453
|
+
pulpcore-3.92.1.dist-info/top_level.txt,sha256=6h-Lm3FKQSaT_nL1KSxu_hBnzKE15bcvf_BoU-ea4CI,34
|
|
454
|
+
pulpcore-3.92.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|