Bert Blommers
a2c2c06243
Techdebt - Align models-responses integration for all services ( #5207 )
2022-06-09 17:40:22 +00:00
Bert Blommers
79a2a9d423
Preparation for MultiAccount support ( #5157 )
2022-06-04 11:30:16 +00:00
Bert Blommers
10bd677cf2
Admin - enable more Pylint rules ( #5037 )
2022-04-18 20:44:56 +00:00
Asher Foa
472b050aad
Use monkeypatch.setenv instead of modifying os.environ ( #4981 )
2022-03-29 15:43:44 +00:00
Bert Blommers
67ab7f857a
Simplify error handling ( #4936 )
2022-03-15 15:42:46 -01:00
Bert Blommers
cbe787add3
Ensure setup_method resets state ( #4928 )
2022-03-15 13:28:33 -01:00
Bert Blommers
382ff2b1a9
Remove more DynamoDB2 references ( #4933 )
2022-03-11 21:29:16 -01:00
Bert Blommers
eed32a5f72
Pylint - Enable more rules on source and tests-directory ( #4929 )
2022-03-11 20:28:45 -01:00
Bert Blommers
29d01c35bc
Update Black + formatting ( #4926 )
2022-03-10 13:39:59 -01:00
Bert Blommers
9dccebc184
Deprecate RDS2 ( #4920 )
2022-03-09 10:05:18 -01:00
Bert Blommers
206590acf5
Fix ordering issue with a user-defined Responses-activation ( #4896 )
2022-02-28 21:57:41 -01:00
Bert Blommers
b3bc419843
Unknown regions - bug in caching mechanism ( #4895 )
2022-02-27 20:47:05 -01:00
Bert Blommers
78ab2c9dcd
Prep release 3.0.3 ( #4845 )
2022-02-09 14:56:20 -01:00
Bert Blommers
eba0fb8adc
HTTPBin is unavailable quite often - try example.com instead ( #4843 )
2022-02-08 15:35:37 -01:00
Bert Blommers
fbefae59c5
Non-unittest classes use a lowercase setup-method ( #4833 )
2022-02-05 10:47:38 -01:00
Bert Blommers
010d525de0
Class decorator - allow possibility of setUp in parent class ( #4799 )
2022-01-26 23:01:45 -01:00
Bert Blommers
291aa83137
ECS - LongARN is enabled by default ( #4762 )
2022-01-18 19:53:31 -01:00
Bert Blommers
6610862a8f
Separate S3Control methods from S3 ( #4745 )
2022-01-18 19:10:22 -01:00
Bert Blommers
9c8744ff64
Refactor Class-decorator logic to reset per test ( #4419 )
2022-01-18 16:58:21 -01:00
Bert Blommers
aa70ee254d
Remove deprecated decorators + boto dependency ( #4378 )
2022-01-18 14:18:57 -01:00
Bert Blommers
cf87e75d6e
Feature: Mock region ( #4699 )
2021-12-24 20:02:45 -01:00
Bert Blommers
b065a20d88
Rework mock_all to work as a context manager ( #4607 )
2021-11-22 22:06:59 -01:00
Bert Blommers
e54e5cdb95
Feature - @mock_all() ( #3756 )
2021-11-09 21:29:28 -01:00
Bert Blommers
c62a34528e
Work-around for import order ( #4103 )
2021-11-09 20:39:31 -01:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules ( #4432 )
2021-10-18 19:44:29 +00:00
Bert Blommers
4c18b36170
SQS - duplicate deprecated tests ( #4326 )
2021-09-22 21:50:27 +00:00
Bert Blommers
9d1dd79813
Rewrite deprecated DynamoDB2 tests ( #3904 )
2021-09-22 18:13:28 +00:00
Bert Blommers
07bb843214
Fix regex URLs so that a dot is actually interpreted as a dot ( #4110 )
2021-08-28 13:42:45 +01:00
Bert Blommers
8f79edba38
Request matching - return known requests first ( #3793 )
2021-08-28 13:34:32 +01:00
Bert Blommers
79f0cc9e9e
Tech debt - remove dead DynamoDB code and add RDS tests ( #4136 )
2021-08-04 17:24:26 +01:00
Waldemar Hummer
faadf3db3a
fix parsing regex to support request params with dicts of lists ( #4111 )
2021-07-30 06:19:38 +01:00
Bert Blommers
11883a1fda
Remove unnecessary dependencies EC2/SQS ( #4094 )
...
* Add missing dependencies for EFS
2021-07-29 06:38:16 +01:00
Bert Blommers
7693d77333
Remove Py2 support ( #3915 )
2021-07-26 07:40:39 +01:00
Evan O'Connell
85dc52bd84
Support all ELBv2 ListenerRule condition types ( #4066 )
...
* ELBv2 - ListenerRule condition validation
- ListenerRule condition model now uses upper case field names that
match input params for boto and CloudFormation.
- BaseResponse._get_params() introduced to make it easier to deal
with the querystring input params.
2021-07-16 08:01:14 +01:00
David Baumgold
3af87963d1
Py3: use unittest.mock instead of mock ( #3481 )
...
* Py3: use unittest.mock instead of mock
* noqa
* oops
* just pull in patch()
* ignore RuntimeError when stopping patch
* ignore RuntimeError from default_session_mock.stop()
2021-04-06 10:22:42 +01:00
Anton Grübel
6da4905da9
Fix AttributeNames for sqs.receive_message ( #3736 )
...
* Fix AttributeNames for sqs.receive_message
* Fix Lambda issue
* Change to parametrized tests
* Simplify attribute logic
2021-03-05 10:42:07 +00:00
Bert Blommers
d7b8419791
Fix Mock 4.0.3 compatibility - Unpatch only once during teardown ( #3541 )
...
* #3535 - Unpatch only once during teardown
* EnvVar patching - Fix Python2 bug
* Allow latest version of mock-library
2021-02-15 08:42:16 +00:00
Brian Pandola
f4b81e69b8
Address pytest warnings ( #3629 )
...
* Address `boto` deprecation warnings
This commit eliminates the following warning:
../boto/ec2/connection.py:582:
PendingDeprecationWarning: The current get_all_instances implementation will be replaced with get_all_reservations.
`boto` isn't likely to ever make good on this warning, but doing the replacement will
declutter the `moto` test output.
* Remove `invoke_lambda` tracebacks from unit test logging
If an exception is encountered, the details are returned in the response payload.
Printing the traceback was just adding noise to the pytest output.
* Use known AMIs in unit tests
This commit eliminates the following warning in the pytest output:
`PendingDeprecationWarning: Could not find AMI with image-id:ami-123456, in the near future this will cause an error.`
Known, pre-loaded AMI image ids are used instead of random ids that don't actually
exist in the moto backend. The integrity of the tests is unaffected by this change.
A test has been added to provide explicit coverage of the PendingDeprecationWarning
raised when an invalid AMI image id is passed to moto.
2021-01-29 11:31:56 +00:00
Bert Blommers
273ca63d59
Linting
2020-11-11 15:55:37 +00:00
Matěj Cepl
5697ff87a8
Back to Black
2020-11-10 14:12:38 +01:00
Matěj Cepl
ea489bce6c
Finish porting from nose to pytest.
2020-11-10 08:25:05 +01:00
Matěj Cepl
77dc60ea97
Port test suite from nose to pytest.
...
This just eliminates all errors on the tests collection. Elimination of
failures is left to the next commit.
2020-11-10 08:23:44 +01:00
Karthikeyan Singaravelan
7054143701
Fix deprecation warnings due to invalid escape sequences. ( #3273 )
...
* Fix deprecation warnings due to invalid escape sequences.
* Fix linter error.
2020-09-10 09:20:26 +01:00
Bert Blommers
7b5613b331
#2774 - Re-add test, and update requirements to working botocore
2020-03-09 12:47:44 +00:00
Bert Blommers
c6b66cb001
Linting
2020-03-05 17:22:54 +00:00
Bert Blommers
b19cf8a085
#2774 - Run Policy test on different method
2020-03-05 15:49:30 +00:00
Mike Grima
11b7be0e85
Implemented S3 Account-level public access block.
...
- Also added AWS Config listing and fetching support
- Also fixed Lambda test breakage
2020-02-17 15:41:27 -08:00
Fabio Dias
fd9ac4b9a5
ACCOUNT_ID moved to moto.core, MOTO_ACCOUNT_ID env var override
2019-12-16 21:05:29 -05:00
Mike Grima
84ccdbd1cd
Implemented S3 Public Access Block
2019-12-12 17:45:31 -08:00
Bert Blommers
e025ccfd06
Ensure IAM Policy names are unique in tests
2019-11-16 17:36:50 +00:00