-
Notifications
You must be signed in to change notification settings - Fork 30
Conversation
thanks a lot for your patch!
|
@hensema can I help you with fixing the build? The change itself is perfectly fine to me :) |
@Ma27 Sure, but due to personal circumstances I won't have time to do so quickly. Hopefully tomorrow or early next week. |
@hensema no hurry, that's absolutely fine, thank you! :) |
Unfortunately as I'm not a Ruby programmer I don't know how to run the unit tests, let alone adapt them to the new manifest. When following the docs on https://puppet.com/blog/unit-testing-rspec-puppet-for-beginners I get: hensema@puppet-foreman:~/erik/modules/composer/spec$ rspec classes/composer_spec.rb Any clue on how to proceed? |
I'd use the configured rake scripts rather than the
|
-nevermind- |
I assume I should run "bundle exec rake spec". This seems to run the unit tests. However, almost all tests fail (28 failures out of 30). Are there any other prerequisites for running the unit tests? Output:
|
First of all, can you please wrap the CLI output with The issue is caused by your change, the variables |
It would certainly be the quickest solution if you could update the tests 😀 |
Dammit, screwed up the merge, pushed locally, sorry ... |
Overview
This PR changes the exec resource to self-update composer to a cron resource. This prevents the node from being active all the time.
For now, the hour is hardcoded to 0 and the minute is generated randomly based on fqdn_rand().