-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing download_policies #1210
Conversation
|
||
JWT_PATH = urljoin(BASE_PATH, "jwt/") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We kept this one around since JWT could be added back based on the discussions at the time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since then though we removed the JWT entirely so I think we should remove this too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few tests will be required to be updated with those changes.
Just a few examples, see: test content delivery
download content
pulp_smash/pulp3/constants.py
Outdated
@@ -22,13 +22,9 @@ | |||
|
|||
DISTRIBUTION_PATH = urljoin(BASE_PATH, "distributions/") | |||
|
|||
DOWNLOAD_POLICIES = ("immediate", "on_demand", "streamed") | |||
DOWNLOAD_POLICIES = ("immediate", ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This name can be misleading. Since it is plural. I would suggest:
DOWNLOAD_POLICIES = ("immediate", ) | |
IMMEDIATE_DOWNLOAD_POLICY = ("immediate", ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed this fix, but what about just making it
IMMEDIATE_POLICY = "immediate"
since it's single now.
737d20f
to
4432147
Compare
The "lazy" variables are renamed to be "on-demand" to match recent changes in pulp-smash. Required PR: pulp/pulp-smash#1210 [noissue]
The "lazy" variables are renamed to be "on-demand" to match recent changes in pulp-smash. Required PR: pulp/pulp-smash#1210 Required PR: pulp/pulp_file#255 [noissue]
4432147
to
3c5d739
Compare
I pushed PRs to pulpcore and pulp_file with fixes: |
The names were updated to replace 'lazy' with 'on demand' and also reflect the recently changed validation in pulpcore. Required PR: pulp/pulpcore#199 Required PR: pulp/pulp-smash#1210 [noissue]
5c0f301
to
e1db5da
Compare
pulp_smash/pulp3/constants.py
Outdated
@@ -2,9 +2,9 @@ | |||
"""Constants for Pulp 3 tests.""" | |||
from urllib.parse import urljoin | |||
|
|||
from pulp_smash.api import ( # noqa: F401 | |||
from pulp_smash.api import ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from pulp_smash.api import ( | |
from pulp_smash.api import ( # noqa: F401 | |
_P3_TASK_END_STATES as P3_TASK_END_STATES, | |
) |
With pulp/pulpcore@59f3450 the download policy by default only includes 'immediate'. Required PR: pulp/pulpcore#199 Required PR: pulp/pulp_file#255 [noissue]
e1db5da
to
2347e0b
Compare
With pulp/pulpcore@59f3450
the download policy by default only includes 'immediate'.
[noissue]