-
Notifications
You must be signed in to change notification settings - Fork 34
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
fix ailing integration tests in test_public_api #429
fix ailing integration tests in test_public_api #429
Conversation
Fixes: GH # 428
9f86586
to
beff451
Compare
Tested this locally and both offending
|
beff451
to
2c78910
Compare
2c78910
to
4a82a9d
Compare
@blackboxsw @mstpn The holy trinity has landed. Feast your eyes |
also: PLEASE rebase when merging - all 3 commits are separate logical commits |
4a82a9d
to
5cab887
Compare
LGTM, tox formatting/linting notwithstanding. Thanks for working through this with me and helping resolve something I missed in #409. |
2dfff2e
to
566ed4c
Compare
Ensured 100% unit test coverage for ec2._get_name_for_image_type().
566ed4c
to
f453fd2
Compare
okay finally properly ready for review @blackboxsw |
base_location, | ||
release, | ||
"-daily" if daily else "", | ||
"-minimal" if image_type == ImageType.MINIMAL else "", | ||
"minimal" if image_type == ImageType.MINIMAL else "server", |
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.
Thank you for this fix, this explains the inability to find minimal images on my PR. thx
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.
Yessir 😈😤💯🔥
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.
Ship it! Ran through minimal ec2 integration tests for focal, jammy, noble and oracular ensuring we can obtain minimal images appropriately. Validated GCP as well continues to work for service_account_email config in both pycloudlib.toml and GCE ~/.config/gcloud/*creds.json
@blackboxsw thank you so much for thoroughly retesting this! |
My pleasure! Thanks for helping out with this :) |
Fixes: GH #428 🎉
Testing of changes:
EC2 minimal images:
manually verified my changes by modifying and running
examples/ec2.py
:THEN run the ec2 public api integration tests:
Testing of GCE service account issues
Ran the following locally (I have service account) and @mstpn ran locally on his machine:
tox -e integration-tests -- tests/integration_tests/test_public_api.py -k "gce""
This runs both normal and minimal public api integration tests for GCE.
Testing of SSH key failed re-uploading
This is tested by running ec2 public api integrations as mentioned earlier.