diff --git a/roles/php_website/molecule/default/tests/conftest.py b/roles/php_website/molecule/default/tests/conftest.py index f4ef497f2b8953bd333b725ce698b3ab695f9354..f9c832b15a2dc1d2217188eb28942305a580bc59 100644 --- a/roles/php_website/molecule/default/tests/conftest.py +++ b/roles/php_website/molecule/default/tests/conftest.py @@ -12,6 +12,7 @@ def php_info(host): Currently supports: - Debian 11 (Bullseye) + - Debian 12 (Bookworm) Resulting information can be accessed through returned named tuple with the following properties: @@ -29,6 +30,8 @@ def php_info(host): if ansible_distribution_release == 'bullseye': info = PHPInfo(fpm_package='php-fpm', fpm_service='php7.4-fpm', fpm_pool_dir='/etc/php/7.4/fpm/pool.d', base_config_dir='/etc/php/7.4') + elif ansible_distribution_release == 'bookworm': + info = PHPInfo(fpm_package='php-fpm', fpm_service='php8.2-fpm', fpm_pool_dir='/etc/php/8.2/fpm/pool.d', base_config_dir='/etc/php/8.2') else: raise Exception('The php_info pytest fixture does not support Debian release: %s' % ansible_distribution_release)