-
Notifications
You must be signed in to change notification settings - Fork 101
feature(aws-unittests): new unit test module for test aws services #9910
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
Conversation
5c92a70
to
e2e3429
Compare
@fruch new branch |
846923d
to
40813ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like simplification and more stable tests - LGTM.
I saw some failure related to docker pull rate limit thou - possibly need to fix something here/in pipeline
Seems like it's happening across the board, I'm guessing we are hitting our account limit, and it's not related to those changes, on the contrary, we are removing some docker usage from our CI |
95c9659
to
5716235
Compare
we need this package for better unittesting our aws integration code
the aws pricing model is suffering from cyclic depedecies this change is a workaround avoid it, if we aren't really gonna use the pricing code
with newer version of boto3 (or under moto), this call would be failing if region is not defined
in this modulde we would be using moto in a server mode, running inside a thread in this way we don't have external services depedecies or need to spin up docker instance with a mock implemention. for now it's just demonstrate what we can achive with it * cover Keystore implmention * cover AWS Provisioning (on case) * cover listing of AMIs
since we have replacement for the tests using this mock, we remove all the code related to it
9886b91
to
1f6271a
Compare
in this commit we would be using moot in a server mode, running
inside a thread
in this way we don't have external services dependencies or
need to spin up docker instance with a mock implementation.
for now it's just demonstrate what we can achieve with it
Testing
PR pre-checks (self review)
backport
labelsReminders
sdcm/sct_config.py
)unit-test/
folder)