Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
/var/lib/openqa/osc-plugin-factory/factory-package-news/factory-package-news.py rUx,
/usr/share/openqa/script/openqa-cli rPx -> /opt/openqa-trigger-from-obs/script/rsync.sh//openqa_cli,
/usr/bin/openqa-cli rPx -> /opt/openqa-trigger-from-obs/script/rsync.sh//openqa_cli,
/var/lib/openqa/share/factory/repo/** rwl, # need write and link permissions, because bsdtar may extract iso here
/var/lib/openqa/share/factory/{iso,hdd,other}/** r,
/var/lib/openqa/share/factory/{repo,iso}/** rwl, # need write and link permissions, because bsdtar may extract iso here
/var/lib/openqa/share/factory/{hdd,other}/** r,
/{usr/bin,bin}/bash mrix,
owner /proc/*/fd/* w,

Expand Down
2 changes: 2 additions & 0 deletions t/podman/lib/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ prepare_project() {
prj=$1
suff=$2

test -z "$suff" || suff=-$suff

(
cd /opt/openqa-trigger-from-obs
mkdir -p $prj
Expand Down
1 change: 1 addition & 0 deletions t/podman/rest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export METHOD=rest
set -e
script/openSUSE:Leap:15.2:Staging:A.sh
script/openSUSE:Leap:15.4:WSL.sh
script/systemsmanagement:Agama:Devel.sh
1 change: 1 addition & 0 deletions t/podman/rsync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ script/openSUSE:Leap:15.2:Staging:A.sh
script/openSUSE:Leap:15.2:ARM:ToTest.sh
script/openSUSE:Factory:ToTest.sh
script/openSUSE:Leap:15.4:WSL.sh
script/systemsmanagement:Agama:Devel.sh
2 changes: 1 addition & 1 deletion t/podman/script/openSUSE:Leap:15.2:Staging:A.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ touch /mockOBS/openSUSE\:Leap\:15.2\:Staging\:A/images/x86_64/product/openSUSE-L
touch /mockOBS/openSUSE\:Leap\:15.2\:Staging\:A/images/x86_64/product/openSUSE-Leap-15.2-DVD-x86_64-Build248.1-Media.iso.sha256
chown -R "$dbuser" /mockOBS

prepare_project openSUSE:Leap:15.2:Staging:A -stage
prepare_project openSUSE:Leap:15.2:Staging:A stage

set -x
# make sure run did happen
Expand Down
33 changes: 33 additions & 0 deletions t/podman/script/systemsmanagement:Agama:Devel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!lib/test-in-container-systemd.sh

set -ex
source lib/common.sh

# mock OBS backend folder
mkdir -p /mockOBS/systemsmanagement:Agama:Devel/images/x86_64/agama-installer:openSUSE/
mkdir -p /mockOBS/systemsmanagement:Agama:Devel/images/s390x/agama-installer:openSUSE/
# create just empty files as at this point we are not interested about proper binaries
touch /mockOBS/systemsmanagement:Agama:Devel/images/x86_64/agama-installer:openSUSE/agama-installer.x86_64-9.0.0-openSUSE-Build19.23.iso
touch /mockOBS/systemsmanagement:Agama:Devel/images/x86_64/agama-installer:openSUSE/agama-installer.x86_64-9.0.0-openSUSE-Build19.23.iso.sha256
touch /mockOBS/systemsmanagement:Agama:Devel/images/s390x/agama-installer:openSUSE/agama-installer.s390x-9.0.0-openSUSE-Build19.23.iso
touch /mockOBS/systemsmanagement:Agama:Devel/images/s390x/agama-installer:openSUSE/agama-installer.s390x-9.0.0-openSUSE-Build19.23.iso.sha256

chown -R "$dbuser" /mockOBS

prepare_project systemsmanagement:Agama:Devel other

set -x

# make sure run did happen
test -f /var/lib/openqa/factory/iso/agama-installer.s390x-9.0.0-openSUSE-Build19.23.iso
test -f /var/lib/openqa/factory/repo/agama-installer.s390x-9.0.0-openSUSE-Build19.23.iso
test -f /opt/openqa-trigger-from-obs/systemsmanagement:Agama:Devel/base/.run_last/openqa.cmd.log
test -f /opt/openqa-trigger-from-obs/systemsmanagement:Agama:Devel/s390x/.run_last/openqa.cmd.log
grep -q '"scheduled_product_id":1' /opt/openqa-trigger-from-obs/systemsmanagement:Agama:Devel/base/.run_last/openqa.cmd.log

[ "$METHOD" != rest ] || {
state=$(echo "select state from minion_jobs where task='obs_rsync_run';" | su postgres -c "psql -t $dbname")
test "$(echo $state)" == finished
}

echo PASS ${BASH_SOURCE[0]} $TESTCASE $METHOD
Loading