moto/tests/test_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 implement s3 object tagging 2017-07-15 22:36:12 -04:00
red.jpg S3 - Add more detail to error responses 2020-10-28 14:22:18 +00:00
test_s3_cloudformation.py Linting 2020-11-11 15:55:37 +00:00
test_s3_lifecycle.py Finish porting from nose to pytest. 2020-11-10 08:25:05 +01:00
test_s3_storageclass.py Finish porting from nose to pytest. 2020-11-10 08:25:05 +01:00
test_s3_utils.py Linting 2020-11-11 15:55:37 +00:00
test_s3.py #3667: Update the s3 post functionality to better support success_action_redirect (#3668) 2021-02-10 09:06:03 +00:00
test_server.py #3667: Update the s3 post functionality to better support success_action_redirect (#3668) 2021-02-10 09:06:03 +00:00