| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| |
| |
| | |
This patch adds a hacking check for line continuation backslashes and fixes the occurences that existed in the code.
Change-Id: I13cd03e16698b7f1d8036815d12a665bd1156f2f
|
|/
|
|
|
|
|
| |
Co-Authored-By: Michael Johnson <johnsomor@gmail.com>
Change-Id: Iea92371176d9126205384624a18a9097acb3daef
Partial-Bug: #1714088
Depends-On: https://review.opendev.org/#/c/726334/
|
|
|
|
|
|
|
|
|
|
| |
This commit provides an header option (hard-delete) for deletion of
zonefiles on backend as part of zone delete API.
Main patch (in Designate) is:
https://review.opendev.org/c/openstack/designate/+/835317
Change-Id: I0080c028466d809f4f5118fec05d9e46b2dfce84
|
|
|
|
|
|
|
|
|
|
| |
PRIMARY zone type is set by default, so SECONDARY
zones were not included in the command output.
Now all types are in output by default and specific type
can be passed as an argument like before
Closes-Bug: #1940544
Change-Id: Idbba68ebd3f74bde74f0b50ffcb233673dff2303
|
|
|
|
|
|
|
|
| |
Due to a logic error the all-projects header was being set if no
explicit project was being specified.
Closes-Bug: 1980942
Change-Id: I3c492b4ffd1b75a42a6a152b1dea219e4986f411
|
|
|
|
|
|
|
|
|
|
|
|
| |
The zone transfer request set command was missing the
--target-project-id option so you cannot change the target project ID of
a zone transfer request after creation with the CLI.
This option is supported by the API and documented in the API reference
guide.
This patch adds this option.
Closes-Bug: #1977625
Change-Id: Idd570a5aef57c06971db2450fdfb823cf0c07bfd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To be able to create profiling traces for Designate, client should
be able to send special HTTP header that contains trace info.
Don't worry no security issue here, trace information is signed by HMAC
key that is setted in api-paste.ini. So only person that knows HMAC key
is able to send proper header.
Main patch (in Designate) is:
https://review.opendev.org/c/openstack/designate/+/773574
Change-Id: I4b84ac1a5d4f84da3a38e4e0cb0990a54c6044ef
|
|
|
|
|
|
|
|
| |
We currently have no unit test coverage for the
cli (openstack) implementation. This adds some very
basic coverage that we can later expand upon.
Change-Id: Ibf06cfcbf4f7c12957cf5aa0ba8de66e0554f4d0
|
|
|
|
|
|
|
|
|
|
| |
This patch adds the Designate hacking checks to also run against
the Designate client code to maintain consistent style
checking across the Designate repositories.
It also resolves one style check failure.
Change-Id: I09786482b2e7fecaa3d4484c9b1a017fae04cfea
|
|
|
|
|
|
|
|
|
|
|
|
| |
--edit-managed sets a header x-designate-edit-managed-records
that indicates the current request wishes to modify managed records
such as the SOA or NS record created for a zone. This is only used
by the recordset update and delete API methods so can be removed
elsewhere.
Closes-Bug: 1928411
Change-Id: I18bfdae045c8b5e589075865eb024cee4852d8f9
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We had a question about whether the TLD name could be used as the
"id" positional argument when show/set/delete a TLD.
This patch clarifies that names or IDs will work with those commands
in the OpenStack client.
Change-Id: I93952596f3c82ae37d903a8ea4dd8700ae8fc314
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.
We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.
Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]
[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328
Change-Id: I3dadeaa3242d0b55ba891a8eb4abb199a8d2468b
|
|
|
|
|
|
|
|
|
|
| |
This patch removes the use of "six" as the package declares only
python3 support.
It also updates the appdirs lower-constraint to 1.4.0 to support
pip. This version is available on both centos8 and focal.
It also removes the linter related packages from lower-constraints.
Change-Id: I9337f1998749bc40737f2f0e2dcc406b6f3a0ddf
|
|\ |
|
| |
| |
| |
| |
| | |
Change-Id: If7ba1fc9dd3f9d67a49ad3b8ae4c0e0f9733195b
Closes-Bug: 1901172
|
|/
|
|
|
|
|
|
|
| |
We only allow `PRIMARY` and `SECONDARY` zones. Instead of testing for
either one of those two choices later in the code, we can offload this
test to the parser.
Change-Id: I8244e13303646e6686e4233e1edbd2bbc788e054
Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Increase the hacking version in test-requirements to match the
version used in the `designate` project.
This change fixes a few errors that the more recent `pyflakes` flags.
Change-Id: If7afefde0f33161016a27774021d27239c642eb5
Co-Authored-By: Michael Chapman <woppin@gmail.com>
Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
|
|
|
|
|
|
|
|
| |
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: I3be6c40ef61e0334cab860689abbee84f5d19265
|
|
|
|
|
|
|
|
| |
Now that we are py36 or later, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I9582d623727e5853637812083033a348b71551ce
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I01d39252b0be77b035bde175b4045a8cdc859f65
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Class variables get re-used when multiple commands are executed in a row
within a single OSC interactive session. So we need to take a copy
before modifying in order to avoid unwanted side-effects.
Change-Id: I9716014d65a3f649c23eb78faca2cb6dbf5eb5db
Related-Bug: 1844028
|
|/
|
|
|
|
|
|
|
|
|
|
| |
The current zone list function does not check to see if project_id is
already a column to be output when adding it during an --all-projects
list. This causes a duplicate field name to be added which is then
passed to prettytables which subsequently throws an exception. Create a
copy of the columns list so it is not appended to with every
command.
Change-Id: I5f62500086a807d5082221993c3b491f3b6a1db0
Closes-Bug: #1844028
|
|
|
|
|
|
|
| |
The v1 has officially been removed from Designate since
the Queens release, and was deperecated long before that.
Change-Id: Ic5b44761ff939e2b319924af87849b3a79f9cb07
|
|
|
|
|
|
|
| |
oslo project provide jsonutils, and the others use it in many place,
this PS to update the json moudule to oslo jsonutils for consistency.
Change-Id: I8cbf78b0735572f550ece31611258c3da9ae1d35
|
|\ |
|
| |
| |
| |
| |
| | |
Change-Id: I343d9f6bdb3509256191a44e686f24e0ebeb5d22
Closes-Bug: #1762612
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
While process 'designate server-get' and 'designate server-update',
the 'id' and 'update_at' values are wrong, they should be
interchanged.
Change-Id: Ibddf9cc9a018774ed229c0dfa81e705cd74704bc
Closes-Bug: #1777576
|
|/
|
|
|
|
|
|
| |
These seem to have been copied from the blacklist command and don't
make sense for quotas. They also appear in the openstackclient help
output which is confusing.
Change-Id: Ib5d2c0fd7da8cb18e230d84c5f344217ad853da7
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Update Docs and the execption logged to point users to the
openstack cli + v2 client.
Change-Id: Ib08330d348a6a2f0e976ab0df26e91b2d7bd4e13
|
|/
|
|
|
|
|
|
|
|
|
| |
This adds the logic introduced in
I8fefd9d0f104170d50c5d5dc3cbcc53facda9baf to the "recordset set"
command as well.
This helps with the consistancy, and fixes some of the same issues
in the set command.
Change-Id: Ib943ed0eea436ad1a7ad0c3717f0fb6bd6b5b3f0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current implementation has '--records' as a quasi-positional
argument, with the nargs='+' parameter it can only be used at the end of
the command, which is confusing to users and doesn't comply with the
help message.
Add a new option '--record' that takes only exactly one record as
parameter and can be repeated when multiple records are present.
Deprecate the old option so it can be removed in the future.
Change-Id: I8fefd9d0f104170d50c5d5dc3cbcc53facda9baf
Closes-Bug: 1736161
|
|
|
|
|
|
|
|
|
| |
When a RemoteError is created, it is passed the complete content of the
json response from the server. Thus is can happen that it contains
unexpected entries, we should just ignore them.
Change-Id: I2155d1d44432884f19ef926c02b9d0f99ade57d9
Closes-Bug: 1714460
|
|
|
|
|
|
|
|
|
|
| |
This fix adds support for the designate tsig keys api to
python-designateclient.
It will add tsigkey related crud commands to the openstackclient.
Change-Id: I84336c3aca85ca62771fd2115481eda32ee980d2
Closes-Bug: #1702506
|
|
|
|
|
|
|
|
|
|
|
| |
With pbr 2.0 and Sphinx 1.5, the setting for treat sphinx warnings as
errors is setting warning-is-error in build_sphinx section. Migrate the
setting from the old warnerrors one.
This involves a couple of changes to the docs to fix the now broken
build.
Change-Id: I9bee7f6f9c69a9ed7bb22325ad1a0a1316dde526
|
|
|
|
|
|
|
|
|
|
| |
According to PEP 396, the version of client library
should be set in xxxclient.__version__, that help
python-openstackclient command "module list" to get
the right plugin module versions.
Change-Id: I932287726c5b0a8638c6ad72171e98181867d88f
Partial-Bug: #1662058
|
|\ |
|
| |
| |
| |
| |
| |
| | |
also format attributes for cli display
Change-Id: Ia338f607e6d4b70610132ab66e15381981beb038
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Trivial fix.
Change-Id: I0e678649225d58e70db09f6c0acce59d20f48004
|
| |/
|/|
| |
| |
| | |
Change-Id: I811a0f0e3dcc3406ba9a07b0d54788a3241a7cd2
Closes-Bug: #1629222
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The following files added utf-8 encoding but never used. So we can
remove them at all.
designateclient/tests/base.py
designateclient/tests/test_designateclient.py
Change-Id: Id11c8241544ef076c95986bb645cdc6cce652a1c
|
| |
| |
| |
| |
| |
| |
| |
| | |
Header values are strings so we should provide a string as
X-Designate-Edit-Managed-Records header value instead of a boolean
(which is transformed into: "<type 'bool'>" by python-requests).
Change-Id: Iaf248a0e817fe65785ddcdca46663e7273a6dad0
|
|/
|
|
|
|
|
|
|
|
|
| |
tempest-lib has been deprecated since a year. All
the interfaces available in tempest-lib are now available
in tempest/lib.
This patch make use of tempest/lib instead of tempest-lib.
Also add tempest in test-requirements.txt
Change-Id: I6cb50b68631391f0368e8a2e6133f94c1da52376
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Header values are strings so we should provide a string as
X-Auth-All-Projects header value instead of a boolean (which is
transformed into: "<type 'bool'>" by python-requests)
Change-Id: Id4172f424565da5afb1f310195a0b7ba37674064
|