@@ -121,10 +121,10 @@ def local_registry(request, _local_registry):
121121
122122
123123@pytest .fixture (scope = "session" )
124- def _local_registry (pulp_cfg , bindings_cfg , registry_client , pulp_settings ):
124+ def _local_registry (bindings_cfg , registry_client , pulp_settings ):
125125 """Local registry with authentication. Session scoped."""
126126
127- registry_name = urlparse (pulp_cfg . get_base_url () ).netloc
127+ registry_name = urlparse (bindings_cfg . host ).netloc
128128
129129 class _LocalRegistry :
130130 @property
@@ -134,7 +134,7 @@ def name(self):
134134 @staticmethod
135135 def get_response (method , path , ** kwargs ):
136136 """Return a response while dealing with token authentication."""
137- url = urljoin (pulp_cfg . get_base_url () , path )
137+ url = urljoin (bindings_cfg . host , path )
138138
139139 basic_auth = (bindings_cfg .username , bindings_cfg .password )
140140 if pulp_settings .TOKEN_AUTH_DISABLED :
@@ -484,9 +484,9 @@ def _pull_through_distribution(includes=None, excludes=None, private=False):
484484def check_manifest_fields (container_bindings ):
485485 def _check_manifest_fields (** kwargs ):
486486 manifest = container_bindings .ContentManifestsApi .list (** kwargs ["manifest_filters" ])
487- manifest = manifest .to_dict ()[ " results" ] [0 ]
487+ manifest = manifest .results [0 ]
488488 for key in kwargs ["fields" ]:
489- if manifest [ key ] != kwargs ["fields" ][key ]:
489+ if getattr ( manifest , key ) != kwargs ["fields" ][key ]:
490490 return False
491491 return True
492492
@@ -496,9 +496,9 @@ def _check_manifest_fields(**kwargs):
496496@pytest .fixture
497497def check_manifest_arch_os_size ():
498498 def _check_manifest_arch_os_size (manifest ):
499- manifests = manifest .to_dict ()[ " results" ]
500- assert any ("amd64" in manifest [ " architecture" ] for manifest in manifests )
501- assert any ("linux" in manifest [ "os" ] for manifest in manifests )
502- assert any (manifest [ " compressed_image_size" ] > 0 for manifest in manifests )
499+ manifests = manifest .results
500+ assert any ("amd64" in manifest . architecture for manifest in manifests )
501+ assert any ("linux" in manifest . os for manifest in manifests )
502+ assert any (manifest . compressed_image_size > 0 for manifest in manifests )
503503
504504 return _check_manifest_arch_os_size
0 commit comments