Add gating configuration for C10S/RHEL10
This commit is contained in:
parent
c9371b577b
commit
5a521bce16
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
36
ci.fmf
Normal file
36
ci.fmf
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# vi: ts=2 sw=2 et ft=yaml:
|
||||||
|
|
||||||
|
summary: Basic smoke test
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
script: |
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
TMP_DIR="$(mktemp -d)"
|
||||||
|
pushd "$TMP_DIR"
|
||||||
|
|
||||||
|
# A very basic sanity test, since all this is already tested by unit tests
|
||||||
|
echo baz >README.md
|
||||||
|
python3 <<EOF
|
||||||
|
import pyproject_metadata, tomllib
|
||||||
|
|
||||||
|
PYPROJECT = """[project]
|
||||||
|
name = 'foo'
|
||||||
|
version = '0.1.2'
|
||||||
|
description = 'Hello world'
|
||||||
|
readme = 'README.md'
|
||||||
|
license = { text = 'foo license' }
|
||||||
|
"""
|
||||||
|
|
||||||
|
toml = tomllib.loads(PYPROJECT)
|
||||||
|
metadata = pyproject_metadata.StandardMetadata.from_pyproject(toml)
|
||||||
|
|
||||||
|
print(metadata.as_rfc822())
|
||||||
|
|
||||||
|
assert(metadata.name == "foo")
|
||||||
|
assert(metadata.license.text == "foo license")
|
||||||
|
assert(metadata.readme.text == "baz\n")
|
||||||
|
EOF
|
||||||
|
|
||||||
|
popd
|
||||||
|
rm -rf "$TMP_DIR"
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-*
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
Loading…
Reference in New Issue
Block a user