Release v13 + move to FMF

Release v13

Drop STI tests and move to FMF used upstream, sync dist-git
with upstream packaging and test setup files.

Resolves: rhbz#2186909
This commit is contained in:
Justin Stephenson 2023-05-02 10:59:29 -04:00
parent 95cd82d42a
commit 586d4f0a13
7 changed files with 57 additions and 157 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@
/cockpit-session-recording-11.tar.xz
/cockpit-session-recording-11.1.tar.xz
/cockpit-session-recording-12.tar.xz
/cockpit-session-recording-13.tar.xz

View File

@ -1,14 +1,36 @@
#
# Copyright (C) 2017-2023 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/>.
#
Name: cockpit-session-recording
Version: 12
Release: 3%{?dist}
Version: 13
Release: 1%{?dist}
Summary: Cockpit Session Recording
License: LGPLv2+
License: LGPL-2.1-or-later
URL: https://github.com/Scribery/%{name}
Source: https://github.com/Scribery/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: libappstream-glib
BuildRequires: nodejs
BuildRequires: make
BuildRequires: libappstream-glib
BuildRequires: gettext
%if 0%{?rhel} && 0%{?rhel} <= 8
BuildRequires: libappstream-glib-devel
%endif
Requires: cockpit-system
Requires: tlog
@ -21,7 +43,7 @@ recordings generated by the tlog component.
%setup -qn cockpit-session-recording
%install
%make_install
%make_install PREFIX=/usr
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*
%files
@ -29,6 +51,34 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*
%{_datadir}/metainfo/org.cockpit-project.session-recording.metainfo.xml
%changelog
* Tue May 2 2023 Justin Stephenson <jstephen@redhat.com> - 13-1
- Release v13
- FMF: Fix minor typo in plans
- Add FMF tests and test scripts
- Read existing sssd conf domains and services
- Makefile: Update Cockpit lib to 269bf89276c679a03befc8a04244addd
- Remove CentOS condition in testZoomSpeedControls
- Add accessible name label for Progress component
- Remove 'enable_files_domain' from SSSD Config
- SSSD config changes
- testFastforwardControls update after player-restart
- Switch wait_present to wait_visible
- ESLint error and warning fixes
- Fix stylelint errors
- Dependency updates
- Bring up to date with cockpit starter kit
- Config: Switch SSSD files provider to Proxy provider
- Update fedora license in spec file
- Makefile: Bump test API to 267
- Makefile: drop installing cockpit-ws/cockpit-packagekit
- src: load translations via po.js
- .semaphore: update TEST_OS to Fedora 36
- webpack.config.js: update compression plugin to succeed build
- Makefile: Adjust to changed rpmspec -q behaviour
- Use standard "translate" marker in HTMl
- Update dependencies excluding Patternfly
- Remove unneeded tlog UID code
* Wed Jun 8 2022 Justin Stephenson <jstephen@redhat.com> - 12-2
- Tests: Remove usermod from browser setup

View File

@ -1 +1 @@
SHA512 (cockpit-session-recording-12.tar.xz) = a624a265b8287835ea65d21a059408af674f607dbd4de1aaf182e9447b4457b069d39a59ea8e71bd7e8de0c7c73ef88953905cb5cfc79e32f811d99e63abada1
SHA512 (cockpit-session-recording-13.tar.xz) = 2255aac06c29d40c0a074380ae9bf1d0f7d5ef39b8a312ab6fb0dc626b4d5ef00cb5786c6c54ab21992feba6ae466f6c53fe87ebe4e235015fea5c594eae80a1

View File

@ -1,76 +0,0 @@
#!/bin/sh
set -eux
# from standard-test-source
SOURCE="$(pwd)/source"
LOGS="$(pwd)/logs"
TESTS="$(pwd)/tests"
mkdir -p "$LOGS"
chmod a+w "$LOGS"
# moving SOURCE out of the way.
# Will use upstream source for tests
if [ -d "$SOURCE" ]; then
mv ${SOURCE} ${SOURCE}_str
fi
# install browser; on RHEL, use chromium from epel
# HACK: chromium-headless ought to be enough, but version 88 has a crash: https://bugs.chromium.org/p/chromium/issues/detail?id=1170634
if ! rpm -q chromium; then
if grep -q 'ID=.*rhel' /etc/os-release; then
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf config-manager --enable epel
# Force epel to 8 since epel 9 does not exist yet
sed -i 's/$releasever/8/g' /etc/yum.repos.d/epel*
fi
dnf install -y chromium
dnf remove -y epel-release
fi
# install cockpit-packagekit and glibc-langpack-en for testAppMenu
dnf install -y cockpit-packagekit glibc-langpack-en
# create user account for logging in
if ! id admin 2>/dev/null; then
useradd -c Administrator -G wheel admin
echo admin:foobar | chpasswd
fi
# avoid sudo lecture during tests
su -c 'echo foobar | sudo --stdin whoami' - admin
# create user account for running the test
if ! id runtest 2>/dev/null; then
useradd -c 'Test runner' runtest
# allow test to set up things on the machine
mkdir -p /root/.ssh
curl https://raw.githubusercontent.com/cockpit-project/bots/master/machine/identity.pub >> /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys
fi
# Use upstream code for tests:
git clone https://github.com/Scribery/cockpit-session-recording.git "$SOURCE"
chown -R runtest "$SOURCE"
# disable core dumps, we rather investigate them upstream where test VMs are accessible
echo core > /proc/sys/kernel/core_pattern
# CSR specific setup
mkdir -p /var/log/journal/
cp 1.journal /var/log/journal/1.journal
cp binary-rec.journal /var/log/journal/binary-rec.journal
# Add local domain for sssd for testSessionRecordingConf test
cat > /etc/sssd/sssd.conf <<EOF
[sssd]
enable_files_domain = true
EOF
chmod 600 /etc/sssd/sssd.conf
systemctl start sssd
# Run tests as unprivileged user
su - -c "env SOURCE=$SOURCE LOGS=$LOGS $TESTS/run-test.sh" runtest
RC=$(cat $LOGS/exitcode)
exit ${RC:-1}

View File

@ -1,22 +0,0 @@
---
- include_role:
name: standard-test-source
- include_role:
name: standard-test-basic
vars:
required_packages:
- cockpit-session-recording
- tlog
- cockpit-ws
- cockpit-packagekit
- git
- libvirt-python3
- make
- npm
- python3
tests:
- cockpit-session-recording:
dir: .
run: "{{ test_script_dir | default('.') }}/browser.sh"
save-files: ["logs/*"]

View File

@ -1,28 +0,0 @@
#!/bin/sh
set -eux
# tests need cockpit's bots/ libraries and test infrastructure
cd $SOURCE
git init
make bots test/common
# support running from clean git tree
if [ ! -d node_modules/chrome-remote-interface ]; then
# copy package.json temporarily otherwise npm might try to install the dependencies from it
mv package.json .package.json
npm install chrome-remote-interface sizzle
mv .package.json package.json
fi
. /etc/os-release
export TEST_OS="${ID}-${VERSION_ID/./-}"
export TEST_AUDIT_NO_SELINUX=1
RC=0
test/check-application -tv --machine 127.0.0.1:22 --browser 127.0.0.1:9090 || RC=$?
echo $RC > "$LOGS/exitcode"
cp --verbose Test* "$LOGS" || true
# deliver test result via exitcode file
exit 0

View File

@ -1,25 +0,0 @@
---
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- classic
required_packages:
- cockpit-session-recording
- tlog
- cockpit-ws
- cockpit-packagekit
- git
- libvirt-python3
- make
- npm
- python3
tests:
- browser:
dir: .
run: ./browser.sh
save-files: ["logs/*"]