Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tempest/
Date: Fri, 05 Nov 2021 09:40:05
Message-Id: 1636098276.246ed4cd31b5a34e4338fee8aca5dd7ed7140a28.arthurzam@gentoo
1 commit: 246ed4cd31b5a34e4338fee8aca5dd7ed7140a28
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 5 07:28:34 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 5 07:44:36 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=246ed4cd
7
8 dev-python/tempest: add 29.1.0, partial enable tests
9
10 The test suite is very fragile, even after excluding all service
11 based tests.
12 Disabled those tests, and we remain with most of functional tests
13 (~2100 tests) which check that most of the things works.
14
15 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
16
17 dev-python/tempest/Manifest | 1 +
18 dev-python/tempest/tempest-29.1.0.ebuild | 66 ++++++++++++++++++++++++++++++++
19 2 files changed, 67 insertions(+)
20
21 diff --git a/dev-python/tempest/Manifest b/dev-python/tempest/Manifest
22 index 032f2b8a873..f0e059b357d 100644
23 --- a/dev-python/tempest/Manifest
24 +++ b/dev-python/tempest/Manifest
25 @@ -1 +1,2 @@
26 DIST tempest-29.0.0.tar.gz 1090497 BLAKE2B 520e9de1fc326d9a64d7ab5e93887f3bd455d9c47d29e0774bfb362b1baff6c1dd13fc6df2c756f0e73dd2b33ecb02ea61abdca9ea1ae68474ba53271c6c9e93 SHA512 03049d6cf0e77bac1afafad88b5b0fd22abaa40ed24ffd2c0c989dbadf277c09d703f0d9f7b34f4f68a4b5858b061ea9586ef66e26749b0822af0e426d1b81a7
27 +DIST tempest-29.1.0.tar.gz 1091318 BLAKE2B 152900742fe10beebbcec69e20be35d20e3cd652f309de849ee9306e76d0f9dc6508ee2f66a577f6b85578aafc47ccb42b554b796813d845788b57ea49cf7cf1 SHA512 591018fcd6f0fa6ff9343a2f6c855bcd858ab805d9b28585bbdd05e319af74b833d316b64e88e5a53dfc53d58a247beb625c475ee884cfb60205d0f64bf0ba86
28
29 diff --git a/dev-python/tempest/tempest-29.1.0.ebuild b/dev-python/tempest/tempest-29.1.0.ebuild
30 new file mode 100644
31 index 00000000000..e042bc64305
32 --- /dev/null
33 +++ b/dev-python/tempest/tempest-29.1.0.ebuild
34 @@ -0,0 +1,66 @@
35 +# Copyright 2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +PYTHON_COMPAT=( python3_{8..9} )
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="OpenStack Integration Testing"
44 +HOMEPAGE="https://pypi.org/project/tempest/ https://docs.openstack.org/tempest/latest/"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 +
47 +LICENSE="Apache-2.0"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~x86"
50 +
51 +RDEPEND="
52 + >dev-python/pbr-2.1.0[${PYTHON_USEDEP}]
53 + >dev-python/cliff-2.9.0[${PYTHON_USEDEP}]
54 + >=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}]
55 + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
56 + >=dev-python/paramiko-2.7.0[${PYTHON_USEDEP}]
57 + >=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
58 + >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
59 + >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}]
60 + >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}]
61 + >=dev-python/oslo-utils-4.7.0[${PYTHON_USEDEP}]
62 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
63 + >=dev-python/pyyaml-3.12[${PYTHON_USEDEP}]
64 + >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}]
65 + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
66 + >=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}]
67 + >=dev-python/urllib3-1.21.1[${PYTHON_USEDEP}]
68 + >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
69 +"
70 +BDEPEND="
71 + >dev-python/pbr-2.1.0[${PYTHON_USEDEP}]
72 + test? (
73 + dev-python/hacking[${PYTHON_USEDEP}]
74 + >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
75 + dev-python/stestr[${PYTHON_USEDEP}]
76 + )
77 +"
78 +
79 +distutils_enable_tests unittest
80 +
81 +src_prepare() {
82 + # Small subset of tests, which fail as result of not using specific
83 + # testing environment. Others expect to run suite using stestr.
84 + rm -r tempest/tests/lib/services/volume/v3/ || die
85 + rm tempest/tests/test_list_tests.py || die
86 + rm tempest/tests/lib/cmd/test_check_uuid.py || die
87 +
88 + distutils-r1_src_prepare
89 +}
90 +
91 +python_test() {
92 + distutils_install_for_testing
93 + local -x OS_LOG_CAPTURE=1 OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=320
94 + eunittest -b -s tempest/tests -t .
95 +}
96 +
97 +src_install() {
98 + distutils-r1_src_install
99 + mv "${ED}/usr/etc" "${ED}/etc" || die
100 +}