Remove wrong driver and boiierplate

This commit is contained in:
Luke Murphy 2019-11-16 09:14:01 +07:00
parent 9ab4f23782
commit 86b3a8f9e7
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
5 changed files with 11 additions and 23 deletions

View File

@ -21,6 +21,7 @@
import os
import pytest
import sh
from molecule.scenario import ephemeral_directory
@ -168,19 +169,7 @@ def test_command_idempotence(scenario_to_test, with_scenario, scenario_name):
pytest.helpers.idempotence(scenario_name)
@pytest.mark.parametrize(
"driver_name",
[
("digitalocean"),
("docker"),
("ec2"),
("gce"),
("linode"),
("openstack"),
("vagrant"),
],
indirect=["driver_name"],
)
@pytest.mark.parametrize("driver_name", [("hetznercloud")], indirect=["driver_name"])
def test_command_init_role(temp_dir, driver_name, skip_test):
pytest.helpers.init_role(temp_dir, driver_name)

View File

@ -2,7 +2,7 @@
dependency:
name: galaxy
driver:
name: docker
name: hetznercloud
lint:
name: yamllint
platforms:

View File

@ -18,22 +18,21 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
from uuid import uuid4
import copy
import functools
import os
import shutil
from uuid import uuid4
import pytest
from molecule import config, util
try:
from pathlib import Path
except ImportError:
from pathlib2 import Path
import pytest
from molecule import util
from molecule import config
@pytest.helpers.register
def write_molecule_file(filename, data):
@ -55,7 +54,7 @@ def _molecule_dependency_galaxy_section_data():
@pytest.fixture
def _molecule_driver_section_data():
return {"driver": {"name": "docker", "options": {"managed": True}}}
return {"driver": {"name": "hetznercloud", "options": {"managed": True}}}
@pytest.fixture

View File

@ -46,7 +46,7 @@ def _instance(_base_class):
def _command_args():
return {
"dependency_name": "galaxy",
"driver_name": "docker",
"driver_name": "hetznercloud",
"lint_name": "yamllint",
"provisioner_name": "ansible",
"scenario_name": "default",

View File

@ -33,7 +33,7 @@ def _molecule_file():
os.path.pardir,
os.path.pardir,
"resources",
"molecule_docker.yml",
"molecule_hetznercloud.yml",
)