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 os
import pytest import pytest
import sh import sh
from molecule.scenario import ephemeral_directory 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.helpers.idempotence(scenario_name)
@pytest.mark.parametrize( @pytest.mark.parametrize("driver_name", [("hetznercloud")], indirect=["driver_name"])
"driver_name",
[
("digitalocean"),
("docker"),
("ec2"),
("gce"),
("linode"),
("openstack"),
("vagrant"),
],
indirect=["driver_name"],
)
def test_command_init_role(temp_dir, driver_name, skip_test): def test_command_init_role(temp_dir, driver_name, skip_test):
pytest.helpers.init_role(temp_dir, driver_name) pytest.helpers.init_role(temp_dir, driver_name)

View File

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

View File

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

View File

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

View File

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