- Add CI gating tests
This commit is contained in:
parent
1d8880cceb
commit
5a9b0dd1e3
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-10
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
@ -45,7 +45,7 @@
|
|||||||
Name: resource-agents
|
Name: resource-agents
|
||||||
Summary: Open Source HA Reusable Cluster Resource Scripts
|
Summary: Open Source HA Reusable Cluster Resource Scripts
|
||||||
Version: 4.13.0
|
Version: 4.13.0
|
||||||
Release: 3%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
|
Release: 4%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
|
||||||
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||||
URL: https://github.com/ClusterLabs/resource-agents
|
URL: https://github.com/ClusterLabs/resource-agents
|
||||||
Source0: %{upstream_prefix}-%{upstream_version}.tar.gz
|
Source0: %{upstream_prefix}-%{upstream_version}.tar.gz
|
||||||
@ -514,7 +514,7 @@ rm -rf %{buildroot}/usr/share/doc/resource-agents
|
|||||||
%{_usr}/lib/ocf/lib/heartbeat/OCF_*.pm
|
%{_usr}/lib/ocf/lib/heartbeat/OCF_*.pm
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jun 12 2024 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.13.0-3
|
* Wed Jun 12 2024 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.13.0-4
|
||||||
- cloud agents: set support library path
|
- cloud agents: set support library path
|
||||||
- pgsqlms: add to -paf subpackage
|
- pgsqlms: add to -paf subpackage
|
||||||
|
|
||||||
|
26
tests/run_tests.sh
Executable file
26
tests/run_tests.sh
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
err=0
|
||||||
|
|
||||||
|
agents=$(pcs resource list ocf:heartbeat 2>&1)
|
||||||
|
if [ $(echo "$agents" | wc -l) -lt 2 ]; then
|
||||||
|
echo "ERROR: pcs: agents available:\n$agents"
|
||||||
|
err=$((err+1))
|
||||||
|
else
|
||||||
|
echo "INFO: pcs: agents available..."
|
||||||
|
fi
|
||||||
|
|
||||||
|
for bin in "/usr/lib/fence-agents/support/aliyun/aliyun-cli/aliyun version"; do
|
||||||
|
output="$($bin 2>&1)"
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "ERROR: $bin failed:\n$output"
|
||||||
|
err=$((err+1))
|
||||||
|
else
|
||||||
|
echo "INFO: $bin works..."
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ $err -ge 1 ]; then
|
||||||
|
echo -e "\nERROR: $err tests FAILED..."
|
||||||
|
exit 1
|
||||||
|
fi
|
15
tests/tests.yml
Normal file
15
tests/tests.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
- container
|
||||||
|
required_packages:
|
||||||
|
- resource-agents-cloud
|
||||||
|
- resource-agents-paf
|
||||||
|
- pcs
|
||||||
|
|
||||||
|
tests:
|
||||||
|
- subpackage_tests:
|
||||||
|
dir: .
|
||||||
|
run: ./run_tests.sh
|
Loading…
Reference in New Issue
Block a user