Merge "Create tests package for keystone and glance"

This commit is contained in:
Zuul 2018-06-25 12:28:09 +00:00 committed by Gerrit Code Review
commit 760b9b0c3e
2 changed files with 43 additions and 4 deletions

View File

@ -141,6 +141,24 @@ OpenStack Swift project.
This package contains the Glance Python library.
%package -n python3-{{ pypi_name }}-tests
Summary: Glance tests
Requires: openstack-{{ pypi_name }} = %{epoch}:%{version}-%{release}
Provides: python-glance-tests = %{epoch}:%{version}-%{release}
%description -n python3-{{ pypi_name }}-tests
The Glance project provides a service where users can upload and discover
data assets that are meant to be used with other services. This currently
includes images and metadata definitions.
Glance image services include discovering, registering, and retrieving
virtual machine images. Glance has a RESTful API that allows querying of
VM image metadata as well as retrieval of the actual image.
VM images made available through Glance can be stored in a variety of
locations from simple filesystems to object-storage systems like the
OpenStack Swift project.
This package contains the Glance test files.
%if 0%{?with_doc}
%package doc
Summary: Documentation for OpenStack Image Service
@ -183,7 +201,7 @@ This package contains the documentation.
%package api
Summary: OpenStack Image service (Glance) - API
Group: Development/Languages/Python
Requires: python3-{{ pypi_name }} = %{epoch}:%{version}-%{release}
Requires: %{name} = %{epoch}:%{version}-%{release}
%description api
The Glance project provides a service where users can upload and discover
@ -344,6 +362,11 @@ OS_TEST_PATH=./glance/tests/unit PYTHONPATH=. stestr-3 run
%defattr(-,root,root,-)
%license LICENSE
%{python3_sitelib}/{{ pypi_name }}*
%exclude %{python3_sitelib}/glance/tests
%files -n python3-{{ pypi_name }}-tests
%license LICENSE
%{python3_sitelib}/{{ pypi_name }}/tests
%if 0%{?with_doc}
%files doc

View File

@ -119,6 +119,17 @@ Keystone is a Python implementation of the OpenStack
(http://docs.openstack.org/developer/keystone/) identity service API.
This package contains the Keystone Python library.
%package -n python3-{{ pypi_name }}-tests
Summary: Keystone tests
Requires: openstack-{{ pypi_name }} = %{epoch}:%{version}-%{release}
Provides: python-keystone-tests = %{epoch}:%{version}-%{release}
%description -n python3-{{ pypi_name }}-tests
Keystone is a Python implementation of the OpenStack
(http://docs.openstack.org/developer/keystone/) identity service API.
This package contains the Keystone test files.
%package doc
Summary: Documentation for OpenStack Identity Service
Group: Documentation/HTML
@ -242,9 +253,9 @@ stestr-3 run --black-regex keystone.tests.unit.test_policy.GeneratePolicyFileTes
%config(noreplace) %attr(0640, keystone, keystone) %{_sysconfdir}/keystone/keystone.policy.yaml
%config(noreplace) %attr(0640, keystone, keystone) %{_sysconfdir}/keystone/sso_callback_template.html
%config(noreplace) %{_sysconfdir}/logrotate.d/openstack-keystone
%dir %attr(0750, %{keystone}, %{keystone}) %{_localstatedir}/lib/keystone
%dir %attr(0750, %{keystone}, %{keystone}) %{_localstatedir}/log/keystone
%dir %attr(0750, %{keystone}, %{keystone}) %{_localstatedir}/cache/keystone
%dir %attr(0750, keystone, keystone) %{_localstatedir}/lib/keystone
%dir %attr(0750, keystone, keystone) %{_localstatedir}/log/keystone
%dir %attr(0750, keystone, keystone) %{_localstatedir}/cache/keystone
%{_sysconfdir}/sysctl.d/openstack-keystone.conf
%files -n python3-keystone
@ -253,6 +264,11 @@ stestr-3 run --black-regex keystone.tests.unit.test_policy.GeneratePolicyFileTes
%license LICENSE
%{python3_sitelib}/keystone*
%{python3_sitelib}/keystone-*.egg-info
%exclude %{python3_sitelib}/{{ pypi_name }}/tests
%files -n python3-{{ pypi_name }}-tests
%license LICENSE
%{python3_sitelib}/{{ pypi_name }}/tests
%files doc
%license LICENSE