Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82afaa8e6c |
||
|
|
ca658c5e67 |
||
|
|
4e2d46b836 | ||
|
|
772207cbbf |
7 changed files with 126 additions and 7 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -56,3 +56,6 @@
|
|||
/scap-security-guide-0.1.70.tar.bz2
|
||||
/scap-security-guide-0.1.71.tar.bz2
|
||||
/scap-security-guide-0.1.72.tar.bz2
|
||||
/scap-security-guide-0.1.73.tar.bz2
|
||||
/scap-security-guide-0.1.74.tar.bz2
|
||||
/scap-security-guide-0.1.75.tar.bz2
|
||||
|
|
|
|||
|
|
@ -17,6 +17,4 @@ product_versions:
|
|||
- rhel-*
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.ci-beaker.functional}
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tedude.validation}
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/ci/tier1.functional}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
summary: Run tests from scap-security-guide tests repository
|
||||
summary: Run all tests in this repository
|
||||
discover:
|
||||
how: fmf
|
||||
url: https://src.fedoraproject.org/tests/scap-security-guide
|
||||
execute:
|
||||
how: tmt
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
%global _vpath_builddir build
|
||||
|
||||
Name: scap-security-guide
|
||||
Version: 0.1.72
|
||||
Version: 0.1.75
|
||||
Release: 1%{?dist}
|
||||
Summary: Security guidance and baselines in SCAP formats
|
||||
License: BSD-3-Clause
|
||||
|
|
@ -99,6 +99,18 @@ rm %{buildroot}/%{_docdir}/%{name}/Contributors.md
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu Nov 14 2024 Matthew Burket <mburket@redhat.com> - 0.1.75-1
|
||||
- Update to latest upstream release
|
||||
https://github.com/ComplianceAsCode/content/releases/tag/v0.1.75
|
||||
|
||||
* Mon Aug 12 2024 Matthew Burket <mburket@redhat.com> - 0.1.74-1
|
||||
- Update to latest upstream release
|
||||
https://github.com/ComplianceAsCode/content/releases/tag/v0.1.74
|
||||
|
||||
* Wed May 22 2024 Jan Černý <jcerny@redhat.com> - 0.1.73-1
|
||||
- Update to latest upstream release
|
||||
https://github.com/ComplianceAsCode/content/releases/tag/v0.1.73
|
||||
|
||||
* Fri Feb 09 2024 Vojtech Polasek <vpolasek@redhat.com> - 0.1.72-1
|
||||
- Update to latest upstream SCAP-Security-Guide-0.1.72 release:
|
||||
https://github.com/ComplianceAsCode/content/releases/tag/v0.1.72
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (scap-security-guide-0.1.72.tar.bz2) = 2b3fb7ff4d7f69796968afc61049753bce9f2cd5bc57ecc41f9ea17dbd2bb8c278a6e02ef98e34b1561dd38e55498ba2ba92079dbdc4ef5848186964cefbd92a
|
||||
SHA512 (scap-security-guide-0.1.75.tar.bz2) = ecab31c731612316b40d9e26ba81b7a44396bd6ef3cc616de27789cb75dec6f90cec69f1fd3186f20a03d46896e0d1231c79a31ced1c25dd6786c79c5baac416
|
||||
|
|
|
|||
27
tests/smoke-test/main.fmf
Normal file
27
tests/smoke-test/main.fmf
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
summary: Test calls upstream test suite.
|
||||
description: |
|
||||
Runs upstream test suite against content built from the source RPM - testing
|
||||
the content from the installed scap-security-guide is not feasible as the
|
||||
upstream test suite is hardcoded to test the content from the CMAKE_BINARY_DIR
|
||||
directory with hardcoded paths which are not the same as paths where content is
|
||||
installed from the scap-security-guide RPM. Test suite is also built from the
|
||||
scap-security-guide source RPM by running %prep and %build stages from the spec
|
||||
file.
|
||||
contact: Matus Marhefka <mmarhefk@redhat.com>
|
||||
test: ./runtest.sh
|
||||
framework: beakerlib
|
||||
require:
|
||||
- library(ControlFlow/Cleanup)
|
||||
- library(rpm/snapshot)
|
||||
- scap-security-guide
|
||||
recommend:
|
||||
- yum-utils
|
||||
- rpm-build
|
||||
- dnf-plugins-core
|
||||
- gcc
|
||||
- python3-pytest
|
||||
- python3-pip
|
||||
- python3-devel
|
||||
- ansible
|
||||
duration: 90m
|
||||
enabled: true
|
||||
80
tests/smoke-test/runtest.sh
Executable file
80
tests/smoke-test/runtest.sh
Executable file
|
|
@ -0,0 +1,80 @@
|
|||
#!/bin/bash
|
||||
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/scap-security-guide/Sanity/smoke-test
|
||||
# Description: Test calls upstream test suite.
|
||||
# Author: Marek Haicman <mhaicman@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2018 Red Hat, Inc. All rights reserved.
|
||||
#
|
||||
# This copyrighted material is made available to anyone wishing
|
||||
# to use, modify, copy, or redistribute it subject to the terms
|
||||
# and conditions of the GNU General Public License version 2.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this program; if not, write to the Free
|
||||
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
# Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGE="scap-security-guide"
|
||||
|
||||
rlJournalStart
|
||||
|
||||
rlPhaseStartSetup
|
||||
rlImport ControlFlow/Cleanup rpm/snapshot || rlDie "Failed to import libraries"
|
||||
rlAssertRpm "$PACKAGE"
|
||||
|
||||
RpmSnapshotCreate
|
||||
CleanupRegister "RpmSnapshotRevert"
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0
|
||||
CleanupRegister "rlRun 'rm -r $TmpDir' 0 'Removing tmp directory'"
|
||||
rlRun "pushd $TmpDir"
|
||||
CleanupRegister "rlRun 'popd'"
|
||||
|
||||
rlFetchSrcForInstalled $PACKAGE
|
||||
rlRun "dnf builddep -y $PACKAGE*"
|
||||
SITE_PACKAGES=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
|
||||
rlRun "pip3 install --target=$SITE_PACKAGES ruamel.yaml yamlpath prometheus-client"
|
||||
CleanupRegister "rlRun 'pip3 uninstall -y ruamel.yaml yamlpath prometheus-client'"
|
||||
TOPDIR=`rpm --eval %_topdir`
|
||||
rlRun "rm -rf ${TOPDIR}/BUILD/${PACKAGE}*" 0-255
|
||||
rlRun "rpm -ihv `ls *.rpm`" 0 "Install $PACKAGE source RPM"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartSetup "Prepare upstream test suite (%prep and %build stages from the spec file)"
|
||||
rlRun "rpmbuild -v -bc ${TOPDIR}/SPECS/${PACKAGE}.spec"
|
||||
CleanupRegister "rlRun 'rm -rf ${TOPDIR}/BUILD/${PACKAGE}*'"
|
||||
CleanupRegister "rlRun 'rm -rf ${TOPDIR}/SPECS/${PACKAGE}*'"
|
||||
CleanupRegister "rlRun 'rm -rf ${TOPDIR}/SOURCES/*'"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "Run upstream test suite"
|
||||
BUILD_DIR_PATH="$(find $TOPDIR -name build | grep scap-security-guide)"
|
||||
rlRun -s "cmake --build $BUILD_DIR_PATH --target test -- ARGS='--output-on-failure'"
|
||||
rv=$?
|
||||
|
||||
# if we got error, submit file with result of particular test for easier debugging
|
||||
if [ $rv -ne 0 ]; then
|
||||
FILE="${BUILD_DIR_PATH}/Testing/Temporary/LastTest.log"
|
||||
rlBundleLogs test_outputs $(readlink -f $FILE)
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
CleanupDo
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue