MOLECULE_REPORT is not generating html report when mentioned in molecule.yml as per docs
ABHISHEK-SINHA10 opened this issue · 2 comments
Prerequisites
- This was not already reported in the past (duplicate check)
- It does reproduce it with code from main branch (latest unreleased version)
- I include a minimal example for reproducing the bug
- The bug is not trivial, as for those a direct pull-request is preferred
- Running
pip check
does not report any conflicts - I was able to reproduce the issue on a different machine
- The issue is not specific to any driver other than 'default' one
Environment
molecule 6.0.2 using python 3.11
ansible:2.16.0
azure:23.5.0 from molecule_plugins
containers:23.5.0 from molecule_plugins requiring collections: ansible.posix>=1.3.0 community.docker>=1.9.1 containers.podman>=1.8.1
default:6.0.2 from molecule
docker:23.5.0 from molecule_plugins requiring collections: community.docker>=3.0.2 ansible.posix>=1.4.0
ec2:23.5.0 from molecule_plugins
gce:23.5.0 from molecule_plugins requiring collections: google.cloud>=1.0.2 community.crypto>=1.8.0
podman:23.5.0 from molecule_plugins requiring collections: containers.podman>=1.7.0 ansible.posix>=1.3.0
vagrant:23.5.0 from molecule_plugins
What happened
As per molecule docs: https://ansible.readthedocs.io/projects/molecule/configuration/#molecule.interpolation.Interpolator
If we mention MOLECULE_REPORT in molecule.yml, it's not generating html report.
Reproducing example
---
dependency:
name: galaxy
driver:
name: podman
platforms:
- name: centos
image: quay.io/centos/centos:stream8
pre_build_image: true
volumes:
- /tmp:/tmpcl
provisioner:
name: ansible
env:
MOLECULE_REPORT: 'molecule_report'
This env variable was not designed to be used in the config file. Also, MOLECULE_REPORT
requires the name of an HTML file.
@priyamsahoo can you provide any example, or provide any link of documentation with example ?