From 1052fc64176d0ce13cb3a5dba9765722e9dc93e0 Mon Sep 17 00:00:00 2001 From: Ondrej Mejzlik Date: Mar 24 2020 07:37:51 +0000 Subject: Adding one test to test fmf --- diff --git a/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version/Makefile b/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version/Makefile new file mode 100644 index 0000000..6c05c8f --- /dev/null +++ b/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version/Makefile @@ -0,0 +1,64 @@ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Makefile of /CoreOS/lftp/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version +# Description: Test for BZ#1182987 ([RFE] lftp configurations for restricting each) +# Author: Filip Holec +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2015 Red Hat, Inc. +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 2 of +# the License, or (at your option) any later version. +# +# 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, see http://www.gnu.org/licenses/. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +export TEST=/CoreOS/lftp/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version +export TESTVERSION=1.0 + +BUILT_FILES= + +FILES=$(METADATA) runtest.sh Makefile PURPOSE main.fmf + +.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: Filip Holec " > $(METADATA) + @echo "Name: $(TEST)" >> $(METADATA) + @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) + @echo "Path: $(TEST_DIR)" >> $(METADATA) + @echo "Description: Test for BZ#1182987 ([RFE] lftp configurations for restricting each)" >> $(METADATA) + @echo "Type: Regression" >> $(METADATA) + @echo "TestTime: 5m" >> $(METADATA) + @echo "RunFor: lftp" >> $(METADATA) + @echo "Requires: lftp" >> $(METADATA) + @echo "Priority: Normal" >> $(METADATA) + @echo "License: GPLv2+" >> $(METADATA) + @echo "Confidential: no" >> $(METADATA) + @echo "Destructive: no" >> $(METADATA) + @echo "Bug: 1182987" >> $(METADATA) + @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5 -RHEL6" >> $(METADATA) + + rhts-lint $(METADATA) diff --git a/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version/PURPOSE b/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version/PURPOSE new file mode 100644 index 0000000..3d9e6e4 --- /dev/null +++ b/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version/PURPOSE @@ -0,0 +1,5 @@ +PURPOSE of /CoreOS/lftp/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version +Description: Test for BZ#1182987 ([RFE] lftp configurations for restricting each) +Author: Filip Holec +Bug summary: [RFE] lftp configurations for restricting each SSL/TLS version +Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1182987 diff --git a/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version/main.fmf b/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version/main.fmf new file mode 100644 index 0000000..8ba790d --- /dev/null +++ b/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version/main.fmf @@ -0,0 +1,25 @@ +component: +- lftp +contact: Ondrej Mejzlik +description: | + Bug summary: [RFE] lftp configurations for restricting each SSL/TLS version + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1182987 +duration: 5m +enabled: true +relevancy: | + distro = rhel-4, rhel-5, rhel-6: False +require: +- lftp +summary: Test for BZ#1182987 ([RFE] lftp configurations for restricting each) +tag: +- NoRHEL4 +- NoRHEL5 +- NoRHEL6 +- TIPfail_infra +- TIPfail_samba +- TIPfail_systemd +- Tier1 +task: /CoreOS/lftp/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version +tcms: TC#0499983 +test: ./runtest.sh +tier: 1 diff --git a/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version/runtest.sh b/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version/runtest.sh new file mode 100755 index 0000000..61ce9d5 --- /dev/null +++ b/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version/runtest.sh @@ -0,0 +1,53 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/lftp/Regression/bz1182987-RFE-lftp-restricting-each-SSL-TLS-version +# Description: Test for BZ#1182987 ([RFE] lftp configurations for restricting each) +# Author: Filip Holec +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2015 Red Hat, Inc. +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 2 of +# the License, or (at your option) any later version. +# +# 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, see http://www.gnu.org/licenses/. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# Include Beaker environment +. /usr/bin/rhts-environment.sh || exit 1 +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +# Packages to be tested +PACKAGES="${PACKAGES:-lftp}" + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm --all + rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" + rlRun "pushd $TmpDir" + rlPhaseEnd + + rlPhaseStartTest + rlLog "ssl:priority should be valid command for lftp" + rlRun "lftp -c 'set ssl:priority \"NORMAL:-SSL3.0:-TLS1.0:-TLS1.1:+TLS1.2\"'" 0 \ + "Run the reproducer" + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "popd" + rlRun "rm -r $TmpDir" 0 "Removing tmp directory" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd