diff --git a/.p11-kit.metadata b/.p11-kit.metadata new file mode 100644 index 0000000..7bdc42f --- /dev/null +++ b/.p11-kit.metadata @@ -0,0 +1,3 @@ +6fecd5be3ee12d07f6f61a65e18523ee03e0f925 p11-kit-release-keyring.gpg +796f3b69cad054a52e04f520459beaaab936b99f p11-kit-0.25.3.tar.xz +4133131840ef3f9609403fe391ce414878bcb9f1 p11-kit-0.25.3.tar.xz.sig diff --git a/gating.yaml b/gating.yaml index f4907f9..7cd5018 100644 --- a/gating.yaml +++ b/gating.yaml @@ -3,6 +3,5 @@ product_versions: - rhel-9 decision_context: osci_compose_gate rules: - - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional} - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tedude.validation} diff --git a/tests/.gitignore b/tests/.gitignore deleted file mode 100644 index 13555f0..0000000 --- a/tests/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -*.retry -artifacts/ diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 6188ad8..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -# This first play always runs on the local staging system -- hosts: localhost - roles: - - role: standard-test-beakerlib - tags: - - classic - - atomic - - container - tests: - - trust-anchor-complains-about-invalid-attribute-and - required_packages: - - openssl - - p11-kit diff --git a/tests/trust-anchor-complains-about-invalid-attribute-and/Makefile b/tests/trust-anchor-complains-about-invalid-attribute-and/Makefile deleted file mode 100644 index 0f10a06..0000000 --- a/tests/trust-anchor-complains-about-invalid-attribute-and/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/p11-kit/trust-anchor-complains-about-invalid-attribute-and -# Description: Test for trust anchor complains about invalid attribute and -# Author: Hubert Kario -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2017 Red Hat, Inc. -# -# 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. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/p11-kit/trust-anchor-complains-about-invalid-attribute-and -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE - -.PHONY: all install download clean - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - test -x runtest.sh || chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Hubert Kario " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for trust anchor complains about invalid attribute and" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 2m" >> $(METADATA) - @echo "RunFor: p11-kit" >> $(METADATA) - @echo "Requires: openssl p11-kit" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Releases: -RHEL4 -RHEL6 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/tests/trust-anchor-complains-about-invalid-attribute-and/PURPOSE b/tests/trust-anchor-complains-about-invalid-attribute-and/PURPOSE deleted file mode 100644 index e7886f9..0000000 --- a/tests/trust-anchor-complains-about-invalid-attribute-and/PURPOSE +++ /dev/null @@ -1,17 +0,0 @@ -PURPOSE of /CoreOS/p11-kit/trust-anchor-complains-about-invalid-attribute-and -Description: Test for trust anchor complains about invalid attribute and -Author: Hubert Kario -Bug summary: trust anchor complains about invalid attribute and fails when a new certificate tries to store into trust place - -Steps to Reproduce: -1. /etc/pki/tls/certs/make-dummy-cert mycert-tmp.pem -2. openssl x509 -in mycert-tmp.pem -addtrust clientAuth -addtrust serverAuth -addtrust emailProtection -out mycert.pem -3. trust anchor --store mycert.pem - -Actual results: -p11-kit: the CKA_TRUSTED attribute is not valid for the object -p11-kit: couldn't create object: Certain fields have invalid values - - -Expected results: -Certificate is stored in trust place. diff --git a/tests/trust-anchor-complains-about-invalid-attribute-and/runtest.sh b/tests/trust-anchor-complains-about-invalid-attribute-and/runtest.sh deleted file mode 100755 index 3ca17e1..0000000 --- a/tests/trust-anchor-complains-about-invalid-attribute-and/runtest.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/p11-kit/trust-anchor-complains-about-invalid-attribute-and -# Description: Test for trust anchor complains about invalid attribute and -# Author: Hubert Kario -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2017 Red Hat, Inc. -# -# 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. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include Beaker environment -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="p11-kit" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlRun "rlFileBackup --clean /etc/pki" - rlPhaseEnd - - rlPhaseStartTest - DUMMY_MAKER_BIN="/etc/pki/tls/certs/make-dummy-cert" - [ -x /usr/bin/make-dummy-cert ] && DUMMY_MAKER_BIN="/usr/bin/make-dummy-cert" - rlRun "$DUMMY_MAKER_BIN mycert-tmp.pem" - rlRun "openssl x509 -in mycert-tmp.pem -addtrust clientAuth -addtrust serverAuth -addtrust emailProtection -out mycert.pem" - rlAssertNotExists "/etc/pki/ca-trust/source/localhost.localdomain.p11-kit" - rlRun -s "trust anchor --store mycert.pem" - rlAssertNotGrep "p11-kit:" $rlRun_LOG - rlAssertExists "/etc/pki/ca-trust/source/localhost.localdomain.p11-kit" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rlFileRestore" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd