cockpit-podman-27.1-2.el9

- run much more tests - patch from Matej Marusak

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
This commit is contained in:
Jindrich Novy 2021-01-14 09:22:22 +01:00
parent 9bc41e2fc2
commit ef15ba69ec
7 changed files with 28 additions and 48 deletions

View File

@ -1,3 +0,0 @@
# cockpit-podman
The cockpit-podman package

View File

@ -1,23 +1,6 @@
# This spec file has been automatically updated
Version: 27.1
Release: 1%{?dist}
#
# Copyright (C) 2017-2020 Red Hat, Inc.
#
# Cockpit is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Cockpit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
#
Release: 2%{?dist}
Name: cockpit-podman
Summary: Cockpit component for Podman containers
License: LGPLv2+
@ -29,7 +12,7 @@ BuildRequires: libappstream-glib
Requires: cockpit-bridge >= 138
Requires: cockpit-shell >= 138
Requires: podman >= 2.0.4
Requires: podman >= 1.3.0
%description
The Cockpit user interface for Podman containers.
@ -51,6 +34,9 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
%{_datadir}/metainfo/*
%changelog
* Thu Jan 14 2021 Jindrich Novy <jnovy@redhat.com> - 27.1-2
- run much more tests - patch from Matej Marusak
* Thu Jan 07 2021 Jindrich Novy <jnovy@redhat.com> - 27.1-1
- update to https://github.com/cockpit-project/cockpit-podman/releases/tag/27.1

View File

@ -1,6 +1,6 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -23,6 +23,9 @@ if ! id admin 2>/dev/null; then
echo admin:foobar | chpasswd
fi
# set root's password
echo root:foobar | chpasswd
# avoid sudo lecture during tests
su -c 'echo foobar | sudo --stdin whoami' - admin
@ -39,22 +42,18 @@ chown -R runtest "$SOURCE"
# disable core dumps, we rather investigate them upstream where test VMs are accessible
echo core > /proc/sys/kernel/core_pattern
# pull images for system podman tests
podman pull docker.io/busybox
podman pull docker.io/alpine
podman pull docker.io/registry:2
# grab a few images to play with; tests run offline, so they cannot download images
podman rmi --all
podman pull quay.io/libpod/busybox
podman pull quay.io/libpod/alpine
podman pull quay.io/cockpit/registry:2
# HACK: avoid leftover user podman processes between login sessions: https://github.com/containers/podman/issues/7021
mkdir -p /etc/systemd/user/podman.service.d
printf '[Service]\nKillMode=\n' > /etc/systemd/user/podman.service.d/cleanup.conf
# pull images for user podman tests; podman insists on user session
# copy images for user podman tests; podman insists on user session
loginctl enable-linger $(id -u admin)
sudo -i -u admin bash << EOF
podman pull docker.io/busybox
podman pull docker.io/alpine
podman pull docker.io/registry:2
EOF
podman rmi --all
for img in quay.io/libpod/busybox quay.io/libpod/alpine quay.io/cockpit/registry:2; do
podman save $img | sudo -i -u admin podman load
done
loginctl disable-linger $(id -u admin)
systemctl enable --now cockpit.socket podman.socket

View File

@ -1,11 +1,4 @@
---
- name: upgrade critical packages to the latest version
dnf:
name:
- podman
- conmon
state: latest
- include_role:
name: standard-test-source

View File

@ -12,13 +12,18 @@ npm install chrome-remote-interface sizzle
. /etc/os-release
export TEST_OS="${ID}-${VERSION_ID/./-}"
# HACK: upstream does not yet know about rawhide
if [ "$TEST_OS" = "fedora-34" ]; then
export TEST_OS=fedora-33
fi
export TEST_AUDIT_NO_SELINUX=1
# FIXME: Internal Server Error: statfs /tmp/bin: no such file or directory
EXCLUDES="--exclude TestApplication.testRunImageUser"
RC=0
test/common/run-tests --trace --verbose --nondestructive --machine 127.0.0.1:22 --browser 127.0.0.1:9090 $EXCLUDES || RC=$?
test/common/run-tests --nondestructive --machine 127.0.0.1:22 --browser 127.0.0.1:9090 $EXCLUDES || RC=$?
echo $RC > "$LOGS/exitcode"
cp --verbose Test* "$LOGS" || true

View File

@ -1,6 +1,6 @@
---
- hosts: localhost
tags:
- classic
- always
roles:
- test