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

Use release repos in acceptance tests #245

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Oct 12, 2023

This uses the candlepin::repo class we already have to use release repositories, rather than staging.

It also tries to look for a candlepin_version fact, which can be used to test on other versions of Katello.

This takes part of #244. The BEAKER_FACTER part should be ready with #241 & theforeman/foreman-installer-modulesync#152. It doesn't set a default for the candlepin::repo class, forcing users to choose a version. Instead it uses pick() to fall back to nightly in CI.

@@ -4,6 +4,10 @@
ensure => installed,
}

class { 'candlepin::repo':
version => pick(fact('candlepin_version', 'nightly')),
Copy link
Member

Choose a reason for hiding this comment

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

Used here -- https://github.com/theforeman/puppet-candlepin/pull/244/files#diff-bc6ad36e1eaefacb5face10b0d75de01df4c7bc7611f63d907ae5c8a2633f7acR8

Suggested change
version => pick(fact('candlepin_version', 'nightly')),
version => pick(fact('candlepin_version') 'nightly'),

This uses the candlepin::repo class we already have to use release
repositories, rather than staging.

It also tries to look for a `candlepin_version` fact, which can be used
to test on other versions of Katello.
@ehelms ehelms merged commit d02c1c2 into theforeman:master Oct 12, 2023
5 checks passed
@ekohl ekohl deleted the use-stable-repo branch October 12, 2023 15:12
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.

2 participants