Skip to content

Commit

Permalink
Switch to using fixtures.pulpproject.org in tests
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
mdellweg authored and gerrod3 committed Jun 8, 2023
1 parent 54e2454 commit cefb651
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions pulp_gem/tests/functional/api/test_crud_content_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ def test_crud_content_unit(
# 02 test read by href
content = gem_content_api_client.read(task.created_resources[0])

assert content.name == "panda"
assert content.version == "0.1.0"
assert content.name == "amber"
assert content.version == "1.0.0"

# 03 test read(list) by name & version
results = gem_content_api_client.list(name="panda", version="0.1.0")
results = gem_content_api_client.list(name="amber", version="1.0.0")
assert results.count == 1
assert results.results[0] == content

# 04 test partial update fails
with pytest.raises(AttributeError) as exc:
gem_content_api_client.partial_update(content.pulp_href, relative_path=str("panda2"))
gem_content_api_client.partial_update(content.pulp_href, relative_path=str("amber2"))
assert exc.value.args[0] == "'ContentGemApi' object has no attribute 'partial_update'"

# 05 test full update fails
with pytest.raises(AttributeError) as exc:
gem_content_api_client.update(content.pulp_href, relative_path="panda2")
gem_content_api_client.update(content.pulp_href, relative_path="amber2")
assert exc.value.args[0] == "'ContentGemApi' object has no attribute 'update'"

# 06 test delete fails
Expand Down
8 changes: 4 additions & 4 deletions pulp_gem/tests/functional/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@

GEM_PUBLICATION_PATH = urljoin(BASE_PUBLICATION_PATH, "gem/gem/")

# GEM_FIXTURE_URL = urljoin(PULP_FIXTURES_BASE_URL, 'gem/')
GEM_FIXTURE_URL = "https://repos.fedorapeople.org/pulp/pulp/demo_repos/gems/repo/"
GEM_FIXTURE_URL = urljoin(PULP_FIXTURES_BASE_URL, "gem/")
"""The URL to a gem repository."""

GEM_FIXTURE_COUNT = 3
GEM_FIXTURE_COUNT = 4
"""The number of content units available at :data:`GEM_FIXTURE_URL`."""
# This is 4 stable gems. There are also 2 prerelease gems not currently synced.

GEM_FIXTURE_SUMMARY = {GEM_CONTENT_NAME: GEM_FIXTURE_COUNT}
"""The desired content summary after syncing :data:`GEM_FIXTURE_URL`."""

GEM_URL = urljoin(GEM_FIXTURE_URL, "gems/panda-0.1.0.gem")
GEM_URL = urljoin(GEM_FIXTURE_URL, "gems/amber-1.0.0.gem")
"""The URL to an gem file at :data:`GEM_FIXTURE_URL`."""

# FIXME: replace this with your own fixture repository URL and metadata
Expand Down

0 comments on commit cefb651

Please sign in to comment.