Skip to content

Commit

Permalink
Use release repos in acceptance tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ekohl committed Oct 12, 2023
1 parent b7cb8ba commit 8d3a3b0
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions spec/setup_acceptance_node.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
ensure => installed,
}

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

if $facts['os']['selinux']['enabled'] {
# Workaround for https://github.com/theforeman/puppet-candlepin/issues/188
package { 'pki-core':
Expand All @@ -15,15 +19,6 @@
}
}

# Defaults to staging, for release, use
# $baseurl = "https://yum.theforeman.org/katello/nightly/candlepin/el${major}/x86_64/"
$baseurl = "http://koji.katello.org/releases/yum/katello-nightly/candlepin/el${major}/x86_64/"

yumrepo { 'candlepin':
baseurl => $baseurl,
gpgcheck => 0,
}

# Needed as a workaround for idempotency
if $facts['os']['selinux']['enabled'] {
package { 'candlepin-selinux':
Expand Down

0 comments on commit 8d3a3b0

Please sign in to comment.