If you're on a version of Ubuntu with a codename not mentioned in test_installer.py's RELEASE_TO_CLOUD, the integration tests fail to setup due to the version codename not matching.
To Reproduce
Clone the repository and try to run pytest on mantic.
part yaml
N/A
Relevant log output
================================================================================================================================================================================================================================ test session starts =================================================================================================================================================================================================================================
platform linux -- Python 3.8.18, pytest-7.4.2, pluggy-1.3.0
rootdir: /home/lengau/Work/Code/craft-archives
configfile: pyproject.toml
plugins: mock-3.11.1, check-2.2.1, cov-4.1.0
collected 188 items / 1 error
======================================================================================================================================================================================================================================= ERRORS =======================================================================================================================================================================================================================================
_____________________________________________________________________________________________________________________________________________________________________________________________________________ ERROR collecting tests/integration/repo/test_installer.py ______________________________________________________________________________________________________________________________________________________________________________________________________________
.venv/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
.venv/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
.venv/lib/python3.8/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
.venv/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
.venv/lib/python3.8/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
.venv/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
.venv/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
.venv/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
???
<frozen importlib._bootstrap>:991: in _find_and_load
???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:671: in _load_unlocked
???
.venv/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
exec(co, module.__dict__)
tests/integration/repo/test_installer.py:58: in <module>
CLOUD_DATA = RELEASE_TO_CLOUD[VERSION_CODENAME]
E KeyError: 'mantic'
============================================================================================================================================================================================================================== short test summary info ===============================================================================================================================================================================================================================
ERROR tests/integration/repo/test_installer.py - KeyError: 'mantic'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================================================================================================================================================================================================== 1 error in 0.21s ==================================================================================================================================================================================================================================
Bug Description
If you're on a version of Ubuntu with a codename not mentioned in
test_installer.py
'sRELEASE_TO_CLOUD
, the integration tests fail to setup due to the version codename not matching.To Reproduce
Clone the repository and try to run pytest on mantic.
part yaml
Relevant log output