test: remove generation.sh

The script would test if the test case generation script when the script
would run normally if the osbuild-dnf-json.service was stopped.
This is no longer necessary.
This commit is contained in:
Achilleas Koutsou 2022-04-26 21:02:42 +02:00 committed by Tom Gundersen
parent 0add961bcc
commit 6019a5022f
2 changed files with 0 additions and 55 deletions

View file

@ -283,20 +283,6 @@ Image Tests:
- aws/rhel-9.0-nightly-aarch64
INTERNAL_NETWORK: ["true"]
Test Case Generation:
stage: test
extends: .terraform
rules:
- !reference [.upstream_rules, rules]
script:
- schutzbot/deploy.sh
- /usr/libexec/tests/osbuild-composer/generation.sh
parallel:
matrix:
- RUNNER:
- aws/fedora-34-x86_64
INTERNAL_NETWORK: ["true"]
OSTree:
stage: test
extends: .terraform/openstack

View file

@ -1,41 +0,0 @@
#!/usr/bin/bash
#
# The objective of this script is to provide special requirement needed
# for generate-test-cases. For example, disable the dnf-json daemon
# and then execute generate-test-cases.
#
set -euxo pipefail
# Provision the software under test.
/usr/libexec/osbuild-composer-test/provision.sh
# Get OS data
source /usr/libexec/osbuild-composer-test/set-env-variables.sh
# Colorful timestamped output.
function greenprint {
echo -e "\033[1;32m[$(date -Isecond)] ${1}\033[0m"
}
# install requirements
sudo dnf -y install go
# stop dnf-json socket
sudo systemctl stop osbuild-dnf-json.socket
# test the test cases generation
WORKDIR=$(mktemp -d -p /var/tmp)
OSBUILD_LABEL=$(matchpathcon -n "$(which osbuild)")
chcon "$OSBUILD_LABEL" tools/image-info
# test the test case generation when dnf-json socket is stopped
sudo ./tools/test-case-generators/generate-test-cases\
--output test/data/manifests\
--arch x86_64\
--distro rhel-8\
--image-type qcow2\
--store "$WORKDIR"\
--keep-image-info