Skip to content

Fixes non-virtualbox provider #113

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 3 commits into from
Mar 30, 2022
Merged

Conversation

apatard
Copy link
Collaborator

@apatard apatard commented Mar 30, 2022

This PR contains a bunch of fixes to make python-vagrant and its testsuite more provider-agnostic.
The main part is the handling of the state, since vagrant output seems to be dependent of the provider
(for instance "poweroff" versus "shutoff").

apatard added 3 commits March 30, 2022 15:22
The function is hardcoding the provider name while there's a variable
for that. So use it.

Signed-off-by: Arnaud Patard <apatard@hupstream.com>
The machine status returned by vagrant may change between providers
so add code to deal with the differences. For now, it's coded inside
a function but can be replaced with a dict() if more differences are
found.

Signed-off-by: Arnaud Patard <apatard@hupstream.com>
Current provider is hardcoded inside the test file. We may want
to switch easily between test providers (local testing, using
something else than GHA, whatever...) so add a new function used
to return the current test provider.

Changing the test provider is done by setting an environment variable
since any code / logic to detect the provider to use will always
be broken.

Signed-off-by: Arnaud Patard <apatard@hupstream.com>
@konstruktoid konstruktoid merged commit 579d70e into pycontribs:main Mar 30, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants