moto/moto/s3
wynnw 891118a7c7
#3667: Update the s3 post functionality to better support success_action_redirect (#3668)
* Update the s3 post functionality to better support success_action_redirect

- Add the bucket/key values to the redirect url like s3 does, which
supports code that relies on the key value being there on the
redirect.
- Add support for replacing ${filename} in the key value with the actual
filename from the form upload.

See Issue #3667

* Update s3 tests for changed success_action_redirect behavior

- Adds a new test called test_s3_server_post_to_bucket_redirect that
tests both the ${filename} replacement and the key/value addition to the
redirect query args
- Updated the test_creating_presigned_post checks to handle the
key/value additions to the redirect url.

* Fix test updates to work with python2.7

- remove f-string usage
- fix urllib.parse imports to use six

Co-authored-by: Wynn Wilkes <wynn@leading2lean.com>
2021-02-10 09:06:03 +00:00
..
__init__.py
cloud_formation.py S3 cloudformation update (#3199) 2020-08-01 22:43:03 +01:00
config.py different aggregation strategy 2020-09-21 17:42:44 -06:00
exceptions.py #2710 - S3 - Raise specific error when GetObject is called with unknown VersionId (#3532) 2021-01-13 16:06:09 +00:00
models.py added sse support for s3 (#3592) 2021-01-18 18:17:13 +00:00
responses.py #3667: Update the s3 post functionality to better support success_action_redirect (#3668) 2021-02-10 09:06:03 +00:00
urls.py
utils.py lift user_settable_fields from (old) boto (#3468) 2020-11-19 09:01:53 +00:00