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
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: I3062215fcfc2e448e0f29402104496f80945aeee
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>
The path remove pool group totally in client
Implements: bp remove-pool-group-totally
Co-Authored-By: wanghao <sxmatch1986@gmail.com>
Change-Id: I0604ad8c55127027aa238a2e8388bb046a93e8a9
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
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
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
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
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
Openstack common has a wrapper for generating uuids.
We should use that function to generate uuids for consistency.
Change-Id: I2c31de4566fd4ca1f4c9a0df4403538b00621859
Change zaqarclient command to keep the same format,
the consistent command format is 'openstack messaging XXX'.
DocImpact
Change-Id: I87302d016915fd7c861b0a7a542a23ae3685443e
Closes-Bug: #1691637
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
Add subscription properties like 'age' and 'confirmed',
I think these properties is very important for user.
Change-Id: I55d180fd53cab08c1ebab5a397fb386af407e20d
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
Allow post and list messages with CLI so that user can easily verify
Zaqar's messaging functions with command line.
Change-Id: Ib1b82917cc67b604e0bf9d94a18763bc79de0f2b
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
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>