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

modulesync 5.1.0 #38

Merged
merged 14 commits into from
Jun 5, 2023
Merged

modulesync 5.1.0 #38

merged 14 commits into from
Jun 5, 2023

Conversation

bastelfreak
Copy link
Member

modulesync 4.0.0

@ekohl
Copy link
Member

ekohl commented Nov 25, 2020

I think this needs the Sensitive fix for the unit tests.

       expected that the catalogue would contain File[/etc/check_mk/encryption.cfg] with content set to /PASSPHRASE=SECRET\n/ but it is set to #<Sensitive [value redacted]>

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

Marking as reviewed.

@bastelfreak
Copy link
Member Author

bastelfreak commented Mar 23, 2021

@bastelfreak bastelfreak force-pushed the modulesync branch 8 times, most recently from 3c47aa5 to cdbb460 Compare March 23, 2021 14:04
Comment on lines 70 to 61
content = catalogue.resource('file', '/etc/check_mk/encryption.cfg').parameters[:content]
expect(content).to include("PASSPHRASE=SECRET\n")
Copy link
Member

Choose a reason for hiding this comment

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

I think you can check it with 'content' => sensitive('PASSPHRASE=SECRET\n') but I don't know if that supports partial matches.

@@ -11,9 +11,41 @@
}
end

on_supported_os.each do |os, os_facts|
on_supported_os.each do |os, facts|
Copy link
Member

Choose a reason for hiding this comment

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

The use of os_facts is preferred nowadays. It avoids an overlap of variable names which can remove confusion.

on_supported_os.each do |os, os_facts|
let(:facts) { os_facts }
on_supported_os.each do |os, facts|
systemd_facts = case facts[:operatingsystem]
Copy link
Member

Choose a reason for hiding this comment

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

Given the repetition, perhaps this should live in a spec helper? The systemd_version fact can be a nice addition here:
https://github.com/voxpupuli/voxpupuli-test/blob/f6c85fe54412248339cbb8ebe197c0b95dbb5697/lib/voxpupuli/test/facts.rb#L53-L54

voxpupuli/modulesync_config#693 will then be needed to use it, but it can save a lot of duplication.

@bastelfreak
Copy link
Member Author

@mmerfort any chance you can take a look at the failing acceptance tests or the changes I made in #43? I'm not really sure why the tests don't pass and I'm not very familiar with check_mk. An alternative approach would be to only remove CentOS 6 from metadata.json but keep xinetd support.

@bastelfreak bastelfreak requested a review from mmerfort March 23, 2021 14:25
@bastelfreak bastelfreak force-pushed the modulesync branch 2 times, most recently from cf6309b to 057dbce Compare December 16, 2021 10:01
@bastelfreak bastelfreak changed the title modulesync 4.0.0 modulesync 5.1.0 Dec 16, 2021
@bastelfreak bastelfreak merged commit 2766a5e into master Jun 5, 2023
@bastelfreak bastelfreak deleted the modulesync branch June 5, 2023 19:38
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.

6 participants