Add gating test for the new templates
This runs lorax to generate a boot.iso using the new templates. Resolves: rhbz#1678936
This commit is contained in:
parent
c3b73e57da
commit
f5718645cf
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
1
tests/.fmf/version
Normal file
1
tests/.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
5
tests/provision.fmf
Normal file
5
tests/provision.fmf
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
|
||||
standard-inventory-qcow2:
|
||||
qemu:
|
||||
m: 4G
|
18
tests/scripts/run_tests.sh
Executable file
18
tests/scripts/run_tests.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -eux
|
||||
|
||||
if [ ! -e /usr/share/lorax/templates.d/80-rhel/ ]; then
|
||||
echo "Failed to find lorax-templates-rhel templates in /usr/share/lorax/templates.d/"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Gather up the list of system repo files and use them for lorax
|
||||
REPOS=$(for f in /etc/yum.repos.d/*repo; do echo -n "--repo $f "; done)
|
||||
if [ -z "$REPOS" ]; then
|
||||
echo "No system repos found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run lorax using the host's repository configuration file
|
||||
lorax --product="Red Hat Enterprise Linux" --version=8 --release=8 --volid="RHEL-8-test" \
|
||||
$REPOS --isfinal --nomacboot /var/tmp/lorax-rhel8-iso/
|
15
tests/tests.yml
Normal file
15
tests/tests.yml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
# Run lorax with the new templates
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
|
||||
required_packages:
|
||||
- lorax
|
||||
|
||||
tests:
|
||||
- simple:
|
||||
dir: scripts
|
||||
run: ./run_tests.sh
|
Loading…
Reference in New Issue
Block a user