Commit Graph

257 Commits

Author SHA1 Message Date
Zuul da08470122 Merge "Bump hacking" 2024-01-29 19:32:34 +00:00
Takashi Kajinami 11f5b251de Bump hacking
hacking 3.0.x is too old.

Change-Id: I0ee959e9bf74f95e76ac5d1a58a44d21b7182b63
2024-01-28 17:01:32 +09:00
Zuul 2220d88867 Merge "Remove six" 2024-01-28 07:27:16 +00:00
Hervé Beraud c40f0cc32b Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I95e8d9564cda2e6a06a3f40b0de6991acb07dd4c
2024-01-27 00:26:23 +09:00
Takashi Kajinami e0fe706ff2 Remove six
Because this library no longer supports Python 2, usage if six is not
needed.

Change-Id: Ib13170ad442dd486c939178f66af66c6f6f7288b
2024-01-17 18:00:03 +09:00
ZijianGuo 27a628f03b Fix the error of parameter passing
Change-Id: Ia32c2262d4d871c31b141c23e8f49bade7720a8a
Signed-off-by: ZijianGuo <guozijn@gmail.com>
2020-07-08 17:09:40 +08:00
Andreas Jaeger d7c3cb9799 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I3062215fcfc2e448e0f29402104496f80945aeee
2020-04-28 07:45:21 +02:00
wanghao 4abbe7b451 Fix the count error in zaqarclient
now count number didn't show in the result. Fix this bug.

Change-Id: I87788bf4b992e36119e8432d76ccaf66328cce42
2020-02-24 18:07:35 +08:00
wanghao 6e9a5b59fe Support query queues with count
Zaqar will support query queues with '--with_count' to
return the amount of the queues. This will help users to
quickly get the exact total number of queues which they own.

Change-Id: Iced54e7d270e389a23db2a19394025710565923d
Implements: blueprint query-queues-with-count
Signed-off-by: wanghao <sxmatch1986@gmail.com>
2020-02-12 10:08:01 +08:00
gecong1973 4504a6f97f Remove pool group totally in zaqarclient
The path remove pool group totally in client
Implements: bp remove-pool-group-totally

Co-Authored-By: wanghao <sxmatch1986@gmail.com>

Change-Id: I0604ad8c55127027aa238a2e8388bb046a93e8a9
2019-08-21 14:26:14 +02:00
Thomas Herve 13e90a0ab5 Properly pass the CA to requests
We store the CA in request.cert, but it's not compatible with a cert. To
pass the CA to requests, we need to set the verify argument.

Change-Id: Id0f39e3253b1486db8ae2da3d7dc6c0fdb41062a
2018-10-04 15:00:22 +02:00
wanghao 792a6d0ff1 Replace os-client-config to openstacksdk
Since now os-client-config has been superceded by openstacksdk[1].
So need to replace the os-client-config in zaqarclient to
slove the issue that 'No module named os_client_config'.

[1]:https://docs.openstack.org/os-client-config/latest/

Change-Id: I19bee5f276dcdd9a885fd99b6b656647e28ba139
2018-07-25 11:32:27 +08:00
xywang 06f40b8beb Fix doc CI failure
Change-Id: Ie7fa0d9882821273c9f0a2bdf3609260743804de
2018-06-11 15:57:39 +08:00
yangzhenyu c6e6339f69 Fix zuul check failure at legacy-zaqarclient-dsvm-functional
Zaqarclient has been affected by the new patch about dead letter metadata:
https://review.openstack.org/#/c/550395/
So this patch is to fix the problem.

Change-Id: I2c150c185c24d2e51c2f16d89c55b9acbfb99b8e
2018-03-25 14:46:04 +08:00
yangzhenyu 82b3022e24 Support client of bp support-md5-of-body
Implement blueprint support-md5-of-body
Change-Id: Ia0062925e0157e62cc5a5d01fc6b5bbe353b883e
2018-01-31 08:41:03 +00:00
rabi fd7a02588d Add checksum to message __init__()
c6bf0333631cd648108b5c3eb71fd12309f55457 has broken puthon-zaqarclient.

Change-Id: I622affb0473643ca9eee45fe2d4ba6ab169d07b7
Closes-Bug: #1746226
2018-01-30 17:02:25 +05:30
yangzhenyu c1689bf02c Support client for delayed queues
Implement blueprint delayed-queues
Change-Id: Iabb56212535fa4d7a3f4444b285c4034b65352f6
2018-01-16 20:22:03 +08:00
yangzhenyu 927d29d5f7 Update queue metadata test
Since implement the delay queues feature, the zaqarclient related ut
should be updated.

Change-Id: I1938cd16a24cc00e15fbf3539ae31ff1da8d6f67
2018-01-09 15:17:33 +08:00
rabi 299699f7ce Add claim_count to message __init__()
Zaqar commit 66537dd067a6cf5c43597a7c31625be0ce145a83 has added
claim_count to the message object, but it's not taken care in the
client.

Change-Id: I0acdefe4ba745f99443830b16110e51c14c201a7
Closes-bug: #1736062
2017-12-04 10:05:26 +05:30
yangzhenyu cbfc28fa48 Update queue metadata failed when the original value is zero.
Such as the problem, the current set or update the queue of metadata, it
may fail.

The reproduction steps are as follows:

- Set or update the metadata to 0 (some metadata can be zero).
- And then update it again will fail (always 0), because 0 was filter by
  client.

Closes-Bug: #1729193
Change-Id: I4e3c4aa3634ba33e4e9501c6c27bac77c0e43ea8
2017-11-01 12:46:01 +08:00
wangxiyuan d0fd8bc246 Fix functional CI failure
Keystone now close V2 API by default. We should
move our test to keystone v3.

Change-Id: I9e553a614654aa53a0209ae056946827f1e2e830
2017-10-31 11:10:32 +08:00
Jenkins 46a708bb1a Merge "Fix class Queue __init__ method's param note" 2017-09-01 02:55:22 +00:00
gengchc2 da67ae1c0a Fix renew claim NoneType error
when claim renew , client return " 'NoneType' object is not iterable"
this patch fix it.

Change-Id: I291e85484e755f3d4a892398f03775284dbc22dd
2017-07-28 20:02:41 -07:00
Jenkins b6d59fc773 Merge "Fix query claim NoneType error" 2017-07-27 09:38:36 +00:00
gecong1973 8f07c291b5 Fix class Queue __init__ method's param note
Add missing href and metadata param note

Change-Id: I437c7ee197d556833ede0eb1331d6c3e345e18cf
2017-07-27 09:27:37 +00:00
Jenkins 02d8c1845f Merge "Replace uuid.uuid4() with uuidutils.generate_uuid()" 2017-07-25 01:48:37 +00:00
gecong1973 1bf03ee890 Fix query claim NoneType error
when claim query , client return " 'NoneType' object is not iterable"
this patch fix it.

Change-Id: I8f897943153770c5bdf11854907e5da259ca4010
2017-07-20 10:58:11 +00:00
rajat29 0d8c0c3f9c Replace uuid.uuid4() with uuidutils.generate_uuid()
Openstack common has a wrapper for generating uuids.
We should use that function to generate uuids for consistency.

Change-Id: I2c31de4566fd4ca1f4c9a0df4403538b00621859
2017-07-20 15:06:41 +05:30
wanghao fa88a03b3b Fix the inconsistent command format in openstackclient
Change zaqarclient command to keep the same format,
the consistent command format is 'openstack messaging XXX'.

DocImpact

Change-Id: I87302d016915fd7c861b0a7a542a23ae3685443e
Closes-Bug: #1691637
2017-07-03 14:47:01 +08:00
gecong1973 84af8ee243 Add ZaqarClient "set metadata" help message
ZaqarClient does a full replacement when "set metadata", add help
message to avoid misleading.

Change-Id: I7ea8195a8786e0e530f5ffa9207be752a1eb0577
2017-07-03 03:05:08 +00:00
Jenkins 9c83beb5d0 Merge "Fix the creation issue when special meanings words in queue name" 2017-06-21 01:27:02 +00:00
wanghao 8e55b55f3a Fix the creation issue when special meanings words in queue name
Now when using zaqarclient to create a queue with some special
meanings words like '#' and '%', then cli will return the queue
with the name has created successfully, but in zaqar server side,
the name is not as same as the client side.

Change-Id: Ia776bb4f7253b1698ec97702e0fc69704b97ed7e
Closes-Bug: #1584639
2017-06-20 16:30:32 +08:00
yangzhenyu dd79c475a2 Add subscription other properties
Add subscription properties like 'age' and 'confirmed',
I think these properties is very important for user.

Change-Id: I55d180fd53cab08c1ebab5a397fb386af407e20d
2017-06-18 13:33:38 +08:00
wanghao 5eea275769 CLI: support homedoc in client
Support to display the detailed resource doc of
Zaqar server.

Change-Id: If5281c1f9ffc1399f8a8a04124209282ee5049f0
Closes-Bug: #1683250
2017-05-17 14:18:43 +08:00
Jenkins 6f8384e2b5 Merge "CLI: support detailed in queue list" 2017-04-10 03:29:50 +00:00
Jenkins da3f98c9f8 Merge "Remove log translations" 2017-04-10 03:00:11 +00:00
Jenkins 5769f97e29 Merge "Drop "os" prefix for project id" 2017-04-10 03:00:04 +00:00
wanghao bd190e8585 CLI: support detailed in queue list
Support detailed in queue list in openstackclient.

Change-Id: I0b7c5d40b6e72351d8f114be4e124b76396d7ae9
Closes-Bug: #1679994
2017-04-06 17:09:12 +08:00
Fei Long Wang 79fa9447c7 Fix flavor creation issue with CLI
This issue was introduced by the renaming of pool to pool group. The
parameter name wasn't changed in https://review.openstack.org/#/c/276603/

Closes-Bug: #1679881

Change-Id: Id9de48ff1d687f77c2f4d9e75b66b042e19ad226
2017-04-06 10:49:16 +12:00
Fei Long Wang cbc572fdde Don not show 'capabilities' if not specify '--detailed'
Closes-Bug: #1679892

Change-Id: I1c6d4e4467c16f3a6549a59dd491c06a3af83c0e
2017-04-05 19:52:31 +12:00
Fei Long Wang 96370f27ed Support post and list messages
Allow post and list messages with CLI so that user can easily verify
Zaqar's messaging functions with command line.

Change-Id: Ib1b82917cc67b604e0bf9d94a18763bc79de0f2b
2017-04-05 15:38:59 +12:00
jonnary 92173defa2 Add 'pool' description to pool flavor commands
Now we only have 'pool' description in pool flavor create.
This patch adds this description to other pool flavor commands.
This will help users understanding this is a pool flover.

Change-Id: I9423e42f8b8222fa25d6a73db9e0bdafb20248f8
2017-04-01 15:25:12 +08:00
Jenkins e9d8d6df1e Merge "Remove "detailed" parser from subscription list" 2017-03-31 19:04:08 +00:00
daohanli f96c60abac Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I9f92efe62047f0a04d98e1b2d1ceb9e1c7846846
2017-03-21 23:25:29 +08:00
wangxiyuan 977414d058 Drop "os" prefix for project id
Keystone session now returns project id without "os" prefix.
We should drop it as well.

Closes-bug: #1668830
Change-Id: I4ad9d0696c362723c4de7f7283105ba6f396fa96
Co-Authored-By: XueFeng Liu <liu.xuefeng1@zte.com.cn>
2017-03-08 14:24:49 +00:00
Thomas Herve d19198c65e Revert "Fix The header X-PROJECT-ID missing bug"
This reverts commit a0b6a79a3c.

It's not a backward compatible change.

Change-Id: I0a568649e860da58586b9a74917bdc8b6c809bfc
2017-03-07 15:56:36 +00:00
zengjianfang a0b6a79a3c Fix The header X-PROJECT-ID missing bug
This patch fixex X-PROJECT-ID missing bug.

Change-Id: I8c13160f24f51a3f6588aefadae9ef8ff2519e1a
Co-Authored-By: XueFeng Liu <liu.xuefeng1@zte.com.cn>
Closes-Bug: #1668830
2017-03-07 16:23:33 +08:00
Jenkins f2011c19a0 Merge "Support `age` and `confirmed` for subscription" 2017-03-06 09:31:17 +00:00
wangxiyuan 331fa5c44e Remove "detailed" parser from subscription list
Subscription list doesn't support "detailed" parser.

Change-Id: I93b6e85460ffa2cd8935aa49d902a98d0206ead1
2017-03-06 09:49:33 +08:00
Fei Long Wang 70d0becc50 Support `age` and `confirmed` for subscription
Change-Id: Ie3e5774845d1da29ccba160a6b11afbeb6cad7d7
2017-02-24 07:42:07 +13:00