diff --git a/README.en.md b/README.en.md index 561988e1fae1adc668a55638b41349439349799b..75c63632611cfc742d847b14b0a75888ed601732 100644 --- a/README.en.md +++ b/README.en.md @@ -1,3 +1,36 @@ # python-tempest -OpenStack services are exclusively released in the openEuler LTS version. Please refer to other Multi-Version branches for the Spec source code. \ No newline at end of file +#### Description +OpenStack Testing (Tempest) of an existing cloud. + +#### Software Architecture +Software architecture description + +#### Installation + +1. xxxx +2. xxxx +3. xxxx + +#### Instructions + +1. xxxx +2. xxxx +3. xxxx + +#### Contribution + +1. Fork the repository +2. Create Feat_xxx branch +3. Commit your code +4. Create Pull Request + + +#### Gitee Feature + +1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md +2. Gitee blog [blog.gitee.com](https://blog.gitee.com) +3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) +4. The most valuable open source project [GVP](https://gitee.com/gvp) +5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) +6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md index 69365e8597aeeea7f453060e357866e95877e2c5..da94c233023557bd9a13cb867934818d7ce88422 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,37 @@ # python-tempest -openstack服务只在openEuler LTS版本发布,Spec源码请参考其他Multi-Version分支。 \ No newline at end of file +#### 介绍 +OpenStack Testing (Tempest) of an existing cloud. + +#### 软件架构 +软件架构说明 + + +#### 安装教程 + +1. xxxx +2. xxxx +3. xxxx + +#### 使用说明 + +1. xxxx +2. xxxx +3. xxxx + +#### 参与贡献 + +1. Fork 本仓库 +2. 新建 Feat_xxx 分支 +3. 提交代码 +4. 新建 Pull Request + + +#### 特技 + +1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md +2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) +3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 +4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 +5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) +6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/openstack-tempest.spec b/openstack-tempest.spec new file mode 100644 index 0000000000000000000000000000000000000000..244864c3d800e96935446c032bf02862774fb151 --- /dev/null +++ b/openstack-tempest.spec @@ -0,0 +1,196 @@ +%global project tempest +%{!?upstream_version: %global upstream_version %{version}%{?milestone}} +%global with_doc 0 +%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. + +Name: openstack-%{project} +Version: 34.1.0 +Release: 1 +Summary: OpenStack Integration Test Suite (Tempest) +License: ASL 2.0 +Url: https://launchpad.net/tempest +Source0: http://tarballs.openstack.org/tempest/tempest-%{upstream_version}.tar.gz +# Required for tarball sources verification +BuildArch: noarch + +# Required for tarball sources verification + +BuildRequires: git-core +BuildRequires: python3-oslo-config +BuildRequires: python3-pbr +BuildRequires: python3-setuptools +BuildRequires: python3-devel +BuildRequires: openstack-macros + +Requires: python3-tempest = %{version}-%{release} + +%description +%{common_desc} + +%package -n python3-%{project} +Summary: Tempest Python library + +%{?python_provide:%python_provide python3-%{project}} + +# Obsoletes python-tempest-lib to avoid breakage +# during upgrade from Newton onwards to till this +# release +Obsoletes: python-tempest-lib + +Requires: python3-cliff >= 2.8.0 +Requires: python3-debtcollector >= 1.2.0 +Requires: python3-fixtures >= 3.0.0 +Requires: python3-jsonschema >= 3.2.0 +Requires: python3-netaddr >= 0.7.18 +Requires: python3-oslo-concurrency >= 3.26.0 +Requires: python3-oslo-config >= 5.2.0 +Requires: python3-oslo-log >= 3.36.0 +Requires: python3-oslo-serialization >= 2.18.0 +Requires: python3-oslo-utils >= 3.33.0 +Requires: python3-os-testr >= 0.8.0 +Requires: python3-paramiko >= 2.7.0 +Requires: python3-pbr >= 2.0.0 +Requires: python3-prettytable >= 0.7.1 +Requires: python3-six >= 1.10.0 +Requires: python3-stevedore >= 1.20.0 +Requires: python3-stestr +Requires: python3-testtools +Requires: python3-urllib3 +Requires: python3-subunit + +Requires: python3-unittest2 >= 1.1.0 +Requires: python3-yaml >= 3.12 + +%description -n python3-%{project} +%{common_desc} + +This package contains the tempest python library. + +%package -n python3-%{project}-tests +Summary: Python Tempest tests +Requires: python3-tempest = %{version}-%{release} + +BuildRequires: python3-mock +BuildRequires: python3-oslotest +BuildRequires: python3-subunit +BuildRequires: python3-oslo-log +BuildRequires: python3-jsonschema +BuildRequires: python3-urllib3 +BuildRequires: python3-oslo-concurrency +BuildRequires: python3-paramiko +BuildRequires: python3-cliff +BuildRequires: python3-pycodestyle +BuildRequires: python3-os-testr +BuildRequires: python3-stestr +BuildRequires: python3-defusedxml +BuildRequires: python3-PyYAML + + +Requires: python3-mock +Requires: python3-oslotest + +%description -n python3-%{project}-tests +%{common_desc} + +%if 0%{?with_doc} +%package -n %{name}-doc +Summary: %{name} documentation + +BuildRequires: python3-sphinx +BuildRequires: python3-openstackdocstheme +# BuildRequires: python3-sphinxcontrib-rsvgconverter + +%description -n %{name}-doc +%{common_desc} + +It contains the documentation for Tempest. +%endif + +%prep +%autosetup -n tempest-%{upstream_version} +# 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 +%{py3_build} + +%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 PYTHONPATH=. +export GENERATE_TEMPEST_PLUGIN_LIST='False' +sphinx-build -b html doc/source doc/build/html +# remove the sphinx-build leftovers +rm -rf doc/build/html/.{doctrees,buildinfo} +%endif + +%install +%{py3_install} + +# 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 +rm -f $OS_TEST_PATH/test_hacking.py +PYTHON=%{__python3} stestr --test-path $OS_TEST_PATH run + +%files +%license LICENSE +%doc README.rst +%{_bindir}/tempest +%{_bindir}/check-uuid +%{_bindir}/skip-tracker +%{_bindir}/subunit-describe-calls +%{_sysconfdir}/%{project}/*sample +%{_sysconfdir}/%{project}/*yaml +%config(noreplace) %{_sysconfdir}/%{project}/*.conf + +%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 + +%if 0%{?with_doc} +%files -n %{name}-doc +%doc doc/build/html +%license LICENSE +%endif + +%changelog +* Thu Apr 11 2024 zhengting - 34.1.0-1 +- Upgrade package to version 34.1.0 + +* Thu Jun 16 2022 OpenStack_SIG - 30.1.0-1 +- Upgrade version for openstack yoga + +* Fri Jul 23 2021 liksh 1:27.0.0-1 +- Update to 27.0.0 + diff --git a/tempest-34.1.0.tar.gz b/tempest-34.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c27dedf60e0732b10bc86bb6c2ff93885fdacaae Binary files /dev/null and b/tempest-34.1.0.tar.gz differ