summaryrefslogtreecommitdiff
path: root/designateclient
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Clarify that name or ID can be used on TLDs" into stable/wallabywallaby-em4.2.1stable/wallabyZuul2022-06-101-3/+3
|\
| * Clarify that name or ID can be used on TLDsMichael Johnson2022-06-071-3/+3
| | | | | | | | | | | | | | | | | | | | 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 (cherry picked from commit 5fbc5b115441c16db6f9381cc62e63537b60a5a8)
* | Merge "Fixed zone transfer accept list command" into stable/wallabyZuul2022-06-093-1/+10
|\ \
| * | Fixed zone transfer accept list commandMike Durnosvystov2022-06-073-1/+10
| |/ | | | | | | | | | | Change-Id: If7ba1fc9dd3f9d67a49ad3b8ae4c0e0f9733195b Closes-Bug: 1901172 (cherry picked from commit 196cb61870f838396d208ce7fe175e004d0d1006)
* | Merge "Remove edit-managed from unsupported commands" into stable/wallabyZuul2022-06-092-2/+4
|\ \
| * | Remove edit-managed from unsupported commandsMichael Chapman2022-06-072-2/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | --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 (cherry picked from commit 94e7e97e50b0622cb27a20c3aead22e6e25ac5ad)
* | Fix missing --target-project-id for transfer reqMichael Johnson2022-06-081-0/+7
|/ | | | | | | | | | | | | 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 (cherry picked from commit fba1354e039809edaba9bbf0f31b3fe743aae36f)
* Add choices to `--type` command line argumentNicolas Bock2020-10-131-2/+7
| | | | | | | | | 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 hacking versionNicolas Bock2020-10-103-6/+6
| | | | | | | | | | | 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>
* Use unittest.mock instead of mockHervé Beraud2020-06-093-3/+3
| | | | | | | | 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
* Use unittest.mock instead of third party mockSean McGinnis2020-03-131-3/+1
| | | | | | | | 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>
* Merge "Removing unused code"3.1.0Zuul2019-09-282-194/+0
|\
| * Removing unused codeErik Olof Gunnar Andersson2019-09-162-194/+0
| | | | | | | | Change-Id: I01d39252b0be77b035bde175b4045a8cdc859f65
* | Fix "recordset list --all-projects" in interactive OSCJens Harbott2019-09-181-1/+1
| | | | | | | | | | | | | | | | | | 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
* | Fix "zone list --all-projects" in interactive OSCJoseph M2019-09-161-1/+1
|/ | | | | | | | | | | | 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
* Removing v1 api supporttrain-em3.0.0Erik Olof Gunnar Andersson2019-09-1036-3060/+3
| | | | | | | The v1 has officially been removed from Designate since the Queens release, and was deperecated long before that. Change-Id: Ic5b44761ff939e2b319924af87849b3a79f9cb07
* Update json module to jsonutilscao.yuan2019-02-287-18/+24
| | | | | | | 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
* Merge "Check item is one of six.string_types not just str"Zuul2018-08-112-3/+2
|\
| * Check item is one of six.string_types not just strGraham Hayes2018-04-162-3/+2
| | | | | | | | | | Change-Id: I343d9f6bdb3509256191a44e686f24e0ebeb5d22 Closes-Bug: #1762612
* | Merge "server-get/update show wrong values about 'id' and 'update_at'"rocky-em2.10.0Zuul2018-07-251-3/+3
|\ \
| * | server-get/update show wrong values about 'id' and 'update_at'miaoyuliang2018-06-201-3/+3
| |/ | | | | | | | | | | | | | | | | 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
* | Fix copy-pasta in quota command descriptionsBen Nemec2018-06-291-2/+2
|/ | | | | | | | 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
* Merge "Highlight V1 API removal"Zuul2018-02-281-1/+5
|\
| * Highlight V1 API removalGraham Hayes2018-02-121-1/+5
| | | | | | | | | | | | | | Update Docs and the execption logged to point users to the openstack cli + v2 client. Change-Id: Ib08330d348a6a2f0e976ab0df26e91b2d7bd4e13
* | Improve the RecordSet Update UIGraham Hayes2018-02-121-2/+15
|/ | | | | | | | | | | 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
* Improve recordset create UIJens Harbott2017-12-071-3/+17
| | | | | | | | | | | | | | 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
* Make remote error handling more robustJens Harbott2017-09-012-1/+8
| | | | | | | | | 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
* Add tsig key support to python-designateclientRudolf Vriend2017-07-078-1/+472
| | | | | | | | | | 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
* Use Sphinx 1.5 warning-is-errorStephen Finucane2017-04-206-15/+22
| | | | | | | | | | | 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
* Set client module __version__Rui Chen2017-02-062-3/+23
| | | | | | | | | | 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
* Merge "Add attribute support to create zone cli"ocata-em2.6.0Jenkins2017-02-012-1/+20
|\
| * Add attribute support to create zone cliGraham Hayes2017-01-312-1/+20
| | | | | | | | | | | | also format attributes for cli display Change-Id: Ia338f607e6d4b70610132ab66e15381981beb038
* | Merge "Replace 'assertFalse(a in b)' with 'assertNotIn(a, b)'"Jenkins2017-02-011-1/+1
|\ \
| * | Replace 'assertFalse(a in b)' with 'assertNotIn(a, b)'howardlee2016-11-181-1/+1
| | | | | | | | | | | | | | | | | | Trivial fix. Change-Id: I0e678649225d58e70db09f6c0acce59d20f48004
* | | Show proper error on over quota commandsGraham Hayes2017-01-312-0/+6
| |/ |/| | | | | | | Change-Id: I811a0f0e3dcc3406ba9a07b0d54788a3241a7cd2 Closes-Bug: #1629222
* | Removes unnecessary utf-8 encodingCao Xuan Hoang2016-12-222-4/+0
| | | | | | | | | | | | | | | | | | | | 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
* | Ensure X-Designate-Edit-Managed-Records header value is a stringCedric Brandily2016-12-091-1/+1
| | | | | | | | | | | | | | | | 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
* | Use tempest instead of Tempest-libghanshyam2016-11-229-10/+10
|/ | | | | | | | | | | 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
* Merge "Ensure X-Auth-All-Projects header value is a string"Jenkins2016-11-041-1/+1
|\
| * Ensure X-Auth-All-Projects header value is a stringCedric Brandily2016-10-281-1/+1
| | | | | | | | | | | | | | | | 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
* | Merge "Fix pep8 E501 line too long"Jenkins2016-11-011-1/+2
|\ \ | |/ |/|
| * Fix pep8 E501 line too longTony Xu2016-09-231-1/+2
| | | | | | | | | | | | | | Wrap line to under 79 characters in designateclient/functionaltests/datagen.py Change-Id: I50deb3ffb70a4845fc825f9ee3eef61c40316b5b
* | Merge "Add plug-in summary for osc doc"Jenkins2016-10-181-0/+2
|\ \
| * | Add plug-in summary for osc docKATO Tomoyuki2016-10-141-0/+2
| |/ | | | | | | | | | | | | Stevedore Sphinx extension handles this comment. http://docs.openstack.org/developer/python-openstackclient/plugin-commands.html Change-Id: Ibab2eb29c1dbd37ee42f2ec9db8e323e2504b5b7
* | Replace 'assertTrue(a in b)' with 'assertIn(a, b)'Cao Xuan Hoang2016-09-282-2/+2
|/ | | | | | trivialfix Change-Id: Iaf6fc3b4b68d764de38856cab54d27579565310f
* record-create/update: Account for priority being 0Alex Monk2016-09-132-3/+3
| | | | Change-Id: Ia791e602d217cbf21fc8b636b0688c012a538169
* Merge "Resolve FloatingIP PTR records clis argument's description"Jenkins2016-08-241-3/+6
|\
| * Resolve FloatingIP PTR records clis argument's descriptionsonu.kumar2016-08-081-3/+6
| | | | | | | | | | Change-Id: Id284e43a53dddd158c1be3768422df42d49efeca Closes-Bug: #1600775
* | Fix clis related to FloatingIP's ptr recordssonu.kumar2016-08-082-2/+9
|/ | | | | Change-Id: Ie39f1e86716a096402aafe814fcde821e66dbc5b Closes-Bug: #1600781
* Merge "Add quota set / list / reset commands"2.2.0Jenkins2016-07-143-0/+162
|\