This is an automated email from the git hooks/post-receive script.
praiskup pushed a commit to branch master in repository copr/copr.
commit 327eb292f221592282a87fe0a0ae6a2b16960ade Author: Dominik Turecek dturecek@redhat.com AuthorDate: Wed Jul 24 12:55:47 2019 +0200
beaker-tests: add test for createrepo after project/chroot creation
Complements 0ee001c373b438be111c3b5c7db5adcb0f534682 --- .../runtest-createrepo.sh | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+)
diff --git a/beaker-tests/Sanity/copr-cli-basic-operations/runtest-createrepo.sh b/beaker-tests/Sanity/copr-cli-basic-operations/runtest-createrepo.sh new file mode 100755 index 0000000..465f265 --- /dev/null +++ b/beaker-tests/Sanity/copr-cli-basic-operations/runtest-createrepo.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +. /usr/bin/rhts-environment.sh || exit 1 +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +# Load config settings +HERE=$(dirname "$(realpath "$0")") +source "$HERE/config" +source "$HERE/helpers" + +URL=${FRONTEND_URL#https://} + +rlJournalStart + rlPhaseStartSetup + rlPhaseEnd + + rlPhaseStartTest + rlRun "copr-cli create ${NAME_PREFIX}Createrepo --chroot fedora-30-x86_64" + echo "sleep 60 seconds to give backend enough time to generate the repo" + sleep 60 + rlRun "dnf -y copr enable ${URL}/${NAME_PREFIX}Createrepo" + rlRun "dnf --disablerepo='*' \ + --enablerepo='copr:${URL}:group_copr:${NAME_VAR}Createrepo' \ + list available 2>&1 | grep 'Failed to synchronize'" 1 + + rlRun "copr-cli modify ${NAME_PREFIX}Createrepo --chroot fedora-rawhide-x86_64" + echo "sleep 60 seconds to give backend enough time to generate the repo" + sleep 60 + rlRun "dnf -y copr enable ${URL}/${NAME_PREFIX}Createrepo fedora-rawhide-x86_64" + rlRun "dnf --disablerepo='*' \ + --enablerepo='copr:${URL}:group_copr:${NAME_VAR}Createrepo' \ + list available 2>&1 | grep 'Failed to synchronize'" 1 + + rlRun "copr-cli delete ${NAME_PREFIX}Createrepo" + rlPhaseEnd + + rlPhaseStartCleanup + rlPhaseEnd +rlJournalPrintText +rlJournalEnd