Skip to content

Commit

Permalink
tests/cases: Rename upgrade test
Browse files Browse the repository at this point in the history
And schedule on rhel-10
  • Loading branch information
jrusz authored and thozza committed Sep 6, 2024
1 parent 15c8e83 commit 7589829
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,12 @@ Upgrade:
- !reference [.nightly_rules_all, rules]
script:
- schutzbot/deploy.sh
- /usr/libexec/tests/osbuild-composer/upgrade8to9.sh
variables:
RUNNER: rhos-01/rhel-9.5-nightly-x86_64-large
- /usr/libexec/tests/osbuild-composer/rhel-upgrade.sh
parallel:
matrix:
- RUNNER:
- rhos-01/rhel-9.5-nightly-x86_64-large
- rhos-01/rhel-10.0-nightly-x86_64-large

NIGHTLY_FAIL:
stage: finish
Expand Down
4 changes: 2 additions & 2 deletions osbuild-composer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ install -m 0644 -vp test/data/x509/* %{buildroot}%
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/schemas
install -m 0644 -vp pkg/jobqueue/dbjobqueue/schemas/* %{buildroot}%{_datadir}/tests/osbuild-composer/schemas/

install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/upgrade8to9
install -m 0644 -vp test/data/upgrade8to9/* %{buildroot}%{_datadir}/tests/osbuild-composer/upgrade8to9/
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/rhel-upgrade
install -m 0644 -vp test/data/rhel-upgrade/* %{buildroot}%{_datadir}/tests/osbuild-composer/rhel-upgrade/

%endif

Expand Down
4 changes: 2 additions & 2 deletions test/cases/upgrade8to9.sh → test/cases/rhel-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ sudo virsh list --all > /dev/null

# define custom network for libvirt
if ! sudo virsh net-info integration > /dev/null 2>&1; then
sudo virsh net-define /usr/share/tests/osbuild-composer/upgrade8to9/integration.xml
sudo virsh net-define /usr/share/tests/osbuild-composer/rhel-upgrade/integration.xml
sudo virsh net-start integration
fi

Expand Down Expand Up @@ -133,7 +133,7 @@ wait_for_vm
sudo pkill -P "$CONSOLE_PID"

# copy over next phases of the test and run the first one
sudo scp "${SSH_OPTIONS[@]}" -q -i "${SSH_KEY}" /usr/share/tests/osbuild-composer/upgrade8to9/*.sh root@"$INSTANCE_ADDRESS":
sudo scp "${SSH_OPTIONS[@]}" -q -i "${SSH_KEY}" /usr/share/tests/osbuild-composer/rhel-upgrade/*.sh root@"$INSTANCE_ADDRESS":
sudo scp "${SSH_OPTIONS[@]}" -q -i "${SSH_KEY}" /usr/libexec/tests/osbuild-composer/shared_lib.sh root@"$INSTANCE_ADDRESS":
sudo scp "${SSH_OPTIONS[@]}" -q -i "${SSH_KEY}" /usr/libexec/osbuild-composer-test/define-compose-url.sh root@"$INSTANCE_ADDRESS":
# Put comment in sshd_config to keep root login after upgrade
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7589829

Please sign in to comment.