Skip to content

Commit

Permalink
fix molecule tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bodsch committed Jul 19, 2023
1 parent 188b63e commit a7b04b7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 13 deletions.
1 change: 0 additions & 1 deletion collections.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ collections:
- name: bodsch.core
version: ">=1.0.19"
- name: bodsch.scm
# version: ">=1.0.19"
5 changes: 1 addition & 4 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
---

glauth_version: 2.1.0

# glauth_release_download_url: https://github.com/glauth/glauth/releases
# glauth_release_api_url: https://api.github.com/repos/glauth/glauth/releases
glauth_version: 2.2.0

glauth_system_user: glauth
glauth_system_group: glauth
Expand Down
4 changes: 2 additions & 2 deletions molecule/2.2.0-rc/tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def read_ansible_yaml(file_name, role_name):
read_file = None

for e in ["yml", "yaml"]:
test_file = "{}.{}".format(file_name, e)
test_file = f"{file_name}.{e}"
if os.path.isfile(test_file):
read_file = test_file
break
Expand Down Expand Up @@ -110,7 +110,7 @@ def local_facts(host):
@pytest.mark.parametrize("dirs", [
"/etc/glauth",
"/var/lib/glauth",
"/usr/local/bin/glauth",
"/usr/local/opt/glauth",
])
def test_directories(host, dirs):
d = host.file(dirs)
Expand Down
4 changes: 2 additions & 2 deletions molecule/database-config/tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def read_ansible_yaml(file_name, role_name):
read_file = None

for e in ["yml", "yaml"]:
test_file = "{}.{}".format(file_name, e)
test_file = f"{file_name}.{e}"
if os.path.isfile(test_file):
read_file = test_file
break
Expand Down Expand Up @@ -110,7 +110,7 @@ def local_facts(host):
@pytest.mark.parametrize("dirs", [
"/etc/glauth",
"/var/lib/glauth",
"/usr/local/bin/glauth",
"/usr/local/opt/glauth",
])
def test_directories(host, dirs):
d = host.file(dirs)
Expand Down
4 changes: 2 additions & 2 deletions molecule/default/tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def read_ansible_yaml(file_name, role_name):
read_file = None

for e in ["yml", "yaml"]:
test_file = "{}.{}".format(file_name, e)
test_file = f"{file_name}.{e}"
if os.path.isfile(test_file):
read_file = test_file
break
Expand Down Expand Up @@ -110,7 +110,7 @@ def local_facts(host):
@pytest.mark.parametrize("dirs", [
"/etc/glauth",
"/var/lib/glauth",
"/usr/local/bin/glauth",
"/usr/local/opt/glauth",
])
def test_directories(host, dirs):
d = host.file(dirs)
Expand Down
4 changes: 2 additions & 2 deletions molecule/local-config/tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def read_ansible_yaml(file_name, role_name):
read_file = None

for e in ["yml", "yaml"]:
test_file = "{}.{}".format(file_name, e)
test_file = f"{file_name}.{e}"
if os.path.isfile(test_file):
read_file = test_file
break
Expand Down Expand Up @@ -110,7 +110,7 @@ def local_facts(host):
@pytest.mark.parametrize("dirs", [
"/etc/glauth",
"/var/lib/glauth",
"/usr/local/bin/glauth",
"/usr/local/opt/glauth",
])
def test_directories(host, dirs):
d = host.file(dirs)
Expand Down

0 comments on commit a7b04b7

Please sign in to comment.