Skip to content

Commit

Permalink
tests/container: Drop Ignition override
Browse files Browse the repository at this point in the history
These hardcoded package versions just ruin CI.  We're
unlikely to break this.

Eventually what we'll want to do is set up something like
a COPR that auto-regenerates "dummy" changes.
  • Loading branch information
cgwalters committed Oct 2, 2023
1 parent 313e008 commit d3fb416
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions ci/test-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,40 +71,10 @@ if ! grep -qFe "not yet implemented" err.txt; then
assert_not_reached "unexpected error"
fi

# Test overrides
versionid=$(grep -E '^VERSION_ID=' /etc/os-release)
versionid=${versionid:11} # trim off VERSION_ID=
case $versionid in
38)
url_suffix=2.15.0/4.fc39/x86_64/ignition-2.15.0-4.fc39.x86_64.rpm
# 2.15.0-3
koji_url="https://koji.fedoraproject.org/koji/buildinfo?buildID=2158585"
koji_kernel_url="https://koji.fedoraproject.org/koji/buildinfo?buildID=2174317"
kver=6.2.8
krev=300
;;
*) fatal "Unsupported Fedora version: $versionid";;
esac
URL=https://kojipkgs.fedoraproject.org//packages/ignition/$url_suffix
# test replacement by URL
rpm-ostree override replace $URL
rpm-ostree override remove ignition
# test local RPM install
curl -Lo ignition.rpm $URL
rpm-ostree install ignition.rpm
rpm -q ignition

# And verify it's uninstalled
# Verify dnf wrapper
dnf -y uninstall kexec-tools
if rpm -q kexec-tools; then fatal "failed to remove kexec-tools"; fi

# test replacement by Koji URL
rpm-ostree override replace $koji_url |& tee out.txt
n_downloaded=$(grep Downloading out.txt | wc -l)
if [[ $n_downloaded != 1 ]]; then
fatal "Expected 1 'Downloading', but got $n_downloaded"
fi

(cd /etc/yum.repos.d/ && curl -LO https://raw.githubusercontent.com/coreos/fedora-coreos-config/testing-devel/fedora-coreos-pool.repo)
(cd /etc/yum.repos.d/ && curl -LO https://raw.githubusercontent.com/coreos/fedora-coreos-config/testing-devel/ci/continuous/fcos-continuous.repo)

Expand Down

0 comments on commit d3fb416

Please sign in to comment.