Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
Add filters for DockerDistributions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ipanova committed May 28, 2019
1 parent 0d3e3d1 commit 4e91d0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pulp_docker/tests/functional/api/test_crud_distributions.py
Expand Up @@ -63,7 +63,7 @@ def test_02_read_distribution_with_specific_fields(self):
"""
if not selectors.bug_is_fixed(4599, self.cfg.pulp_version):
raise unittest.SkipTest('Issue 4599 is not resolved')
fields = ('_href', 'base_path', 'base_url', '_created')
fields = ('base_path', 'name')
for field_pair in permutations(fields, 2):
# ex: field_pair = ('_href', 'base_url)
with self.subTest(field_pair=field_pair):
Expand All @@ -81,13 +81,13 @@ def test_02_read_distribution_without_specific_fields(self):
if not selectors.bug_is_fixed(4599, self.cfg.pulp_version):
raise unittest.SkipTest('Issue 4599 is not resolved')
# requests doesn't allow the use of != in parameters.
url = '{}?fields!=base_path,base_url'.format(
url = '{}?fields!=base_path,name'.format(
self.distribution['_href']
)
distribution = self.client.get(url)
response_fields = distribution.keys()
self.assertNotIn('base_path', response_fields)
self.assertNotIn('base_url', response_fields)
self.assertNotIn('name', response_fields)

@skip_if(bool, 'distribution', False)
def test_02_read_distributions(self):
Expand Down

0 comments on commit 4e91d0c

Please sign in to comment.