代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/openstack-tempest 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global project tempest
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
%global with_doc 1
%global common_desc \
This is a set of integration tests to be run against a live OpenStack cluster.\
Tempest has batteries of tests for OpenStack API validation, Scenarios, and \
other specific tests useful in validating an OpenStack deployment.
%global with_python3 0
Name: openstack-%{project}
Version: 18.0.0
Release: 1
Summary: OpenStack Integration Test Suite (Tempest)
License: Apache-2.0
Url: https://opendev.org/openstack/tempest
Source0: http://tarballs.openstack.org/tempest/tempest-%{upstream_version}.tar.gz
BuildArch: noarch
BuildRequires: git
BuildRequires: python2-oslo-config
BuildRequires: python2-pbr
BuildRequires: python2-setuptools
BuildRequires: python2-devel
BuildRequires: openstack-macros
Requires: python2-tempest = %{version}-%{release}
%description
%{common_desc}
%package -n python2-%{project}
Summary: Tempest Python library
%{?python_provide:%python_provide python2-%{project}}
# Obsoletes python-tempest-lib to avoid breakage
# during upgrade from Newton onwards to till this
# release
Obsoletes: python-tempest-lib
Requires: python2-cliff
Requires: python2-debtcollector
Requires: python2-fixtures
Requires: python2-jsonschema
Requires: python2-netaddr
Requires: python2-oslo-concurrency >= 3.8.0
Requires: python2-oslo-config >= 4.0.0
Requires: python2-oslo-log >= 3.22.0
Requires: python2-oslo-serialization >= 1.10.0
Requires: python2-oslo-utils >= 3.20.0
Requires: python2-os-testr >= 0.8.0
Requires: python2-paramiko
Requires: python2-pbr
Requires: python2-prettytable
Requires: python2-six
Requires: python2-stevedore
Requires: python2-stestr
Requires: python2-testtools
Requires: python2-urllib3
Requires: python2-subunit
Requires: python2-unittest2
Requires: python2-pyyaml
%description -n python2-%{project}
%{common_desc}
This package contains the tempest python library.
%package -n python2-%{project}-tests
Summary: Python Tempest tests
Requires: python2-tempest = %{version}-%{release}
%{?python_provide:%python_provide python2-%{project}-tests}
BuildRequires: python2-mock
BuildRequires: python2-oslotest
BuildRequires: python2-subunit
BuildRequires: python2-oslo-log
BuildRequires: python2-jsonschema
BuildRequires: python2-urllib3
BuildRequires: python2-pyyaml
BuildRequires: python2-oslo-concurrency
BuildRequires: python2-paramiko
BuildRequires: python2-cliff
BuildRequires: python2-pep8
BuildRequires: python2-os-testr
BuildRequires: python2-stestr
Requires: python2-mock
Requires: python2-oslotest
%description -n python2-%{project}-tests
%{common_desc}
This package contains tests for the tempest python library.
# Python3 package
%if 0%{?with_python3}
%package -n python3-%{project}
Summary: Tempest Python library
%{?python_provide:%python_provide python3-%{project}}
BuildRequires: python3-oslo-config
BuildRequires: python3-pbr
BuildRequires: python3-setuptools
BuildRequires: python3-devel
Requires: python3-cliff
Requires: python3-debtcollector
Requires: python3-fixtures
Requires: python3-jsonschema
Requires: python3-netaddr
Requires: python3-oslo-concurrency >= 3.8.0
Requires: python3-oslo-config >= 4.0.0
Requires: python3-oslo-log >= 3.22.0
Requires: python3-oslo-serialization >= 1.10.0
Requires: python3-oslo-utils >= 3.20.0
Requires: python3-os-testr >= 0.8.0
Requires: python3-paramiko
Requires: python3-pbr
Requires: python3-prettytable
Requires: python3-six
Requires: python3-stevedore
Requires: python3-stestr
Requires: python3-testtools
Requires: python3-urllib3
Requires: python3-PyYAML
Requires: python3-subunit
Requires: python3-unittest2
%description -n python3-%{project}
%{common_desc}
This package contains the tempest python library.
%package -n python3-%{project}-tests
Summary: Python Tempest tests
%{?python_provide:%python_provide python3-%{project}-tests}
Requires: python3-tempest = %{version}-%{release}
BuildRequires: python3-oslotest
BuildRequires: python3-subunit
BuildRequires: python3-oslo-log
BuildRequires: python3-jsonschema
BuildRequires: python3-urllib3
BuildRequires: python3-PyYAML
BuildRequires: python3-oslo-concurrency
BuildRequires: python3-paramiko
BuildRequires: python3-cliff
BuildRequires: python3-pep8
BuildRequires: python3-os-testr
BuildRequires: python3-stestr
Requires: python3-oslotest
%description -n python3-%{project}-tests
%{common_desc}
This package contains tests for the tempest python library.
%endif
%if 0%{?with_doc}
%package -n %{name}-doc
Summary: %{name} documentation
BuildRequires: python2-sphinx
BuildRequires: python2-openstackdocstheme
%description -n %{name}-doc
%{common_desc}
It contains the documentation for Tempest.
%endif
%prep
%autosetup -n tempest-%{upstream_version} -S git
# have dependencies being handled by rpms, rather than requirement files
%py_req_cleanup
# remove shebangs and fix permissions
RPMLINT_OFFENDERS="tempest/cmd/list_plugins.py \
tempest/cmd/cleanup.py \
tempest/cmd/cleanup_service.py \
tempest/cmd/verify_tempest_config.py \
tempest/cmd/account_generator.py \
tempest/lib/cmd/skip_tracker.py \
tempest/lib/cmd/check_uuid.py"
sed -i '1{/^#!/d}' $RPMLINT_OFFENDERS
chmod u=rw,go=r $RPMLINT_OFFENDERS
%build
%py2_build
%if 0%{?with_python3}
%py3_build
%endif
%if 0%{?with_doc}
# Disable Build the plugin registry step as it uses git to clone
# projects and then generate tempest plugin projects list.
# It is also time taking.
export GENERATE_TEMPEST_PLUGIN_LIST='False'
# TODO(ihrachys): remove when https://review.openstack.org/#/c/523235/ is
# released
sed -i 's/warning-is-error = 1/warning-is-error = 0/' setup.cfg
%{__python2} setup.py build_sphinx -b html
%endif
%install
%py2_install
%if 0%{?with_python3}
%py3_install
%endif
# Generate tempest config
mkdir -p %{buildroot}%{_sysconfdir}/%{project}/
oslo-config-generator --config-file tempest/cmd/config-generator.tempest.conf \
--output-file %{buildroot}%{_sysconfdir}/%{project}/tempest.conf
mkdir -p %{buildroot}/etc/tempest
mv %{buildroot}/usr/etc/tempest/* %{buildroot}/etc/tempest
%check
export OS_TEST_PATH='./tempest/tests'
export PATH=$PATH:$RPM_BUILD_ROOT/usr/bin
export PYTHONPATH=$PWD
stestr --test-path $OS_TEST_PATH run
%if 0%{?with_python3}
rm -rf .stestr
stestr-3 --test-path $OS_TEST_PATH run
%endif
%files
%license LICENSE
%doc README.rst
%{_bindir}/tempest
%{_bindir}/check-uuid
%{_bindir}/skip-tracker
%{_bindir}/subunit-describe-calls
%{_bindir}/tempest-account-generator
%{_bindir}/verify-tempest-config
%{_sysconfdir}/%{project}/*sample
%{_sysconfdir}/%{project}/*yaml
%config(noreplace) %{_sysconfdir}/%{project}/*.conf
%files -n python2-%{project}
%license LICENSE
%{python2_sitelib}/%{project}
%{python2_sitelib}/%{project}*.egg-info
%exclude %{python2_sitelib}/tempest/tests
%files -n python2-%{project}-tests
%license LICENSE
%{python2_sitelib}/tempest/tests
%if 0%{?with_python3}
%files -n python3-%{project}
%license LICENSE
%{python3_sitelib}/%{project}
%{python3_sitelib}/%{project}*.egg-info
%exclude %{python3_sitelib}/tempest/tests
%files -n python3-%{project}-tests
%license LICENSE
%{python3_sitelib}/tempest/tests
%endif
%if 0%{?with_doc}
%files -n %{name}-doc
%doc doc/build/html
%license LICENSE
%endif
%changelog
* Thu May 27 2021 openstack-sig <openstack@openeuler.org>
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。