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

add modules param to spec_helper_acceptance.rb.erb #837

Merged

Conversation

jhoblitt
Copy link
Member

No description provided.

@jhoblitt
Copy link
Member Author

Another option would be a flag to remove configure_beaker from spec_helper_acceptance.rb completely.

@jhoblitt jhoblitt force-pushed the feature/configure_breaker_modules branch from 3f91a10 to 18827d7 Compare June 22, 2023 21:09
@jhoblitt
Copy link
Member Author

Take #2 now with the ability to remove #configure_breaker completely. I've discovered I need this ability to use #scp_to.

@jhoblitt
Copy link
Member Author

Grrr, rubocop is unhappy about the extra newline. Standby for take #3.

@jhoblitt jhoblitt force-pushed the feature/configure_breaker_modules branch 2 times, most recently from 91721fc to fe6ab9f Compare June 22, 2023 21:30
@@ -5,6 +5,8 @@

require 'voxpupuli/acceptance/spec_helper_acceptance'

configure_beaker
<%- unless @configs['configure_beaker'].nil? -%>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thinking about it again... if it's set to :fixtures we could automatically add task :beaker => "spec_prep" to the rakefile? But that would then require puppetlabs_spec_helper 🤔

Copy link
Member Author

@jhoblitt jhoblitt Jun 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the gem would need to be added. Here's a PR I'm currently working on that has .sync.yml changes (rewritten by psych) and adds ./rakelib/beaker.rake. https://github.com/lsst-it/puppet-ccs_software/pull/39/files

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That PR is also a good example of the pain of .fixtures.yml not having any dep resolution. I don't understand why Puppetfile never became a thing for test fixtures...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably because r10k doesn't do dependency resolution either. Does Puppetfile support symlinks?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thinking about it again... if it's set to :fixtures we could automatically add task :beaker => "spec_prep" to the rakefile? But that would then require puppetlabs_spec_helper thinking

Perhaps this bit would be useful in Rakefile: https://github.com/theforeman/foreman-installer-modulesync/blob/5bff8e9a2800ea6e0928aaaa0c2778c60d426bc1/moduleroot/Rakefile.erb#L21-L22

@jhoblitt jhoblitt force-pushed the feature/configure_breaker_modules branch from fe6ab9f to a4f9849 Compare June 22, 2023 22:34
@jhoblitt jhoblitt merged commit 9866cfc into voxpupuli:master Jun 22, 2023
3 checks passed
@jhoblitt jhoblitt deleted the feature/configure_breaker_modules branch June 22, 2023 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants