diff --git a/tests/plugins/host_agent/test_install_template.py b/tests/plugins/host_agent/test_install_template.py index efaed79..835242f 100644 --- a/tests/plugins/host_agent/test_install_template.py +++ b/tests/plugins/host_agent/test_install_template.py @@ -69,6 +69,9 @@ def test_rendered_script_passes_sh_n(tmp_path): def test_agent_version_parses_on_disk_agent(): + # Version-agnostic: the parsed value must match the agent module's constant, + # so a future AGENT_VERSION bump doesn't require touching this test. + from plugins.host_agent import agent assert AGENT_SOURCE_PATH.exists() v = _agent_version() - assert v == "1.0.0" + assert v == agent.AGENT_VERSION