2 Commits
Author SHA1 Message Date
Petr Šplíchal d054522ef5 Try again with extended duration 2020-10-15 09:38:38 +02:00
Petr Šplíchal 1f2d9ef3ef Enable all available tests from the tmt repo 2020-10-12 15:23:47 +02:00
14 changed files with 645 additions and 2822 deletions
-74
View File
@@ -9,77 +9,3 @@
/tmt-0.20.tar.gz /tmt-0.20.tar.gz
/tmt-0.21.tar.gz /tmt-0.21.tar.gz
/tmt-1.0.tar.gz /tmt-1.0.tar.gz
/tmt-1.1.tar.gz
/tmt-1.2.tar.gz
/tmt-1.2.1.tar.gz
/tmt-1.3.0.tar.gz
/tmt-1.3.1.tar.gz
/tmt-1.4.0.tar.gz
/tmt-1.5.0.tar.gz
/tmt-1.6.0.tar.gz
/tmt-1.7.0.tar.gz
/tmt-1.8.0.tar.gz
/tmt-1.9.0.tar.gz
/tmt-1.10.0.tar.gz
/tmt-1.11.0.tar.gz
/tmt-1.12.0.tar.gz
/tmt-1.13.0.tar.gz
/tmt-1.14.0.tar.gz
/tmt-1.15.0.tar.gz
/tmt-1.16.0.tar.gz
/tmt-1.17.0.tar.gz
/tmt-1.18.0.tar.gz
/tmt-1.19.0.tar.gz
/tmt-1.20.0.tar.gz
/tmt-1.21.0.tar.gz
/tmt-1.22.0.tar.gz
/tmt-1.23.0.tar.gz
/tmt-1.24.1.tar.gz
/tmt-1.25.0.tar.gz
/tmt-1.26.0.tar.gz
/tmt-1.26.1.tar.gz
/tmt-1.27.0.tar.gz
/tmt-1.28.2.tar.gz
/tmt-1.29.0.tar.gz
/tmt-1.30.0.tar.gz
/tmt-1.31.0.tar.gz
/tmt-1.32.1.tar.gz
/tmt-1.32.2.tar.gz
/tmt-1.33.0.tar.gz
/tmt-1.34.0.tar.gz
/tmt-1.35.0.tar.gz
/tmt-1.36.0.tar.gz
/tmt-1.36.1.tar.gz
/tmt-1.37.0.tar.gz
/tmt-1.38.0.tar.gz
/tmt-1.39.0.tar.gz
/tmt-1.40.0.tar.gz
/tmt-1.41.0.tar.gz
/tmt-1.41.1.tar.gz
/tmt-1.42.1.tar.gz
/tmt-1.43.0.tar.gz
/tmt-1.44.0.tar.gz
/tmt-1.45.0.tar.gz
/tmt-1.46.0.tar.gz
/tmt-1.47.0.tar.gz
/tmt-1.48.0.tar.gz
/tmt-1.49.0.tar.gz
/tmt-1.50.0.tar.gz
/tmt-1.51.0.tar.gz
/tmt-1.52.0.tar.gz
/tmt-1.53.0.tar.gz
/tmt-1.54.0.tar.gz
/tmt-1.55.0.tar.gz
/tmt-1.56.0.tar.gz
/tmt-1.57.0.tar.gz
/tmt-1.58.0.tar.gz
/tmt-1.59.0.tar.gz
/tmt-1.60.0.tar.gz
/tmt-1.61.0.tar.gz
/tmt-1.62.1.tar.gz
/tmt-1.63.0.tar.gz
/tmt-1.64.0.tar.gz
/tmt-1.65.0.tar.gz
/tmt-1.66.0.tar.gz
/tmt-1.67.0.tar.gz
/tmt-1.68.0.tar.gz
-245
View File
@@ -1,245 +0,0 @@
---
specfile_path: packaging/rpm/tmt.spec
files_to_sync:
- src: packaging/rpm/
dest: ./
delete: true
filters:
- "protect .git*"
- "protect sources"
- "protect changelog"
- "protect README*"
# TODO: remove once https://github.com/fedora-ci/jenkins-pipeline-library/pull/100 is merged
- "protect ci.fmf"
- src: packaging/
dest: ./
filters:
- "- rpm"
- .packit.yaml
upstream_package_name: tmt
downstream_package_name: tmt
upstream_project_url: https://github.com/teemtee/tmt
issue_repository: https://github.com/teemtee/tmt
srpm_build_deps:
- hatch
- python3-hatch-vcs
actions: &base-actions
create-archive:
- hatch build -t sdist
- bash -c "echo dist/tmt-$PACKIT_PROJECT_VERSION.tar.gz"
get-current-version:
- hatch version
targets: &all-targets
- fedora-all
- epel-9
- epel-10
# Uncomment below line if OpenScanHub scans are failing
# osh_diff_scan_after_copr_build: false
# Common definitions
_:
# Copr jobs under the packit project
- &copr-under-packit
job: copr_build
additional_repos:
- copr://@teemtee/stable
# Copr jobs under the teemtee project
- &copr-under-teemtee
<<: *copr-under-packit
list_on_homepage: true
preserve_project: true
owner: "@teemtee"
# Test jobs base setup
- &test-base
job: tests
trigger: pull_request
tf_extra_params:
environments:
- &copr-teemtee-stable
artifacts:
# Testing Farm fails to install the repository when a multiline
# string is used. The script looks broken, as if one piece of
# the process incorrectly loads it, producing broken repo file
# URL.
- type: repository-file
# yamllint disable-line rule:line-length
id: https://copr.fedorainfracloud.org/coprs/g/teemtee/stable/repo/fedora-rawhide/group_teemtee-stable-fedora-rawhide.repo
- type: repository-file
# yamllint disable-line rule:line-length
id: https://copr.fedorainfracloud.org/coprs/g/teemtee/stable/repo/epel-9/group_teemtee-stable-epel-9.repo
# Latest fedora & epel targets
- &latest-targets
- fedora-latest-stable
- epel-10
# Internal jobs
- &internal
use_internal_tf: true
targets:
- fedora-latest-stable
tf_extra_params:
environments:
- &tmt-cloud-resources
<<: *copr-teemtee-stable
settings:
provisioning:
tags:
BusinessUnit: tmt
# Core test requires
- &require-core-tests
require:
label:
absent:
- ci | skip
# Full test requires
- &require-full-tests
require:
label:
present:
- ci | full test
absent:
- status | discuss
- ci | skip
# Internal provisioning jobs
- &internal-provision
<<: *test-base
<<: *internal
<<: *require-full-tests
tf_extra_params:
environments:
- tmt:
context:
how: provision
<<: *tmt-cloud-resources
jobs:
# Build released bits to stable
- <<: *copr-under-teemtee
trigger: release
project: stable
# Build commits merged to main to latest
- <<: *copr-under-teemtee
trigger: commit
branch: main
project: latest
release_suffix: "{PACKIT_PROJECT_BRANCH}"
# Build pull requests
- <<: *copr-under-packit
trigger: pull_request
# Test core
- <<: *test-base
<<: *require-core-tests
targets: *latest-targets
identifier: core
tmt_plan: '/plans/features/core'
# Test full
- <<: *test-base
<<: *require-full-tests
identifier: full
# Do not run extended unit tests. That plan gets its own job
# because of podman vs systemd-resolved flakiness.
tmt_plan: '^(?!/plans/features/extended-unit-tests).*$'
# Extended unit tests
- <<: *test-base
<<: *require-full-tests
targets:
- fedora-latest-stable
identifier: extended-unit-tests
tmt_plan: '/plans/features/extended-unit-tests$'
# Test provision plugins
- <<: *internal-provision
identifier: provision-bootc
tmt_plan: /plans/provision/bootc
- <<: *internal-provision
identifier: provision-virtual
tmt_plan: /plans/provision/virtual
# Test internal plugins
- <<: *test-base
<<: *internal
<<: *require-full-tests
identifier: internal-plugins
fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/tmt.git"
# Test internal wow
- <<: *test-base
<<: *internal
<<: *require-full-tests
identifier: internal-wow
fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/integration_scripts.git"
tmt_plan: '/tmt/integration/plan'
# Run missing tests identified in Connect
- <<: *test-base
<<: *internal
<<: *require-full-tests
identifier: internal-fusa
fmf_url: "https://gitlab.cee.redhat.com/automotive/tests/all.git"
fmf_ref: "main"
tmt_plan: '/tmt/plans/fusa/tests'
targets:
- epel-9
# OS-agnostic sanity and coding-standard checks
- <<: *test-base
targets:
- fedora-latest-stable
identifier: sanity
tf_extra_params:
test:
tmt:
name: /plans/sanity
skip_build: true
# Downstream tests
- <<: *test-base
<<: *require-full-tests
targets:
- fedora-latest-stable
identifier: downstream
fmf_path: packaging
# Propose downstream pull requests
- job: propose_downstream
trigger: release
dist_git_branches:
rawhide:
fast_forward_merge_into:
- fedora-branched
- epel-10
- epel-9
# Create koji builds
- job: koji_build
trigger: commit
allowed_pr_authors: ["packit", "all_committers"]
dist_git_branches: *all-targets
# Create bodhi updates
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-branched
- epel-9
- epel-10
+2 -1
View File
@@ -1,5 +1,6 @@
# tmt # tmt
Test Management Tool Test Metadata Tool
* https://github.com/psss/tmt/
* https://tmt.readthedocs.io/ * https://tmt.readthedocs.io/
-3
View File
@@ -1,3 +0,0 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.15.0.post1.dev2+g8f2adf816.
-2263
View File
File diff suppressed because it is too large Load Diff
-1
View File
@@ -1 +0,0 @@
resultsdb-testcase: separate
+4 -6
View File
@@ -1,10 +1,8 @@
--- !Policy --- !Policy
product_versions: product_versions:
- fedora-* # note rawhide not yet supported properly :(
decision_contexts: - fedora-34
- bodhi_update_push_stable decision_context: bodhi_update_push_testing
subject_type: koji_build subject_type: koji_build
rules: rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/minimal.functional} - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0-tf.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/upstream.functional}
+7
View File
@@ -0,0 +1,7 @@
summary: Essential command line features
discover:
how: fmf
url: https://github.com/psss/tmt
ref: duration
execute:
how: beakerlib
-15
View File
@@ -1,15 +0,0 @@
summary: Verify that the minimal package works
discover:
tests:
- name: /install/minimal
test: cd $(mktemp -d) && tmt init -t full && tmt
require:
- tmt
prepare:
# TODO: Remove when artifact installation is live
summary: Ensure that only 'tmt' is installed
name: minimal
order: 90
script: dnf remove -y 'tmt-*' --exclude tmt
execute:
how: tmt
-23
View File
@@ -1,23 +0,0 @@
summary: Run a basic set of upstream tests
discover:
how: fmf
# Using a hack for when running in upstream where it is able to
# discover tests from outside the current fmf tree.
# https://github.com/teemtee/tmt/issues/2568
path: .
filter: "tier:1"
prepare:
- how: install
package:
- jq
- yq
execute:
how: tmt
adjust+:
when: initiator == fedora-ci
discover+:
dist-git-source: true
-5
View File
@@ -1,5 +0,0 @@
---
addedfiles:
ignore:
# rpminspect forbids /var/tmp prefix by default
- /var/tmp/tmt
+1 -1
View File
@@ -1 +1 @@
SHA512 (tmt-1.68.0.tar.gz) = 1c64f6c2648516fcc0abbc097970d8decd49cf5f22e9d165b2a1121dca4a2d54013d06f6de0ea4f9aa1a22a21f2eae4c261a9a456733c666fb4c8bc6ec60b2d3 SHA512 (tmt-1.0.tar.gz) = 98cfa96e0f872a40e72d108e90a0f594563301f4ae1df8b30c53a229e96b998bcb6ae0287aec01c7f3ce231671e94cdcb6d43fac81b3c3e1036b8151b7bec78f
-5
View File
@@ -1,5 +0,0 @@
# The detach runner is intentionally not executable
addFilter("python3-tmt.noarch: E: non-executable-script")
# Examples have .fmf used to mark metadata root
addFilter("tmt.noarch: W: hidden-file-or-dir")
+631 -180
View File
@@ -1,221 +1,672 @@
Name: tmt Name: tmt
Version: 1.68.0 Version: 1.0
Release: %autorelease Release: 1%{?dist}
Summary: Test Management Tool
License: MIT Summary: Test Management Tool
URL: https://github.com/teemtee/tmt License: MIT
#!RemoteAsset: sha256:470d17f9bbe6927c261433e00ee644dc5b79c83a0ab16b365942851ed4afeed4 BuildArch: noarch
Source0: https://files.pythonhosted.org/packages/source/t/%{name}/%{name}-%{version}.tar.gz %{?kernel_arches:ExclusiveArch: %{kernel_arches} noarch}
BuildArch: noarch URL: https://github.com/psss/tmt
BuildSystem: pyproject Source0: https://github.com/psss/tmt/releases/download/%{version}/tmt-%{version}.tar.gz
BuildRequires: pyproject-rpm-macros # Depending on the distro, we set some defaults.
BuildRequires: pkgconfig(python3) # Note that the bcond macros are named for the CLI option they create.
BuildRequires: python3dist(click) # "%%bcond_without" means "ENABLE by default and create a --without option"
BuildRequires: python3dist(fmf)
BuildRequires: python3dist(hatch-vcs)
BuildRequires: python3dist(hatchling)
BuildRequires: python3dist(jinja2)
BuildRequires: python3dist(pint)
BuildRequires: python3dist(pip)
BuildRequires: python3dist(pydantic)
BuildRequires: python3dist(pygments)
BuildRequires: python3dist(requests)
BuildRequires: python3dist(ruamel-yaml)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(urllib3)
# Fedora or RHEL 8+
# For rst2man %if 0%{?fedora} || 0%{?rhel} > 7
BuildRequires: python3-docutils %bcond_with oldreqs
%bcond_with englocale
Requires: git-core rsync sshpass beakerlib util-linux %else
# The automatic runtime dependency generator doesn't exist yet
%if 0%{?fedora} < 40 %bcond_without oldreqs
Obsoletes: python3-tmt < %{version}-%{release} # The C.UTF-8 locale doesn't exist, Python defaults to C (ASCII)
Provides: tmt-report-html == %{version}-%{release} %bcond_without englocale
Obsoletes: tmt-report-html < %{version}-%{release}
Provides: tmt-report-junit == %{version}-%{release}
Obsoletes: tmt-report-junit < %{version}-%{release}
Provides: tmt-report-polarion == %{version}-%{release}
Obsoletes: tmt-report-polarion < %{version}-%{release}
Provides: tmt-report-reportportal == %{version}-%{release}
Obsoletes: tmt-report-reportportal < %{version}-%{release}
%endif %endif
Recommends: bash-completion # Main tmt package requires the Python module
Recommends: ansible-core Requires: python%{python3_pkgversion}-%{name} == %{version}-%{release}
Requires: git-core sshpass
%py_provides python3-tmt
%global _metapackage_description %{expand:
This is a metapackage bringing in extra dependencies for tmt.
It contains no code, just makes sure the dependencies are installed.}
%description %description
The tmt Python module and command line tool implement the test The tmt Python module and command line tool implement the test
metadata specification (L1 and L2) and allows easy test execution. metadata specification (L1 and L2) and allows easy test execution.
This package contains the command line tool.
%pyproject_extras_subpkg -n tmt export-polarion %?python_enable_dependency_generator
%pyproject_extras_subpkg -n tmt report-junit
%pyproject_extras_subpkg -n tmt report-polarion
%pyproject_extras_subpkg -n tmt link-jira
%pyproject_extras_subpkg -n tmt prepare-artifact
%package -n tmt+test-convert
Summary: Dependencies required for tmt test import and export
Provides: tmt-test-convert == %{version}-%{release}
%if 0%{?fedora} < 40
Obsoletes: tmt-test-convert < %{version}-%{release}
%endif
Requires: tmt == %{version}-%{release}
Requires: make
Requires: python3-bugzilla
Requires: python3-nitrate
Requires: python3-html2text
Requires: python3-markdown
%description -n tmt+test-convert %_metapackage_description %package -n python%{python3_pkgversion}-%{name}
Summary: Python library for the %{summary}
%package -n tmt+provision-container BuildRequires: python%{python3_pkgversion}-devel
Summary: Dependencies required for tmt container provisioner BuildRequires: python%{python3_pkgversion}-setuptools
Provides: tmt-provision-container == %{version}-%{release} BuildRequires: python%{python3_pkgversion}-pytest
%if 0%{?fedora} < 40 BuildRequires: python%{python3_pkgversion}-click
Obsoletes: tmt-provision-container < %{version}-%{release} BuildRequires: python%{python3_pkgversion}-fmf
%endif BuildRequires: python%{python3_pkgversion}-mock
Requires: tmt == %{version}-%{release} BuildRequires: python%{python3_pkgversion}-requests
Requires: podman BuildRequires: python%{python3_pkgversion}-testcloud
Requires: ansible-collection-containers-podman %{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
%if %{with oldreqs}
%description -n tmt+provision-container %_metapackage_description Requires: python%{python3_pkgversion}-PyYAML
%package -n tmt+provision-virtual
Summary: Dependencies required for tmt virtual machine provisioner
Provides: tmt-provision-virtual == %{version}-%{release}
%if 0%{?fedora} < 40
Obsoletes: tmt-provision-virtual < %{version}-%{release}
%endif
Requires: tmt == %{version}-%{release}
Requires: python3-testcloud >= 0.11.7
Requires: libvirt-daemon-config-network
Requires: openssh-clients
# Recommend qemu system emulators for supported arches
Recommends: qemu-kvm-core
%if 0%{?fedora}
Recommends: qemu-system-aarch64-core
Recommends: qemu-system-ppc-core
Recommends: qemu-system-s390x-core
Recommends: qemu-system-x86-core
%endif %endif
%description -n tmt+provision-virtual %_metapackage_description %description -n python%{python3_pkgversion}-%{name}
The tmt Python module and command line tool implement the test
metadata specification (L1 and L2) and allows easy test execution.
This package contains the Python 3 module.
%package -n tmt+provision-bootc %package provision-container
Summary: Dependencies required for tmt bootc machine provisioner Summary: Container provisioner for the Test Management Tool
Provides: tmt-provision-bootc == %{version}-%{release} Obsoletes: tmt-container < 0.17
Requires: tmt == %{version}-%{release} Requires: tmt == %{version}-%{release}
Requires: tmt+provision-virtual == %{version}-%{release} Requires: ansible podman
Requires: podman
# podman-machine is not present on epel9 and various arches. Should probably
# skip the whole sub-package, but that would need a more thorough impact
# check. For now we at least allow this to be installed and fail at runtime.
# Also, podman-machine is only present on x86_64 and aarch64
# TODO: re-enable podman-machine on epel10 once it is packaged
%if 0%{?fedora}
Requires: (podman-machine if (filesystem(x86-64) or filesystem(aarch-64)))
%endif
%description -n tmt+provision-bootc %_metapackage_description %description provision-container
Dependencies required to run tests in a container environment.
%package -n tmt+provision-beaker %package provision-virtual
Summary: Dependencies required for tmt beaker provisioner Summary: Virtual machine provisioner for the Test Management Tool
Provides: tmt-provision-beaker == %{version}-%{release} Obsoletes: tmt-testcloud < 0.17
%if 0%{?fedora} < 40 Requires: tmt == %{version}-%{release}
Obsoletes: tmt-provision-beaker < %{version}-%{release} Requires: python%{python3_pkgversion}-testcloud >= 0.3.5
%endif Requires: ansible openssh-clients rsync
Requires: tmt == %{version}-%{release}
Requires: python3-mrack-beaker
%description -n tmt+provision-beaker %_metapackage_description %description provision-virtual
Dependencies required to run tests in a local virtual machine.
%package -n tmt+provision-mock %package test-convert
Summary: Dependencies required for tmt mock provisioner Summary: Test import and export dependencies
Provides: tmt-provision-mock == %{version}-%{release} Requires: make python3-nitrate python3-html2text
Requires: tmt == %{version}-%{release}
Requires: mock
%description -n tmt+provision-mock %_metapackage_description %description test-convert
Additional dependencies needed for test metadata import and export.
# Replace with pyproject_extras_subpkg at some point %package all
%package -n tmt+all Summary: Extra dependencies for the Test Management Tool
Summary: Extra dependencies for the Test Management Tool Requires: tmt >= %{version}
Provides: tmt-all == %{version}-%{release} Requires: tmt-provision-container >= %{version}
%if 0%{?fedora} < 40 Requires: tmt-provision-virtual >= %{version}
Obsoletes: tmt-all < %{version}-%{release} Requires: tmt-test-convert >= %{version}
%endif
Requires: tmt+export-polarion == %{version}-%{release}
Requires: tmt+link-jira == %{version}-%{release}
Requires: tmt+prepare-artifact == %{version}-%{release}
Requires: tmt+provision-beaker == %{version}-%{release}
Requires: tmt+provision-bootc == %{version}-%{release}
Requires: tmt+provision-container == %{version}-%{release}
Requires: tmt+provision-mock == %{version}-%{release}
Requires: tmt+provision-virtual == %{version}-%{release}
Requires: tmt+report-junit == %{version}-%{release}
Requires: tmt+report-polarion == %{version}-%{release}
Requires: tmt+test-convert == %{version}-%{release}
%description -n tmt+all %description all
All extra dependencies of the Test Management Tool. Install this All extra dependencies of the Test Management Tool. Install this
package to have all available plugins ready for testing. package to have all available plugins ready for testing.
%prep
%autosetup -p1 -n tmt-%{version}
%generate_buildrequires %prep
%pyproject_buildrequires %setup -q
%build %build
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %if %{with englocale}
%pyproject_wheel export LANG=en_US.utf-8
%endif
%py3_build
# Build the man files
cp docs/header.txt man.rst
tail -n+8 docs/overview.rst >> man.rst
# TODO rst2man cannot process this directive, removed for now
sed '/versionadded::/d' -i man.rst
rst2man man.rst > tmt.1
%install %install
%pyproject_install %if %{with englocale}
%pyproject_save_files tmt export LANG=en_US.utf-8
%endif
%py3_install
mkdir -p %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}%{_mandir}/man1
install -pm 644 tmt.1 %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}/etc/bash_completion.d/
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions install -pm 644 tmt.1* %{buildroot}%{_mandir}/man1
install -pm 644 completions/bash/%{name} %{buildroot}%{_datadir}/bash-completion/completions/%{name} install -pm 644 bin/complete %{buildroot}/etc/bash_completion.d/tmt
mkdir -p %{buildroot}/etc/%{name}/
install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/
%check %check
%pyproject_check_import %if %{with englocale}
export LANG=en_US.utf-8
%endif
%files -n tmt -f %{pyproject_files} %{__python3} -m pytest -vv -m 'not web'
%{!?_licensedir:%global license %%doc}
%files
%{_mandir}/man1/*
%{_bindir}/%{name}
%doc README.rst examples %doc README.rst examples
%{_bindir}/tmt %license LICENSE
%{_mandir}/man1/tmt.1.gz /etc/bash_completion.d/tmt
%{_datadir}/bash-completion/completions/%{name}
%files -n python%{python3_pkgversion}-%{name}
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}-*.egg-info/
%license LICENSE
%exclude %{python3_sitelib}/%{name}/steps/provision/{,__pycache__/}{podman,testcloud}.*
%files provision-container
%{python3_sitelib}/%{name}/steps/provision/{,__pycache__/}podman.*
%files provision-virtual
%{python3_sitelib}/%{name}/steps/provision/{,__pycache__/}testcloud.*
%files test-convert
%license LICENSE
%files all
%license LICENSE
%files -n tmt+provision-container -f %{_pyproject_ghost_distinfo}
%files -n tmt+provision-virtual -f %{_pyproject_ghost_distinfo}
%files -n tmt+provision-bootc -f %{_pyproject_ghost_distinfo}
%files -n tmt+test-convert -f %{_pyproject_ghost_distinfo}
%files -n tmt+provision-beaker -f %{_pyproject_ghost_distinfo}
%config(noreplace) %{_sysconfdir}/%{name}/mrack*
%files -n tmt+provision-mock -f %{_pyproject_ghost_distinfo}
%files -n tmt+all -f %{_pyproject_ghost_distinfo}
%changelog %changelog
%autochangelog * Wed Oct 07 2020 Petr Šplíchal <psplicha@redhat.com> - 1.0-1
- Correctly handle framework for new plans and tests
- Move runtest.sh adjustments into a single function
- Add the executable permission to runtest.sh
- Less strict removing sourcing of rhts-environment
- Use metadata directory as the default for path
- Implement the new L1 attribute 'framework'
- Explicitly enable copr_build for pull requests
- Handle missing library in existing repository
- Update the overall tmt description and examples
- Enable builds from master in the main copr repo
- Merge packit config for copr builds from master
- Use packit repository for copr builds from master
- Gracefully handle invalid test output
- Build in COPR for master via packit
- Add hint about caching the dnf package metadata
- Add two hints about easy login for experimenting
- Merge debug messages for the minute plugin [#361]
- Adjust the minute provision debug messages wording
- Use the internal tmt executor by default
- Add more debug messages to minute provision
- Remove the remaining 'tmt test convert' references
- Prevent shebang mangling for detached executor
- Merge the minute and install plugin docs [#345]
- Adjust the minute and install plugin documentation
- Merge the manual test import documentation [#347]
- Adjust the manual test documentation wording
- Merge rhts-environment source line removal [#344]
- Adjust rhts-environment source line removal
- Add missing extra-* keys to the test import
- Add docs for manual case import
- Disable authentication when fetching libraries
- Document the install prepare method
- Document the minute provision method
- Remove sourcing of rhts-environment in runtest.sh
- Add minute to supported provision methods of prepare
* Mon Sep 07 2020 Petr Šplíchal <psplicha@redhat.com> - 0.21-1
- Adjust manual test case import from nitrate [#319]
- Move the test convert deps into a separate package
- Support importing manual test cases from Nitrate
- Merge the non-zero exit codes for linting errors
- Fix several test export issues [fix #337]
- Adjust distro checks, remove the dry parameter
- Generalized Guest.details() [fix #310]
- Adjust the test coverage for tmt plan/test lint
- Update documentation with virtualization tips
- Make sure the duration timer is always canceled
- Merge the new retry_session functionality [#328]
- Exit with non-zero code if linting fails
- Merge fix for the double fmf extension [#327]
- Prevent koji from trying to build packages on i686
- Retry requests in case of network failure
- Avoid double fmf extension when creating plans and stories
- Improve the maximum test duration handling
- Remove vagrant from tmt-all recommended packages
- Detect beakerlib libraries from recommend as well
- Simplify packit custom create archive command
- Make the httpd test example a bit more interesting
- Append dots to fix tmt run --help message summary
- Document multiple configs and extending steps
* Tue Jul 28 2020 Petr Šplíchal <psplicha@redhat.com> - 0.20-1
- Move libraries handling into a separate module
- Adjust loading variables from YAML files [#316]
- Support environment variables from YAML files
- Give a nice error for expired kerberos [fix #57]
- Merge Guest relocation and documentation [#307]
- Describe essential Guest methods in more detail
- Update test import story and documentation
- Merge extra-task as summary in test export [#304]
- Move default plan handling into a single method
- Move the Guest class from base to steps.provision
- Save root in run.yaml
- Document L1 metadata defined in the discover step
- Improve Makefile editing during test import
- Use extra-task as summary in test export
- Mention default methods in the step help message
- Handle invalid url when library provided as fmf id
- Allow library git clone to fail
* Fri Jun 12 2020 Petr Šplíchal <psplicha@redhat.com> - 0.19-1
- Make the discover step a little bit more secure
- Improve basic and verbose output of tmt plan show
- Improve default plan handling and more [fix #287]
- Adjust the compose check retry in testcloud
- Retry Fedora compose check in testcloud [fix #275]
- Update development section and library example
- Support fetching beakerlib libraries in discover
- Add nitrate to the setup.py extra requires
- Add a workflow-tomorrow integration test example
- Add 'duration' into the test results specification
* Mon Jun 01 2020 Petr Šplíchal <psplicha@redhat.com> - 0.18-1
- Add virtual plans for supported provision methods
- Implement description in 'tmt plan show' as well
- Implement tmt run --remove to remove workdir
- Extend the login/step test to cover failed command
- Do not fail upon command fail in interactive mode
- Implement the internal tmt execute step method
- Move all prepare/install tests to tier level 3
- Merge the new manual test specification [#247]
- Merge the new L1 attribute 'recommend' [#265]
- Adjust the manual test specification and examples
- Implement 'recommend' for installing soft requires
- State explicitly that execution is finished
- Simplify beakerlib template, add test for init
- Manual test case specification and examples
- Implement exit codes, handle no tests [fix #246]
- Merge the interactive shell login command [#258]
- Adjust support for shortened 1MT image names
- New login command to provide a shell on guest
- Add support for shortened 1MT image names
- Add support for running tests without defined plan
- Ignore save() in the execute step unit test
- Update the default run example with fresh output
- Show kernel version only in verbose mode
* Sat May 23 2020 Petr Šplíchal <psplicha@redhat.com> - 0.17-1
- Use emulator_path instead of hard-coded qemu path
- Improve a bit the --force option description
- Use consistent naming for provision subpackages
- Add 'mock' to extra requires (needed to make docs)
- Move podman and testcloud plugins into subpackages
- Enable epel for packit build & testing farm
- Move vagrant from requires to recommends (tmt-all)
* Mon May 18 2020 Petr Šplíchal <psplicha@redhat.com> - 0.16-1
- Merge the fix and test for run --force [#245]
- Merge the improved display report [#241]
- Adjust the display report plugin verbose output
- Adjust general plan linking and component check
- Clean up the run workdir if --force provided
- More verbose modes for report --how display
- Link plans, handle missing components in export
- Import and listify of contact
- Disable Tier 3 tests by default (need bare metal)
- Move Tier 0 tests into a separate directory
- Merge the new 1minutetip provision plugin [#225]
- Adjust the 1minutetip provision plugin
- Add support for tmt run --after and --before (#237)
- Support string in test component, require and tag (#233)
- Add support for installing local rpm packages
- Add 1minutetip provision plugin
- Implement tmt run --since, --until and --skip (#236)
- Merge pull request #234 from psss/testcloud-aliases
- Update the last run id at the very end of run
- Support short Fedora compose aliases in testcloud
- Convert the finish step into dynamic plugins
- Convert the report step into dynamic plugins
- Convert the execute step into dynamic plugins
- Escape package names during installation
- Deduplicate inherited keys in test import [fix #8]
* Wed Apr 29 2020 Petr Šplíchal <psplicha@redhat.com> - 0.15-1
- Implement executing the last run using --last
- Adjust support for modifying plan templates
- Add a way how to edit values in a new template
- Explicitly mention supported distros in the docs
- Convert provision/prepare into dynamic plugins
- Describe difference between --verbose and --debug
- Support fmf name references in docs, update spec
- Support multiple verbose/debug levels [fix #191]
- Remove forgotten 'Core' section from stories
- Implement Plugin.show() for a full dynamic support
- Improve the workdir handling in the Common class
* Thu Apr 16 2020 Petr Šplíchal <psplicha@redhat.com> - 0.14-1
- Workaround yaml key sorting on rhel-8 [fix #207]
- Fix test discovery from the execute step scripts
- Merge discover step documentation and fixes [#204]
- Document the discover step, fix issues, add tests
- Simplify the minimal example, adjust tests
- Move fmf_id() to Node class, minor adjustments
- Allow to print fmf identifier in tmt tests show
- Merge manual tests story and examples [#198]
- Add a story and examples describing manual tests
- Sync more extra-* attributes when exporting [#199]
- Enable checks for essential test attributes
- Handle require in Dicovery
- Store imported metadata in a sane order [fix #86]
- Enable Python 3.8 in Travis, update classifiers
- Add missing 'require' attribute to the Test class
- Fix long environment for run.sh [fix #126]
- Merge dynamic plugins and wake up support [#186]
- Implement dynamic plugins and options [fix #135]
- Suggest using 'tmt init' when metadata not found
- Merge improved import of tier from tags [#187]
- Adjust tier import from test case tags
- Merge tmt test export --nitrate --create [#185]
- Adjust suppport for creating new nitrate testcases
- Allow creation of nitrate cases when exporting
- Create tier attribute from multiple Tier tags
- Fix run.sh to work with RHEL/CentOS 7 as well
- Implement wake up for Run, Step and Discover
* Wed Apr 01 2020 Petr Šplíchal <psplicha@redhat.com> - 0.13-1
- Merge the improved test import checks [#179]
- Adjust checks for missing metadata
- Add checks for missing metadata.
- Implement public_git_url() for git url conversion
- Define required attributes and duration default
* Wed Mar 25 2020 Petr Šplíchal <psplicha@redhat.com> - 0.12-1
- Import the testcloud module when needed [fix #175]
- Update implementation coverage of stories & spec
- Discover only enabled tests [fix #170]
- Correctly handle missing nitrate module or config
- Use raw string for regular expression search
* Mon Mar 23 2020 Petr Šplíchal <psplicha@redhat.com> - 0.11-1
- Merge default images for podman/testcloud [#169]
- Do not export empty environment to run.sh
- Merge vagrant check for running connection [#156]
- Adjust vagrant check for running connection
- Merge test export into nitrate [#118]
- Adjust 'tmt test export --nitrate' implementation
- Use fedora as a default image for podman/testcloud
- Move testcloud back to the extra requires
- Always copy directory tree to the workdir
- Add an example with test and plan in a single file
- Do not run tests with an empty environment
- Check for non-zero status upon yaml syntax errors
- Export test cases to nitrate
- Merge test import using testinfo.desc [#160]
- Adjust test import using testinfo.desc
- Use testinfo.desc as source of metadata
- Add environment support to the discover step (#145)
- Add a new story describing user and system config (#143)
- Check if connection is running in Vagrant Provision
* Wed Mar 11 2020 Petr Šplíchal <psplicha@redhat.com> - 0.10-1
- Merge fixed environment support in run.sh [#99]
- Add container and testcloud to tmt-all requires (#157)
- Rename dict_to_shell() to better match content
- Make path mandatory in run.sh.
- Handle execution better in run.sh
- Implement --env for testcloud provisioner
- Merge run --environment support for podman [#132]
- Fix container destroy, plus some minor adjustments
- Use cache 'unsafe' for testcloud (#150)
- Add --env option and support in podman provisioner
- Warn about missing metadata tree before importing
- Move testcloud to base requires, update README (#153)
- Destroy container in finish only if there is any
- Merge tmt test import --nitrate --disabled [#146]
- Adjust the disabled test import implementation
- Add an overview of classes (where are we heading)
- Import non-disabled tests
- Add a 'Provision Options' section, update coverage
- Support selecting objects under the current folder
- Add a link to details about fmf inheritance
- Move requirements under the Install section
- Mock testcloud modules to successfully build docs
- Include examples of plan inheritance [fix #127]
- Update implementation coverage for cli stories
- Add testcloud provisioner (#134)
- Merge the new story for 'tmt run --latest' [#136]
- Move run --latest story under run, fix code block
- Fix invalid variable name in the convert example
- Use 'skip' instead of 'without', simplify default
- Add rerun cli shortcut
- Make sure we run finish always
- Update the docs making '--name=' necessary (#138)
- Clarify environment priority, fix release typo
- Add environment specification
- Remove copr build job from packit (not necessary)
- Use the 'extra-summary' in the output as well
- Use 'nitrate' consistently for tcms-related stuff
- Prefix all non-specification keys [fix #120]
- Show a nice error for an invalid yaml [fix #121]
- Move container plan to common provision examples
- Remove tmt-all dependency on vagrant-libvirt
- Do not use red for import info messages [fix #125]
- Show a nice error for weird Makefiles [fix #108]
* Mon Feb 24 2020 Petr Šplíchal <psplicha@redhat.com> - 0.9-1
- Rename the 'test convert' command to 'test import'
- Include 'path' when importing virtual test cases
- Extract test script from Makefile during convert
- Do not import 'fmf-export' tag from nitrate [#119]
- Merge the improved component import [#115]
- Several adjustments to the component import
- Merge the improved requires parsing [#113]
- Fix parsing multiple requires from Makefile
- Fail nicely if executed without provision (#112)
- Make sure the copr command is available in dnf
- Fix handling defaults for options, adjust wording
- Read 'components' from nitrate when converting
- Read requires as list when converting tests
- Make it possible to pass script on cmdline
- Mention libvirt and rsync in Fedora 30 workaround
- Move podman image check and pull under go()
- Simple destroy implementation for podman provision
- Add Fedora 30 installation instructions [fix #105]
- Merge podman support for the provision step [#106]
- Several adjustments to the podman implementation
- Fix _prepare_shell in podman provisioner
- Add podman provisioner
- Update the test case relevancy specification (#102)
- Move copy_from_guest to provision/base.py (#75)
- Several minor adjustments to the restraint story
- Add user story for restraint
- Merge different summaries for subpackages [#97]
- Remove macro from the tmt-all subpackage summary
- Add different summaries for sub-packages
- Mention 'fmf-export' tag in the test export story
- Merge optional PURPOSE in test convert [#89]
- Handle missing duration or nitrate case in convert
- Add support for wrap='auto' in utils.format()
- Use local fmf repository for the basic plan (#94)
- Merge test import documentation updates [#90]
- Merge tag, status, pepa & hardware for test import
- Several test import adjustments related to #91
- Fix deduplication bug when converting tests
- Read more attributes from nitrate when converting
- Update examples doc for converting tests
- Update execute step examples for shell
- Simplify packit configuration using 'fedora-all' (#88)
- Optional attributes when converting.
- Update execute and report step specification
- Add spec for results.yaml and report.yaml (#66)
- Add a story for exporting tests into nitrate (#83)
- Add the 'require' attribute into the L1 Metadata
- Update the Metadata Specification link in README
- Improve 'tmt test convert' command implementation
* Wed Jan 15 2020 Petr Šplíchal <psplicha@redhat.com> - 0.8-1
- Do not create bash completion script during build
- Require the same version, fix changelog entry
- Create fmf for each tcms case when converting. (#78)
* Tue Jan 14 2020 Petr Šplíchal <psplicha@redhat.com> - 0.7-1
- Make the package build for epel7 and epel8
- Implement test discover from execute shell script
- Disable /plan/helps for running in cruncher (#74)
- Do not fail ansible execution on 'stty cols' error
- Use a list for storing converted requires
- Add Requires to main.fmf when converting tests (#65)
- Fix command debug output to join tuples as well. (#77)
- Set 80 chars for ansible-playbook on localhost
- Use tmt to init tree, extra folder for playbooks
- Fix log and error handling in execute
- Fail in run.sh if there are Missing tests.
- Use sudo in prepare step to allow local execution
- Fix run_vagrant() to work with shell=True
- Use tmt init --template, not --mini|--base|--full (#69)
- Add a simple local provision plan to examples
- Simplify step selection test, simple local example
- Fix conflicting options, revert copr config
- Add `--guest` support for the provision step
- Depend on git-core and not the full git package (#64)
- Use shell=True as a default in utils' run()
- Put quotes in `pip install .[*]` in README (#67)
- Use parent run context to check for enabled steps
- Improve the enabled steps implementation
- Add 'mock' to the extra test requires [fix #63]
- Add a new story for developing upgrade tests
- Update fedora targets for packit
- Add vagrant to BuildRequires (needed to run tests)
- Add stories for connecting to a provisioned box
- Separate the provision step into multiple stories
- Fix provision tests to work with older mock (#51)
- Install the latest mock module for testing
- Default to vagrant provision, use the tree root
- Update documentation coverage links
- Move new docs to examples, adjust style & content
- Add prepare functionality to local provision
- Import examples from @psss's talk
- Add an argument to ProvisionBase.copy_from_guest (#41)
- Remove unused imports, fix crash, shell prepare
- Initial prepare and finish steps implementation
- Document the vagrant-rsync-back plugin workaround
- Fix beakerlib execution, show overall results
- Better execute with logs and better run.sh
- Implement 'tmt init --base' with working examples
- Add git to the main package requires
- Add tmt & python3-nitrate to the tmt-all requires
- Create subpackage 'tmt-all' with all dependencies
- Use package_data to package the test runner
- Apply requested file mode in create_file()
- Run tmt tests local by default, fix provision show
- Implement image selection using provision --image
- Do not re-raise tmt exceptions in debug mode
- Package the runner, dry mode in Common.run()
- Support multiline output in common display methods
- Enable command line filtering in discover.shell
- Default discover method has to be 'shell'
- Fix Common.run() to capture all output, log all
- Fix broken test/plan/story create, add some tests
- Better config handling in ProvisionVagrant.
- Implement 'sync-back' and simple VagrantProvision.
* Mon Nov 04 2019 Petr Šplíchal <psplicha@redhat.com> - 0.6-1
- List all python packages in the setup.py
- Initial implementation of the execute step
- Vagrant Provider output and provider handling
- Relay API methods to instances in provision
- Simple localhost provisioner (#28)
- Implement shell discover, add a simple example
- Fix test path, discover in go(), adjust example
- Add run.sh for running the tests on guest
- Add default config for libvirt to use QEMU session
* Tue Oct 29 2019 Petr Šplíchal <psplicha@redhat.com> - 0.5-1
- Implement common --filter and --condition options
- Store step data during save()
- Common logging methods, improve run() output
- Implement common options and parent checking
- Sync the whole plan workdir to the guest
- Fix inheritance and enable --verbose mode.
- Rename the main metadata tree option to --root
- Adjust tests to skip provision, fix raw strings
- Move example Vagrantfiles to examples
- Implement ProvisionVagrant (#20)
- Implement tests.yaml creation in discover
- Implement 'tmt test export' with yaml support
- Support checking parent options, fix plan show -v
- Implement common methods status(), read(), write()
- Implement run() to easily execute in the workdir
- Implement DiscoverPlugin class, require step names
- Move workdir handling into the Common class
- Common class & filtering tests/plans for execution
- Improve step handling, remove global variables
- Fix 'tmt init --full' in a clean directory
- Better handle defaults and command line options
- Do not run systemd plan as it fetches remote repo
- Add documentation generated files to gitignore
- Get rid of the test attribute inconsistencies
- Fix various issues in localhost provisioner skeleton
- Update discover step story with example output
- Add an example of a shell discover step
- Add a simple smoke test story
- Add base class for provisioner
- Initial implementation of the discover step
- Allow creating tmt tree under an existing one
- Support multiple configs in Step.show()
- Support and document optional dependencies install
- Add an example of multiple configs
- Convert step data to list, add execute check
- Add --how option to provision command
- Move step classes into separate directories
- Implement class Run with workdir support
- Add a workdir structure example
- Separate metadata tree for L2 metadata examples
- Add stories covering the Metadata Specification
- Enable bash completion feature
* Thu Oct 17 2019 Petr Šplíchal <psplicha@redhat.com> - 0.4-1
- Add tests for 'tmt init', allow overwritting
- Use plural commands to prevent confusion [fix #10]
- Add a link to Packit & Testing Farm documentation
- Add a simple develop section to the readme
- Split cli stories into multiple files
- Cleanup convert example, simplify story example
- Implement initialization with creating examples
- Implement 'tmt {test,plan,story} show --verbose'
- Implement 'tmt story create', add basic templates
- Implement 'tmt plan create' plus initial templates
- Add a new story for creating plans (enable CI)
- Add basic rpm installation stories
- Show test steps summary in plan show if provided
- Add a Release Test Team installation tests example
- Suggest git-like moving forward in tasks
- Fix step names in 'tmt plan show' output
- Update documentation overview with latest changes
- Add story introduction, cleanup generated files
- Generate documentation for user stories
- Use raw string to prevent invalid escape sequence
- Test Management Tool, it's not metadata only
- Add a story for core option --debug
- Add a story for the mock shortcut [fix #5, fix #6]
- Add a story for core option --format
- Propose a dream for hands-free debugging
- Rename remaining testset occurences to plan
- Implement 'tmt plan lint' with initial checks
* Thu Oct 10 2019 Petr Šplíchal <psplicha@redhat.com> - 0.3-1
- Fix uncovered story filter logic, show total
- Rename testsets to plans, simplify playbooks
- Fix basic testset repo, install dependencies
- Implement 'tmt init', add the corresponding story
- Show overview of available tests, plans, stories
- Implement 'tmt story coverage', update coverage
- Implement 'tmt story --covered / --uncovered'
- Rename testsest to plan to avoid common prefix
* Wed Oct 09 2019 Petr Šplíchal <psplicha@redhat.com> - 0.2-1
- Enable Packit building and Testing Farm testing
- Provide one-letter versions for select options
- Implement 'tmt run --all' to run all test steps
- Support command abbreviation, add related stories
- Add the Quick Start Guide story to documention
- Add coverage options to tmt story ls and show
- Initialize metadata tree only when accessed
- Remove show functionality from the 'run' command
- Implement 'tmt test create' with basic templates
- Implement 'tmt test lint' with some basic checks
- Add user stories for core options and attributes
- Implement 'tmt story show', couple of adjustments
- Prevent alphabetical sorting of commands in help
- Move unit tests into a separate directory
- Align examples with the latest specification
- Implement 'tmt show' for test and testset
- Implement ls for test, testset and story commands
- Add 'tmt test create' command to user stories
- Add an initial set of basic tests
- Update cli user stories, add api & docs stories
- Add a couple of dreams for the bright future :-)
* Mon Sep 30 2019 Petr Šplíchal <psplicha@redhat.com> - 0.1-1
- Initial packaging