-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Getting "IllegalLocationConstraintException" on 's3.create_bucket' #1747
Comments
This is an issue with a regression in pytest 3.7.1 decorator handling rather than moto. I dropped back to pytest 3.7.0 and the exception went away; see pytest-dev/pytest#3774. |
It may also be a regression with |
Seeing similar here on django testing without pytest. I suspect this is a |
It seems to be related to |
I am also experiencing this issue. Furthermore, it seems that this causes the tests to actually create the test bucket in S3. |
Was seeing this same problem until I dropped down boto3 versions.
Also covered in this PR: #1801 |
Going to close as a dupe of #1801. Let me know if that isn't the case. |
* Upgrade all dependencies * Add environmental marker on dataclasses * Upgrade dependencies in tests * Downgrade boto3 based on getmoto/moto#1747 * Fix tests * Address xgboost warning * Bump version * Add label regenerator * Clarify change log * Remove version check
Getting an exception when trying to create a bucket in a
mock_s3
'd test inpytest
. These exact tests were passing fine 3 days before this ticket was created. Even installing the same versions of packages of when the tests were passing doesn't help: the same error occurs.In addition, if I don't have a default region set, I get "BucketAlreadyExists", but with a default region set, I get "IllegalLocationConstraintException".
This has been verified in a fresh Ubuntu Docker image.
Environment
All packages are
pip
-installed (latest, withpip
v18.0)moto
: 1.3.3pytest
: 3.7.1boto3
: 1.7.69botocore
: 1.10.69more-itertools
: 4.3.0pendulum
: 2.0.3Other packages
Jinja2-2.10 MarkupSafe-1.0 Pillow-5.2.0 PyYAML-3.13 Pygments-2.2.0 alabaster-0.7.11 asn1crypto-0.24.0 atomicwrites-1.1.5 attrs-18.1.0 aws-xray-sdk-0.95 azure-common-1.1.14 azure-nspkg-2.0.0 azure-storage-0.36.0 babel-2.6.0 boto-2.49.0 certifi-2018.4.16 cffi-1.11.5 chardet-3.0.4 colorama-0.3.9 cookies-2.2.1 coverage-4.5.1 cryptography-2.3 docker-3.4.1 docker-pycreds-0.3.0 docutils-0.14 floto-0.0.3 ibm-cos-sdk-2.1.2 ibm-cos-sdk-core-2.1.2 ibm-cos-sdk-s3transfer-2.1.2 idna-2.7 imagesize-1.0.0 jmespath-0.9.3 jsondiff-1.1.1 jsonpickle-0.9.6 mock-2.0.0 numpy-1.15.0 packaging-17.1 pbr-4.2.0 pendulum-2.0.2 pluggy-0.7.1 py-1.5.4 pyaml-17.12.1 pycparser-2.18 pyparsing-2.2.0 pytest-cov-2.5.1 pytest-timeout-1.3.1 python-dateutil-2.7.3 python-json-logger-0.1.9 pytz-2018.5 pytzdata-2018.5 requests-2.19.1 responses-0.9.0 s3transfer-0.1.13 six-1.11.0 snowballstemmer-1.2.1 sphinx-1.7.6 sphinx-rtd-theme-0.4.1 sphinxcontrib-websupport-1.1.0 structlog-18.1.0 termcolor-1.1.0 urllib3-1.23 websocket-client-0.48.0 werkzeug-0.14.1 wrapt-1.10.11 xmltodict-0.11.0
Test snippet
Was working, now failed:
Also now fails (don't know if it worked before):
Error traceback
Pytest output:
The text was updated successfully, but these errors were encountered: