-
Notifications
You must be signed in to change notification settings - Fork 330
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
Refactor PostPolicy implementation #1023
Refactor PostPolicy implementation #1023
Conversation
73a21f4
to
98ed2d5
Compare
7c4904a
to
ff58958
Compare
ff58958
to
d622819
Compare
minio/datatypes.py
Outdated
|
||
|
||
def _trim_dollar(value): | ||
"""Trime dollar character if present.""" |
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.
nit: typo
"""Trime dollar character if present.""" | |
"""Trim dollar character if present.""" |
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.
Done
policy = PostPolicy( | ||
bucket_name, datetime.utcnow() + timedelta(days=no_of_days), | ||
) | ||
policy.add_starts_with_condition("key", prefix) |
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 should include setting of other Policy attributes like content-length range, content-type, etc to this test.
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.
Done
I also simplified form-data construction. |
89cc226
to
edc5751
Compare
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.
LGTM
No description provided.