Skip to content
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

Admin: Enable some tests to run against AWS #6855

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

bblommers
Copy link
Collaborator

Currently only enabled for (2) S3 tests, just to verify the point.

Tests should be marked with two decorators:

@pytest.mark.aws_verified
@s3_aws_verified

The s3_aws_verified-decorator creates a bucket, and passes the bucket-name to the method.

Pytest expects any 'plain' argument to be a fixture, so the bucket-name argument should have a default value to stop pytest from throwing an error:

def test_(name=None):

I'm expecting to extend this to other tests/services at some point. Based on that, there will probably be some refactoring to make this easier to maintain/extend.

@bblommers bblommers added this to the 4.2.5 milestone Sep 26, 2023
@bblommers bblommers merged commit bc9c8ef into getmoto:master Sep 27, 2023
@bblommers bblommers deleted the admin/verify-tests-against-aws branch September 27, 2023 07:12
@bblommers bblommers restored the admin/verify-tests-against-aws branch October 10, 2023 10:44
@bblommers bblommers deleted the admin/verify-tests-against-aws branch October 10, 2023 10:44
toshyak pushed a commit to toshyak/moto that referenced this pull request Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant