Compare commits
No commits in common. "c8" and "c10s" have entirely different histories.
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
SOURCES/subscription-manager-1.28.44.tar.gz
|
/subscription-manager-*.tar.gz
|
||||||
SOURCES/subscription-manager-cockpit-1.28.44.tar.gz
|
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
14b2eace3714eaa4d6d95064c0f561734ec8652f SOURCES/subscription-manager-1.28.44.tar.gz
|
|
||||||
264ebb8f882bbc887389695ce69e6b69ecc111e4 SOURCES/subscription-manager-cockpit-1.28.44.tar.gz
|
|
13
README.md
Normal file
13
README.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
subscription-manager
|
||||||
|
====================
|
||||||
|
|
||||||
|
The Subscription Manager package provides programs and libraries
|
||||||
|
to allow users to manage subscriptions and yum/dnf repositories
|
||||||
|
from the [Candlepin](http://candlepinproject.org/) server.
|
||||||
|
|
||||||
|
- Project homepage: http://candlepinproject.org/
|
||||||
|
- Upstream repository: https://github.com/candlepin/subscription-Manager
|
||||||
|
|
||||||
|
## Contribution Guidelines
|
||||||
|
|
||||||
|
If you want to do any changes to `subscription-manager.spec`, then please create pull request with same/similar change to upstream repository, because upstream repository manages its own .spec file. If the change would not be contributed to upstream repository, then there is risk that the change provided here could be reverted later by upstream.
|
3
README.packit
Normal file
3
README.packit
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
This repository is maintained by packit.
|
||||||
|
https://packit.dev/
|
||||||
|
The file was generated using packit 0.88.0.post1.dev4+gc070191b.
|
8
gating.yaml
Normal file
8
gating.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-10
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||||
|
- !PassingTestCaseRule {test_case_name: rhsmci.brew-build.tier1.functional}
|
||||||
|
- !PassingTestCaseRule {test_case_name: rhsmci.brew-build.cloud.functional}
|
28
packit.yaml
Normal file
28
packit.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
upstream_project_url: https://github.com/candlepin/subscription-manager
|
||||||
|
srpm_build_deps:
|
||||||
|
- python3
|
||||||
|
- tito
|
||||||
|
actions:
|
||||||
|
pre-sync:
|
||||||
|
- tito build -o . --tgz
|
||||||
|
specfile_path: subscription-manager.spec
|
||||||
|
files_to_sync:
|
||||||
|
- src:
|
||||||
|
- subscription-manager.spec
|
||||||
|
- "subscription-manager-*.tar.gz"
|
||||||
|
dest: .
|
||||||
|
upstream_tag_template: "subscription-manager-{version}-1"
|
||||||
|
jobs:
|
||||||
|
- job: pull_from_upstream
|
||||||
|
trigger: release
|
||||||
|
dist_git_branches:
|
||||||
|
- fedora-all
|
||||||
|
- job: koji_build
|
||||||
|
trigger: commit
|
||||||
|
dist_git_branches:
|
||||||
|
- fedora-all
|
||||||
|
- job: bodhi_update
|
||||||
|
trigger: commit
|
||||||
|
dist_git_branches:
|
||||||
|
- fedora-branched
|
||||||
|
- fedora-stable
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (subscription-manager-1.30.10.tar.gz) = ce60400c2ef4fd31d261b56eb92fe53a90f1dad2c39f01f3ee2dce267ca00b1154664254203c68a421558627d365657041556cdcf8c40d9b81fd188fd157dde7
|
File diff suppressed because it is too large
Load Diff
61
tests/smoke/smoke.sh
Executable file
61
tests/smoke/smoke.sh
Executable file
@ -0,0 +1,61 @@
|
|||||||
|
#!/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 repos
|
||||||
|
subscription-manager version"
|
||||||
|
|
||||||
|
if [[ "$IN_CONTAINER" == "true" ]]; then
|
||||||
|
TEST_CMD="smoke_container"
|
||||||
|
SMOKE_CMDS="subscription-manager config
|
||||||
|
subscription-manager facts
|
||||||
|
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
21
tests/tests.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user