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

test: create moto-like mockers for other clouds #4972

Closed
2 of 6 tasks
efiop opened this issue Nov 26, 2020 · 1 comment
Closed
2 of 6 tasks

test: create moto-like mockers for other clouds #4972

efiop opened this issue Nov 26, 2020 · 1 comment
Labels
p3-nice-to-have It should be done this or next sprint testing Related to the tests and the testing infrastructure

Comments

@efiop
Copy link
Contributor

efiop commented Nov 26, 2020

We've been talking about having light-weight mockers/stubbers for a long time #907 , but those never felt very pleasant to use and, especially, support. With hdfs/webhdfs and other clouds that don't have good python mockers we waste a lot of CI time on launching heavy-weight emulators or using real clouds.

We've been using moto https://github.com/spulec/moto for a long time now and it has been such a blast, that we wish there was something like that for other clouds. But there are no similar solutions for all our needs :( So we might consider using moto's structure as a guide to creating some lightweight mockers for our needs (no plan to support server-mode like moto does, just mocks for specific libraries). Our requirements are pretty basic(list, upload, download, remove - that's it), so that's all we need to be implemented for specific libraries, so there is very marginal overhead to doing it the right away, but at least this could be maintained, unlike DIY chaotic mocks.

Again, have to stress that there is no plan to create a feature-complete mockers like moto, just to use moto as a guide for a proper architecture and interface for our mockers.

Also, as @skshetry suggested, we might want to setup some env vars/test configs to run real clouds on a weekly basis, just to make sure that real stuff still works too.

@efiop efiop added testing Related to the tests and the testing infrastructure p3-nice-to-have It should be done this or next sprint labels Nov 26, 2020
@efiop
Copy link
Contributor Author

efiop commented Oct 7, 2021

Closing in favor of #6757

@efiop efiop closed this as completed Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3-nice-to-have It should be done this or next sprint testing Related to the tests and the testing infrastructure
Projects
None yet
Development

No branches or pull requests

1 participant