diff --git a/.gitignore b/.gitignore index 90be28f..3241e3d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ -/ClusterLabs-resource-agents-e711383f.tar.gz -/sap_cluster_connector-0015fe2.tar.gz +/*.tar.gz +/*.rpm +/.build-*.log +/*/ +!/tests/ +/tests/*.retry diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..6985029 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-8 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/tests/run_tests.sh b/tests/run_tests.sh new file mode 100755 index 0000000..ae56ff2 --- /dev/null +++ b/tests/run_tests.sh @@ -0,0 +1,16 @@ +#!/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 + +if [ $err -ge 1 ]; then + echo -e "\nERROR: $err tests FAILED..." + exit 1 +fi diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..d7247bb --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,14 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + - container + required_packages: + - resource-agents-sap + - pcs + + tests: + - subpackage_tests: + dir: . + run: ./run_tests.sh