Compare commits

...

No commits in common. "c8" and "c9s" have entirely different histories.
c8 ... c9s

8 changed files with 1308 additions and 1273 deletions

3
.gitignore vendored
View File

@ -1,2 +1 @@
SOURCES/subscription-manager-1.28.40.tar.gz
SOURCES/subscription-manager-cockpit-1.28.40.tar.gz
/subscription-manager-*.tar.gz

View File

@ -1,2 +1 @@
5326ac57a950e727a7c88b703bbc16b5b1cbe108 SOURCES/subscription-manager-1.28.40.tar.gz
79fd54731e17471f43d144a9c8e24d2fcd722d7b SOURCES/subscription-manager-cockpit-1.28.40.tar.gz
79971108b37f2e6535b899f9dfb9fc61a5f1f1bd subscription-manager-1.29.40.tar.gz

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
- !PassingTestCaseRule {test_case_name: rhsmci.brew-build.tier1.functional}

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (subscription-manager-1.29.40.tar.gz) = efc4e529c327c24383129a6c05a80ccb7a04d6473f18ab964b1eeee89225bf68f7c4ec2d1b04123bcc30dee400c3a54f9fe478fc5093c72d1e186a73eb365bb6

View File

@ -0,0 +1,6 @@
# This seems ok to me
addFilter('invalid-url')
# Ignore failing suse specific checks
setBadness("suse-dbus-unauthorized-service", 0)
setBadness("polkit-unauthorized-privilege", 0)

File diff suppressed because it is too large Load Diff

63
tests/smoke/smoke.sh Executable file
View File

@ -0,0 +1,63 @@
#!/bin/bash
while getopts ":c" opt; do
case $opt in
c) IN_CONTAINER=true;;
*) IN_CONTAINER=false;;
esac
done
# takes in a command and makes sure that it returns success
# and that nothing is sent to stderr
function smoke {
echo -n "Smoke test: '$@': "
ERROR=$("$@" 2>&1> /dev/null)
RETVAL=$?
if [ -z "$ERROR" ] && [[ $RETVAL == 0 ]]; then
echo "PASS"
else
echo "FAIL"
echo "RETVAL: $RETVAL"
echo "STDERR: $ERROR"
exit 1
fi
}
function smoke_container {
echo -n "Smoke Container test: '$@': "
ERROR=$("$@" 2>&1> /dev/null)
RETVAL=$?
if [[ ! -z "$ERROR" ]] && [[ $RETVAL == 78 ]]; then
echo "PASS"
else
echo "FAIL"
echo "RETVAL: $RETVAL"
echo "STDERR: $ERROR"
exit 1
fi
}
SMOKE_CMDS="subscription-manager --help
subscription-manager config
subscription-manager facts
subscription-manager list
subscription-manager repos
subscription-manager version"
if [[ "$IN_CONTAINER" == "true" ]]; then
TEST_CMD="smoke_container"
SMOKE_CMDS="subscription-manager config
subscription-manager facts
subscription-manager list
subscription-manager repos
subscription-manager version"
else
TEST_CMD="smoke"
fi
while read -r CMD; do
$TEST_CMD $CMD
done <<<"$SMOKE_CMDS"

21
tests/tests.yml Normal file
View File

@ -0,0 +1,21 @@
---
- hosts: localhost
tags:
- classic
- atomic
roles:
- role: standard-test-basic
tests:
- smoke:
dir: smoke
run: ./smoke.sh
- hosts: localhost
tags:
- container
roles:
- role: standard-test-basic
tests:
- smoke:
dir: smoke
run: ./smoke.sh -c