Commit Graph

1019 Commits

Author SHA1 Message Date
Takashi Kajinami 5c900d4ab5 Bump hacking
hacking 3.0.x is too old.

Also remove the note about very old pip's behavior.

Change-Id: I6d2d180a9ec80664efae498f86a4d1f734aacfa5
2024-02-02 12:42:02 +00:00
Zuul a603cb4df7 Merge "Storage URIs should be secret" 2024-01-11 08:15:49 +00:00
Zuul 69ca2a7854 Merge "swift: Fix ignored *_domain_name options" 2024-01-09 03:59:49 +00:00
Zuul 3865aebd4b Merge "Imported Translations from Zanata" 2024-01-03 19:01:02 +00:00
wanghao 52c06346ef Support asymmetric encryption RSA
Change-Id: I758cf8a1b1260da060c13538c26f2c39d48d12a8
2024-01-02 09:36:18 -08:00
Takashi Kajinami 355e1d8fcc swift: Fix ignored *_domain_name options
The *_domain_name options are always ignored because the *_domain_id
options have the default values. This moves the default definition from
id options to name options so that setting the *_domain_name options
work.

Change-Id: I124a81c8eca2392916bb3ec638bb9ae61d5226a2
2024-01-02 10:00:06 +00:00
OpenStack Proposal Bot 333517e796 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I369a332154775ffa66c0c8aaf6a5cfcd141cbfad
2023-12-29 04:20:18 +00:00
Takashi Kajinami 389bd83aaf Storage URIs should be secret
... because these can contain password as its element.

Change-Id: Id570941ee3b02e7b60ca3330c36edb8f0f9f56fc
2023-12-28 03:15:03 +00:00
Corey Bryant 7b4c359f92 Switch to MySQLOpportunisticFixture from test_fixtures
MySQLOpportunisticTestCase was removed in oslo.db 13.0.0[1] and the
MySQLOpportunisticFixture should instead be used.

Also fixed bindep so that it works in Debian 12.

[1] a609333c5482228ee69baab91858e1812909cd55

Closes-Bug: #2038473
Change-Id: I56f7e055876204940bc65cc6309c3481b22c1c6c
2023-12-27 10:11:28 -08:00
hwang 51350eabbe Fix ci broken for Debian 12
Change-Id: I82b6fcccb99e01b0790a4037d9c3dff0a5f1c99f
2023-12-20 12:19:50 -08:00
Zuul 169d917c3e Merge "Change StrictRedis usage to Redis" 2023-08-21 18:54:14 +00:00
Zuul e7c022e085 Merge "Use processutils to fix TypeError in subprocess" 2023-08-21 17:39:15 +00:00
Xing Zhang e0937b1f09
Use processutils to fix TypeError in subprocess
Calling processutils.execute() other than subprocess to
fix bytes-like and str issue in python3.

Closes-bug: #2029392
Change-Id: I16436aa19da2cf53951c9ad27bca14033194651a
2023-08-21 00:09:40 +08:00
hwang ef62a26dc4 fix the gateway CI error
Change-Id: I346e829b8c68f2f5444e098c36c7f0c7a32f6fb9
2023-08-16 10:41:25 -07:00
Erik Olof Gunnar Andersson 4585b84224 Revert "Refactor Zaqar to satisfy openstack uwsgi goal"
This reverts commit 5a7636786e.

Reason for revert: We do not handle href links properly and this breaks other services depending on Zaqar.

Change-Id: I5fb0f2f25c280dd69cfb99d9f9b320df552462dc
2023-03-27 15:54:51 +00:00
Tobias Urdin 928dfc618e Change StrictRedis usage to Redis
The StrictRedis class is only an alias for
Redis in >= 3.0.0

Change-Id: I5136852af5d0b4dc3542948a4114e06f0e4a0060
2023-03-10 21:03:42 +00:00
wander.way 5a7636786e Refactor Zaqar to satisfy openstack uwsgi goal
After this change, Zaqar-wsgi will not be forced to port 8888 by
devstack. Use apache proxy now and the endpoint will be like:
http://IP/messaging by default.

Change-Id: I413cd24a9ef70a8bbada46d63d5dfdff09366b3e
2023-03-10 10:15:16 +08:00
Zuul 21af2e2223 Merge "Replace abc.abstractproperty with property and abc.abstractmethod" 2023-01-28 03:10:58 +00:00
OpenStack Release Bot 8049697fc9 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I29fcb9afa016b1321b0b4c0118a8d7ffbc00b02e
2023-01-21 09:29:14 +08:00
ljhuang c9c8a0e717 Replace abc.abstractproperty with property and abc.abstractmethod
Replace abc.abstractproperty with property and abc.abstractmethod,
as abc.abstractproperty has been deprecated since python3.3[1]

[1]https://docs.python.org/3.8/whatsnew/3.3.html?highlight=deprecated#abc

Change-Id: If6204796a34031551817191d0ea602011f60de9a
2022-08-03 20:35:27 +08:00
wanghao 2abee24a02 Add python3.8 requirement
According to the QA's request[1], we should drop the python3.6
support in Zed cycle, and add the requirement to python3.8.

[1]:http://lists.openstack.org/pipermail/openstack-discuss/2022-April/028321.html

Change-Id: I772621f28d723c88e227edd3b540ce133ea3feb2
2022-05-09 09:41:05 +08:00
Xing Zhang 2abe46ae21 Update json module to jsonutils
oslo project provide jsonutils, the others project use it
this PS to update the json moudule to oslo jsonutils.

Closes-bug: #1966401
Change-Id: I9cbe9f03c32e4f42822def727aa2871d502641f4
2022-03-28 09:59:26 +00:00
melissaml 963ef01c6f [Part 10] Remove all usage of six library
We don't need this in a Python 3-only world.

Remove six in follows:
1. lower-constraints.txt
2. requirements.txt
3. zaqar/bench/observer.py
4. zaqar/common/api/api.py
5. zaqar/common/api/request.py
6. zaqar/common/api/response.py
7. zaqar/common/pipeline.py
8. zaqar/common/storage/select.py

Change-Id: I8669061e00fd929c24e62ce9fd4ba31aab63e0d4
2022-01-27 09:27:01 +08:00
wanghao 0f6ddd5709 Fix tempest error
pymongo has removed the ensure_index since 4.0.0.
So we need to update ensure_index to create_index
Fix the error that couldn't create subscription sucessfully.

Change-Id: Ic27e6e885ec5a575ebc168d91eee761177013b9d
2021-12-14 09:19:27 +08:00
Zuul a7593240cc Merge "[Part9] Remove six" 2021-11-01 09:43:44 +00:00
Zuul 5ec4277546 Merge "[Part12] Remove six" 2021-10-11 07:08:24 +00:00
Zuul 8f0b092449 Merge "[Part11] Remove six" 2021-10-11 07:08:22 +00:00
Zuul 628694282c Merge "[Part8] Remove six" 2021-09-27 08:14:38 +00:00
Zuul 4d20fa2afd Merge "[Part7] Remove six" 2021-09-24 09:15:17 +00:00
Zuul 641465f98e Merge "[Part6] Remove six" 2021-09-23 14:25:14 +00:00
Zuul dac4066c95 Merge "[Part5] Remove six" 2021-09-15 02:13:34 +00:00
Zuul 0425dbee5e Merge "[Part4] Remove six" 2021-09-15 02:13:32 +00:00
Zuul c7d9976e15 Merge "[Part3] Remove six" 2021-09-09 01:54:51 +00:00
Zuul 82e6714627 Merge "[Part2] Remove six" 2021-09-07 08:32:35 +00:00
Zuul 0db5db2712 Merge "Replace deprecated import of ABCs from collections" 2021-08-19 01:44:03 +00:00
Zuul 347175dc26 Merge "Replace deprecated arguments of RequestContext" 2021-08-18 09:05:33 +00:00
Zuul fd9be40964 Merge "Stop to use the __future__ module." 2021-08-18 02:48:04 +00:00
Takashi Kajinami 676207f838 Replace deprecated arguments of RequestContext
The following arguments of the RequestContext class are deprecated
since oslo.context 2.18[1].
 user          : renamed to user_id
 tenant        : renamed to project_id
 domain        : renamed to domain_id
 user_domain   : renamed to user_domain_id
 project_domain: renamed to project_domain_id

Change-Id: I29d901a8fa96acf55dc53f826a501a3109c0c7af
2021-07-23 00:26:16 +09:00
Takashi Kajinami 24538768a6 Replace deprecated import of ABCs from collections
ABCs in collections should be imported from collections.abc and direct
import from collections is deprecated since Python 3.3.

Closes-Bug: #1936667
Change-Id: I60679f9e78e91bce1145d899332e871dd62d3a9c
2021-07-17 12:26:36 +09:00
Zuul 6e6deabc9f Merge "Decode bytes to strings" 2021-05-20 01:39:30 +00:00
ZijianGuo 2f7507500a Decode bytes to strings
Change-Id: I6c8a4b2c9b62ca2d1c11aa633ad2389786216162
Signed-off-by: ZijianGuo <guozijn@gmail.com>
2021-05-19 10:15:22 +08:00
wanghao db6a6b4908 Update swift client in Zaqar
Change-Id: I5af660388509f716adbe9e2ed9246b8dccdc6fd5
2021-05-18 15:39:31 +08:00
Zuul fd93478ac7 Merge "Support extra specs to subscription confirming" 2021-03-26 12:37:02 +00:00
wanghao 8e17ad34fd Update the requirement of oslo db
Change-Id: I97baabf273991f2221e0c97816432eb751b5f48f
2021-03-26 08:57:45 +08:00
wanghao 9b6edcf6ca Support extra specs to subscription confirming
Introduce "EXTRA-SPEC" request header to handling
the extra information when confirming subscription.
Developer could extend the tasks to support more functions.
User needs to specify the task name in value of "EXTRA-SPEC".

Change-Id: I9bca9a772d0f5a37c0d780c320ea2307c745a1e8
Implements: blueprint support-extra-specs-to-subscription-confirming
2021-03-17 17:47:45 +08:00
Zuul 6b6d90c3b7 Merge "Imported Translations from Zanata" 2021-03-12 06:56:15 +00:00
Ghanshyam Mann 948e88c268 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: I595b8c7cad7bb02486c8f0dd29fdc40789fc8e50
2021-02-17 00:58:28 +00:00
OpenStack Proposal Bot 8a457497d8 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I072ef69111e6d7f66d19df88d86f8b20dbb71be2
2021-01-15 10:09:10 +00:00
Sean McGinnis d949c970ad Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I5f86837c601eb64dff3c370decd2670f2a6276b6
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2021-01-13 09:05:59 +08:00
melissaml 231c841f0f [Part12] Remove six
We don't need this in a Python 3-only world.
Remove six in follows:mport six
1. zaqar/storage/utils.py
2. zaqar/tests/functional/base.py
3. zaqar/tests/functional/http.py
4. zaqar/tests/functional/wsgi/v1/test_queues.py
5. zaqar/tests/functional/wsgi/v1_1/test_queues.py
6. zaqar/tests/helpers.py

Change-Id: I5bb806fd544bd10c7c6e561ef0eeffd6986897f0
2020-10-28 11:19:26 +08:00