-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial version of pull-through cache feature.
Closes #278
- Loading branch information
Showing
6 changed files
with
86 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added pull-through cache feature. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
pulp_npm/tests/functional/api/test_pull_through_caching.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import pytest | ||
|
||
from urllib.parse import urljoin, urlsplit | ||
|
||
from pulp_npm.tests.functional.constants import NPM_FIXTURE_URL | ||
|
||
|
||
def test_pull_through_install(npm_bindings, npm_remote_factory, npm_distribution_factory, http_get): | ||
"""Test that a pull-through distro can be installed from.""" | ||
remote = npm_remote_factory(url=NPM_FIXTURE_URL) | ||
distro = npm_distribution_factory(remote=remote.pulp_href) | ||
PACKAGE = "commander" | ||
|
||
__import__("ipdb").set_trace() | ||
ye = http_get(f"{distro.base_url}/react") | ||
# content = npm_bindings.ContentPackagesApi.list(name=PACKAGE) | ||
# assert content.count == 1 |