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

Mocking Account numbers #26

Open
rpattcorner opened this issue Aug 23, 2019 · 0 comments
Open

Mocking Account numbers #26

rpattcorner opened this issue Aug 23, 2019 · 0 comments

Comments

@rpattcorner
Copy link

#25 Now that IAM seems fully supported it's looking like pytest-localstack is the best and only game in town for testing mocks in multi-account environments. And multi-account is becoming more widely used, as the GCP-originated paradigm of treating an account as a project for security isolation is growing.

From what I can tell, pytest-localstack's mapping of "docker container to session fixture to account" is a great way to go, and it would be even better if we could mock account numbers on a per-fixture basis. Currently all sessions have a mocked account number of '000000000000', but it might be simple enough to add mock_account_number as a parameter to the fixture so we could devise cross-account tests that took ARNs into account.

Automatic generation of account numbers might be possible or desirable too, but a fixture parameter that overrides the zeros might easily be enough.

Just a thought to make a good thing better ...

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

No branches or pull requests

1 participant