Skip to content

Commit

Permalink
relax ansible-core version check to 2.12.x
Browse files Browse the repository at this point in the history
  • Loading branch information
tknerr committed Feb 27, 2023
1 parent 2d60f48 commit 5fca226
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/test_ansible.py
Expand Up @@ -5,16 +5,16 @@ def test_ansible_is_installed_at_version_5_5_0_(host):
assert "Name: ansible\nVersion: 5.5.0" in cmd.stdout


def test_ansible_core_is_installed_at_version_2_12_5_(host):
def test_ansible_core_is_installed_at_version_2_12_x_(host):
cmd = host.run("pip3 show --disable-pip-version-check ansible-core")
assert cmd.rc is 0
assert "Name: ansible-core\nVersion: 2.12.5" in cmd.stdout
assert "Name: ansible-core\nVersion: 2.12." in cmd.stdout


def test_ansible_commands_are_found_(host):
assert host.run('which ansible').rc is 0
assert host.run('which ansible-playbook').rc is 0


def test_ansible_version_command_reports_core_version_2_12_5_(host):
assert 'core 2.12.5' in host.run('ansible --version').stdout
def test_ansible_version_command_reports_core_version_2_12_x_(host):
assert 'core 2.12.' in host.run('ansible --version').stdout

0 comments on commit 5fca226

Please sign in to comment.