Add hetzner as cloud provider#59301
Conversation
|
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
Ch3LL
left a comment
There was a problem hiding this comment.
This requires test coverage for all of the new functionality and a changelog entry. Since we do not have access to the hetzner cloud, unit tests will be the best approach for now.
dc9ce09 to
b57d049
Compare
b57d049 to
bb01e87
Compare
|
@Ch3LL Thank you. As requested I added the unittests and the changelog entry. But I have no idea why the debian9 pytest is failing. Is this related to my changed when I see problems in |
|
|
||
| KEY = "abcdefgh" | ||
|
|
||
| VM_NAME = "myserver" |
There was a problem hiding this comment.
We try to stray away from these module level variables as they can cause headache in the future and hard to find if anyone ever ends up importing this test module.
Also another ask, we have recently migrated to pytest. Would you mind migrating this test to tests/pytests/unit/cloud/. You will need to create the cloud directory since there isn't currently one there. thanks :)
Ch3LL
left a comment
There was a problem hiding this comment.
You should be able to ignore that test failure. I am re-running it to see if it fails again
Co-authored-by: Megan Wilhite <megan.wilhite@gmail.com>
344c37b to
262e724
Compare
fkantelberg
left a comment
There was a problem hiding this comment.
I migrated the tests to pytest and fixed the mentioned comments and all unittests seem to be green now.
|
Congratulations on your first PR being merged! 🎉 |
What does this PR do?
This PR adds the Hetzner GmbH cloud as cloud provider to salt-cloud. It wraps around the hcloud package provided by Hetzner GmbH.
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
No
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.