Merge ~aciba/ubuntu/+source/python-botocore:add-tests into ubuntu/+source/python-botocore:ubuntu/devel

Proposed by Alberto Contreras
Status: Merged
Merged at revision: 8c68fbf6708343c90abf358c2dee8b4b8cd547d3
Proposed branch: ~aciba/ubuntu/+source/python-botocore:add-tests
Merge into: ubuntu/+source/python-botocore:ubuntu/devel
Diff against target: 81 lines (+38/-2)
3 files modified
debian/changelog (+9/-0)
debian/control (+7/-1)
debian/rules (+22/-1)
Reviewer Review Type Date Requested Status
Paride Legovini (community) Approve
git-ubuntu import Pending
Review via email: mp+464419@code.launchpad.net

Commit message

add tests

To post a comment you must log in.
Revision history for this message
Alberto Contreras (aciba) wrote :
Revision history for this message
Alberto Contreras (aciba) wrote :
Revision history for this message
Paride Legovini (paride) :
review: Approve
Revision history for this message
Paride Legovini (paride) wrote :

Uploading python-botocore_1.34.46+repack-1ubuntu1.dsc
Uploading python-botocore_1.34.46+repack-1ubuntu1.debian.tar.xz
Uploading python-botocore_1.34.46+repack-1ubuntu1_source.buildinfo
Uploading python-botocore_1.34.46+repack-1ubuntu1_source.changes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 3884784..659c9d6 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,12 @@
6+python-botocore (1.34.46+repack-1ubuntu1) noble; urgency=medium
7+
8+ * d/control: add build dependencies for unit testing and
9+ disable tests that require internet
10+ * d/rules: enable unit tests during build
11+ * d/control: add autopkgtest-pkg-pybuild
12+
13+ -- Alberto Contreras <alberto.contreras@canonical.com> Tue, 16 Apr 2024 15:49:10 +0200
14+
15 python-botocore (1.34.46+repack-1) unstable; urgency=medium
16
17 * New upstream version 1.34.46+repack
18diff --git a/debian/control b/debian/control
19index 1658321..38b045b 100644
20--- a/debian/control
21+++ b/debian/control
22@@ -1,18 +1,24 @@
23 Source: python-botocore
24 Section: python
25 Priority: optional
26-Maintainer: Debian Cloud Team <debian-cloud@lists.debian.org>
27+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
28+XSBC-Original-Maintainer: Debian Cloud Team <debian-cloud@lists.debian.org>
29 Uploaders: TANIGUCHI Takaki <takaki@debian.org>,
30 Noah Meyerhans <noahm@debian.org>
31 Build-Depends: debhelper-compat (= 12)
32 , python3-all:any
33 , python3-setuptools
34 , python3-mock
35+ , python3-dateutil
36+ , python3-jmespath
37+ , python3-pytest
38+ , python3-requests
39 , dh-python
40 Standards-Version: 4.6.2
41 Homepage: https://github.com/boto/botocore
42 Vcs-Git: https://salsa.debian.org/cloud-team/python-botocore.git
43 Vcs-Browser: https://salsa.debian.org/cloud-team/python-botocore
44+Testsuite: autopkgtest-pkg-pybuild
45
46 Package: python3-botocore
47 Architecture: all
48diff --git a/debian/rules b/debian/rules
49index 95be7c7..56ba5ce 100755
50--- a/debian/rules
51+++ b/debian/rules
52@@ -5,7 +5,28 @@
53 #export DH_VERBOSE=1
54
55 export PYBUILD_NAME=botocore
56-export PYBUILD_DISABLE=test
57+export PYBUILD_TEST_ARGS={dir}/tests/unit \
58+ --deselect tests/unit/test_credentials.py::TestSSOCredentialFetcher::test_can_fetch_credentials \
59+ --deselect tests/unit/test_credentials.py::TestSSOCredentialFetcher::test_raises_helpful_message_on_unauthorized_exception \
60+ --deselect tests/unit/test_credentials.py::TestSSOProvider::test_load_sso_credentials_with_cache \
61+ --deselect tests/unit/test_credentials.py::TestSSOProvider::test_load_sso_credentials_with_cache_expired \
62+ --deselect tests/unit/test_credentials.py::TestSSOProvider::test_load_sso_credentials_without_cache \
63+ --deselect tests/unit/test_credentials.py::TestSSOProvider::test_required_config_not_set \
64+ --deselect tests/unit/test_exceptions.py::TestPickleExceptions::test_dynamic_client_error \
65+ --deselect tests/unit/test_signers.py::TestGenerateUrl::test_context_param_from_event_handler_sent_to_endpoint_resolver \
66+ --deselect tests/unit/test_signers.py::TestGenerateUrl::test_generate_presign_url_emits_is_presign_in_context \
67+ --deselect tests/unit/test_signers.py::TestGenerateUrl::test_generate_presigned_url \
68+ --deselect tests/unit/test_signers.py::TestGenerateUrl::test_generate_presigned_url_emits_param_events \
69+ --deselect tests/unit/test_signers.py::TestGenerateUrl::test_generate_presigned_url_expires \
70+ --deselect tests/unit/test_signers.py::TestGenerateUrl::test_generate_presigned_url_missing_required_params \
71+ --deselect tests/unit/test_signers.py::TestGenerateUrl::test_generate_presigned_url_override_http_method \
72+ --deselect tests/unit/test_signers.py::TestGenerateUrl::test_generate_presigned_url_unknown_method_name \
73+ --deselect tests/unit/test_signers.py::TestGenerateUrl::test_generate_presigned_url_with_query_string \
74+ --deselect tests/unit/test_signers.py::TestGeneratePresignedPost::test_generate_presigned_post \
75+ --deselect tests/unit/test_signers.py::TestGeneratePresignedPost::test_generate_presigned_post_expires \
76+ --deselect tests/unit/test_signers.py::TestGeneratePresignedPost::test_generate_presigned_post_non_s3_client \
77+ --deselect tests/unit/test_signers.py::TestGeneratePresignedPost::test_generate_presigned_post_with_filename \
78+ --deselect tests/unit/test_signers.py::TestGeneratePresignedPost::test_generate_presigned_post_with_prefilled
79
80 %:
81 dh $@ --with python3 --buildsystem=pybuild

Subscribers

People subscribed via source and target branches