Skip to content

Commit

Permalink
Fixed Molecule tests
Browse files Browse the repository at this point in the history
Due to plugin changes.
  • Loading branch information
freemanjp committed Nov 16, 2024
1 parent 2ca18a2 commit edd8af8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
9 changes: 5 additions & 4 deletions molecule/default/tests/test_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_config_files(host, file_path, expected_text):


@pytest.mark.parametrize('plugin_dir_name', [
'google-java-format',
'idea_plugin',
'MavenHelper'
])
def test_plugins_installed(host, plugin_dir_name):
Expand All @@ -60,9 +60,10 @@ def test_jar_plugin_installed(host):
'/home/test_usr',
plugins_dir_pattern)

plugin_path = host.check_output('find %s | grep --color=never -E %s',
plugins_path,
'save-actions.*\\.jar')
plugin_path = host.check_output(
'find %s | grep --color=never -E %s | head -1',
plugins_path,
'save-actions.*\\.jar')

plugin_file = host.file(plugin_path)

Expand Down
9 changes: 5 additions & 4 deletions molecule/opensuse/tests/test_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_config_files(host, file_path, expected_text):


@pytest.mark.parametrize('plugin_dir_name', [
'google-java-format',
'idea_plugin',
'MavenHelper'
])
def test_plugins_installed(host, plugin_dir_name):
Expand All @@ -56,9 +56,10 @@ def test_jar_plugin_installed(host):
'/home/test_usr',
plugins_dir_pattern)

plugin_path = host.check_output('find %s | grep --color=never -E %s',
plugins_path,
'save-actions.*\\.jar')
plugin_path = host.check_output(
'find %s | grep --color=never -E %s | head -1',
plugins_path,
'save-actions.*\\.jar')

plugin_file = host.file(plugin_path)

Expand Down
9 changes: 5 additions & 4 deletions molecule/rocky/tests/test_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_config_files(host, file_path, expected_text):


@pytest.mark.parametrize('plugin_dir_name', [
'google-java-format',
'idea_plugin',
'MavenHelper'
])
def test_plugins_installed(host, plugin_dir_name):
Expand All @@ -56,9 +56,10 @@ def test_jar_plugin_installed(host):
'/home/test_usr',
plugins_dir_pattern)

plugin_path = host.check_output('find %s | grep --color=never -E %s',
plugins_path,
'save-actions.*\\.jar')
plugin_path = host.check_output(
'find %s | grep --color=never -E %s | head -1',
plugins_path,
'save-actions.*\\.jar')

plugin_file = host.file(plugin_path)

Expand Down

0 comments on commit edd8af8

Please sign in to comment.