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

declaring a symlink should not alter the default symlink to current module #397

Closed
MartyEwings opened this issue Apr 28, 2023 · 0 comments · Fixed by #431
Closed

declaring a symlink should not alter the default symlink to current module #397

MartyEwings opened this issue Apr 28, 2023 · 0 comments · Fixed by #431
Labels

Comments

@MartyEwings
Copy link

This code

fixtures['symlinks'] = auto_symlink if fixtures['symlinks'].nil?

prevents the use of symlinks section of the fixtures file for any other purpose than self reference for example:

symlinks:
peadm_spec: "#{source_dir}/spec/fixtures/modules/peadm/spec/acceptance/peadm_spec/"

would mean the code above would not also include this in the fixtures

symlinks:
<module_name>: "#{source_dir}"

It would be preferred if instead of a check and replace

fixtures['symlinks'] = auto_symlink if fixtures['symlinks'].nil?

that fixtures['symlinks'] wold be merged with auto_symlink to prevent loss of testing context

jordanbreen28 added a commit that referenced this issue Feb 1, 2024
Before, declaring a symlink would overwrite the symlink to the current
module.
This is not what we would want for testing, and we should be able to
declare additional symlinks to the default one.
Now, we extra symlinks declared, we merge into the auto_symlink, if not
operate as before.
jordanbreen28 added a commit that referenced this issue Feb 1, 2024
Before, declaring a symlink would overwrite the symlink to the current
module.
This is not what we would want for testing, and we should be able to
declare additional symlinks to the default one.
Now, we extra symlinks declared, we merge into the auto_symlink, if not
operate as before.
jordanbreen28 added a commit that referenced this issue Feb 1, 2024
Before, declaring a symlink would overwrite the symlink to the current
module.
This is not what we would want for testing, and we should be able to
declare additional symlinks to the default one.
Now, we extra symlinks declared, we merge into the auto_symlink, if not
operate as before.
LukasAud added a commit that referenced this issue Feb 1, 2024
(GH-397) - Honour default symlink when additional symlinks delcared
LukasAud added a commit that referenced this issue Feb 9, 2024
(bug) - check for empty fixtures array, as well as nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant