Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve collection root detection #220

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

cidrblock
Copy link
Collaborator

@cidrblock cidrblock commented Jun 4, 2024

For the integration test role, use the MOLECULE_PROJECT_DIRECTORY set for the parent process.

"MOLECULE_PROJECT_DIRECTORY=/home/bthornto/github/molecule_anshul_issue/collection/extensions"

The collection root will be the parent directory of the extensions directory which is considered the MOLECULE_PROJECT_DIRECTORY.

This will also eliminate the need to git init the collection root for the sake of molecule prior to developing tests.

Note- The vars file name was reverted to '.yml from .j2 b/c there was no templating required of the file at this time.

Note: Templating will be limited to those files that have a .j2 suffix to avoid a double templating issue where a filter plugin may belong to ansible. We are only using the jinja2 library for templating so ansible's plugins are not available. Several file that needed to be templated were missing the .j2 extension.

Thinking aloud, it might be nice to have the j2 somewhere else in the file, or in a header so we get native sytax checking for the real filetype

@cidrblock cidrblock requested a review from a team as a code owner June 4, 2024 17:13
@cidrblock cidrblock requested review from priyamsahoo and shatakshiiii and removed request for a team June 4, 2024 17:13
@github-actions github-actions bot added the bug Something isn't working label Jun 4, 2024
@cidrblock cidrblock merged commit 296c13b into ansible:main Jun 4, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants