root@Proxmox-VE /tmp # proxmox_hetzner_autoconfigure
-bash: proxmox_hetzner_autoconfigure: command not found
root@Proxmox-VE /tmp/proxmox-hetzner-autoconfigure # poetry run pytest
======================================= test session starts ========================================
platform linux -- Python 3.7.3, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
rootdir: /tmp/proxmox-hetzner-autoconfigure
collected 24 items
tests/test_end_to_end.py F [ 4%]
tests/configurators/test_network.py .. [ 12%]
tests/configurators/test_snippets.py .. [ 20%]
tests/configurators/test_storage_box.py .... [ 37%]
tests/configurators/test_tls.py ..... [ 58%]
tests/configurators/network/topologies/test_routed_separate_ips.py ..... [ 79%]
tests/configurators/network/topologies/test_routed_subnet.py ..... [100%]
============================================= FAILURES =============================================
_________________________________________ test_end_to_end __________________________________________
def test_end_to_end():
dialog = MagicMock()
dialog.msgbox.side_effect = [
["ok"],
]
dialog.checklist.side_effect = [["ok", []]]
main.util.dialog = dialog
> main.run()
tests/test_end_to_end.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
proxmox_hetzner_autoconfigure/main.py:46: in run
script = util.build_script(chosen_configurators)
proxmox_hetzner_autoconfigure/util/util.py:75: in build_script
return render_template(__file__, "install", {"sections": sections})
proxmox_hetzner_autoconfigure/util/util.py:50: in render_template
return template.render(binds)
/root/.cache/pypoetry/virtualenvs/proxmox-hetzner-autoconfigure-7-ig0on1-py3.7/lib/python3.7/site-packages/jinja2/environment.py:1090: in render
self.environment.handle_exception()
/root/.cache/pypoetry/virtualenvs/proxmox-hetzner-autoconfigure-7-ig0on1-py3.7/lib/python3.7/site-packages/jinja2/environment.py:832: in handle_exception
reraise(*rewrite_traceback_stack(source=source))
/root/.cache/pypoetry/virtualenvs/proxmox-hetzner-autoconfigure-7-ig0on1-py3.7/lib/python3.7/site-packages/jinja2/_compat.py:28: in reraise
raise value.with_traceback(tb)
proxmox_hetzner_autoconfigure/util/install.jinja2:41: in top-level template code
* Navigate to the Proxmox web GUI at https://{{ shared_globals['fqdn'] }}:8006
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <jinja2.environment.Environment object at 0x7efe022020b8>, obj = Undefined, argument = 'fqdn'
def getitem(self, obj, argument):
"""Get an item or attribute of an object but prefer the item."""
try:
> return obj[argument]
E jinja2.exceptions.UndefinedError: 'shared_globals' is undefined
/root/.cache/pypoetry/virtualenvs/proxmox-hetzner-autoconfigure-7-ig0on1-py3.7/lib/python3.7/site-packages/jinja2/environment.py:452: UndefinedError
===================================== short test summary info ======================================
FAILED tests/test_end_to_end.py::test_end_to_end - jinja2.exceptions.UndefinedError: 'shared_glob...
=================================== 1 failed, 23 passed in 0.18s ===================================