summaryrefslogtreecommitdiff
path: root/designateclient/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add shared zone commands5.2.0Igor Malinovskiy2023-02-131-0/+82
| | | | | | | Co-Authored-By: Michael Johnson <johnsomor@gmail.com> Change-Id: Iea92371176d9126205384624a18a9097acb3daef Partial-Bug: #1714088 Depends-On: https://review.opendev.org/#/c/726334/
* Add basic osc unit testsErik Olof Gunnar Andersson2021-12-0710-0/+479
| | | | | | | | 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
* Remove six and update lower-constraints appdirsMichael Johnson2021-03-261-3/+2
| | | | | | | | | | 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
* 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>
* Removing v1 api supporttrain-em3.0.0Erik Olof Gunnar Andersson2019-09-1011-902/+0
| | | | | | | 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-281-3/+4
| | | | | | | 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
* Make remote error handling more robustJens Harbott2017-09-011-0/+7
| | | | | | | | | 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-071-0/+96
| | | | | | | | | | 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
* Set client module __version__Rui Chen2017-02-061-3/+4
| | | | | | | | | | 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 "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
* | 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
* Replace 'assertTrue(a in b)' with 'assertIn(a, b)'Cao Xuan Hoang2016-09-282-2/+2
| | | | | | trivialfix Change-Id: Iaf6fc3b4b68d764de38856cab54d27579565310f
* Add `openstack zone transfer accept list` cli to designateclientsonu.kumar2016-06-141-0/+14
| | | | | | | | | | | This patch add cli for listing accepted zone ownership transfer and corresponding test cases. Related-Bug: #1499539 Change-Id: I3eec36c73b2dacd4eed3b8578c4d51593b43104d depends-on: I3dc042f666be43649bb3dec6e92cc67d1c32578f
* Switch to keystoneauthClenimar Filemon2016-05-164-6/+6
| | | | | | | | | | | | This patch migrates designateclient to using keystoneauth Session instead of deprecated keystoneclient's Session and plugins. Also, this patch removes the old designateclient.auth module as it is not used anywhere else in the code base and its purpose is overridden by the fact that keystoneauth acts as an abstraction layer for authentication (handling requests and reauthentication internally). Change-Id: Ic3cc0fbb76977a04bab322ebcb1c818e75646772
* Add support for service statusEndre Karlson2016-04-121-0/+46
| | | | | Change-Id: I5349524d262ffcadf88b3c914f187dfc26563156 Depends-On: Iaf10d8486ac8015ecf9f394dfbf074bfb863fb78
* Implement zone importRahman Syed2016-03-301-0/+54
| | | | | | | | | | | Zone import commands (create, list, show, delete) are missing from the python-designateclient. This change includes implementation, as well as unit tests and functionaltests. Change-Id: I635431b5ef11989247e8d185ad692e4fee9bebba Closes-Bug: #1550532
* Implement zone exportRahman Syed2016-03-231-0/+65
| | | | | | | | | | | Zone export commands (create, list, show, delete, showfile) are missing from the python-designateclient. This change includes implementation, as well as unit tests and functionaltests. Change-Id: I957946d739bceea1074e2fda2ce7f841143b0611 Partial-Bug: #1550532
* Stop using non-existent method of MockChaozhe.Chen2016-02-171-1/+1
| | | | | | | | | | There is no method called_once_with() in Mock object. Use assert_called_once_with() instead. I tested it in my tox environment. The revised assertion will work. Change-Id: I530b58a434b4c031d236b0b04e8c7091854c992f Closes-Bug: #1544522
* Replace assertEqual(None, *) with assertIsNone in testsShuquan Huang2015-12-171-4/+4
| | | | | | | | Replace assertEqual(None, *) with assertIsNone in tests to have more clear messages in case of failure. Change-Id: Ifcaeba48ff3606d3805343923378d0e58f68a2b9 Closes-bug: #1280522
* Merge "Fixes order of argument in assertEqual"Jenkins2015-11-044-13/+13
|\
| * Fixes order of argument in assertEqualsonu.kumar2015-10-134-13/+13
| | | | | | | | | | | | | | | | | | | | | | Some tests in designateclient used incorrect argument order in assertEqual(observed, expected). The correct order expected by testtools is assertEqual(expected, observed). Partial-Bug: #1259292 Change-Id: Icc53b2f21e557170a61ceb52cd6f04c31e3b8425
* | Merge "Resolve TLD's by name"Jenkins2015-11-041-0/+15
|\ \
| * | Resolve TLD's by nameEndre Karlson2015-10-161-0/+15
| |/ | | | | | | Change-Id: I52d927ab3d5328e7b38198c6cfb60fe497f811d0
* | Merge "Makes error msg more helpful"Jenkins2015-10-192-1/+57
|\ \ | |/ |/|
| * Makes error msg more helpfulJames Li2015-09-242-1/+57
| | | | | | | | | | | | | | | | | | | | In the case that designate api returns an error response which does not have an 'message' entry, CLI will prints out nothing helpful for users. The patch grabs info from response to try to provide a helpful msg. Fixed axfr resource too. Change-Id: I810426b6d4f731cc5ead4372083abf6515c05dc3
* | Merge "Added test cases for v2 client"Jenkins2015-10-121-0/+14
|\ \
| * | Added test cases for v2 clientsonu.kumar2015-09-301-0/+14
| |/ | | | | | | | | | | This patch adds test cases for v2 client. Change-Id: I887ce631b3c38d0bd5b36bda094a8a642a21ea6c
* | Merge "Adds test cases for servers in designateclient"Jenkins2015-10-121-0/+12
|\ \
| * | Adds test cases for servers in designateclientsonu.kumar2015-09-291-0/+12
| |/ | | | | | | | | | | | | | | This patch adds test cases for servers module of v1 client. Change-Id: I3576962d03a8da88ed5bf105ff2c7a5c32aff43c
* | Adds test cases for domain in designate v1 clientsonu.kumar2015-09-291-1/+83
|/ | | | | | This patch adds test cases for domain of v1 client. Change-Id: Ie6bf3c89d8c04c438e2751682f851c868b5dc48b
* Merge "Implement socket timeout in v1"Jenkins2015-09-084-4/+165
|\
| * Implement socket timeout in v1Federico Ceratto2015-08-114-4/+165
| | | | | | | | | | | | | | | | | | Add endpoint_override keyword to v2.Client() and check for the session argument in DesignateAdapter() Add unit test, fix minor typos Change-Id: I038ec7b0d1feadc9642bd47285e397b3fe84c13c Closes-Bug: 1469739
* | Merge "Added test cases for reports in designateclient"Jenkins2015-09-071-0/+54
|\ \
| * | Added test cases for reports in designateclientsonu.kumar2015-09-031-0/+54
| | | | | | | | | | | | | | | | | | | | | This patch adds tests cases for reports module in v1 designateclient. Change-Id: I5d91c8f975e7ea10c602af1326ebe5f33e0257c9
* | | Merge "Added diagnostics,sync and touch test cases for v1 designateclient"Jenkins2015-09-073-0/+101
|\ \ \
| * | | Added diagnostics,sync and touch test cases for v1 designateclientsonu.kumar2015-09-033-0/+101
| |/ / | | | | | | | | | | | | | | | | | | This patch adds test cases for diagnostics, sync and touch modules of v1 designateclient. Change-Id: I2dd1d0093246289426dc045f02660c31ff0f9a38
* | | Added quotas and servers test cases for designateclientsonu.kumar2015-09-022-0/+131
|/ / | | | | | | | | | | | | This patch adds tests cases for quotas and servers module of designate v1 client. Change-Id: I6d754886445ac6f35745b2d21da7e67219f0909a
* | Added test cases for designate v1 clientsonu.kumar2015-09-023-0/+357
| | | | | | | | | | | | | | This patch adds test cases for domains and records modules of designate v1 client. Change-Id: I4b4d8671041193ddbaccb10947bb21f5d626fb92
* | Add some missing Unit Tests to test_utils.pyPradeep Kumar Singh2015-07-271-0/+21
|/ | | | Change-Id: If33fba535f3541ade0b9fc516cf9b0bd4d215357
* Fix backwards compat for edit_managed/all_tenantsKiall Mac Innes2015-06-222-0/+124
| | | | | | | | | | The previous commit at [1] introduced a bug due to last minute reordering of code, this fixes the ordering and adds a couple of tests to verify the functionaility. [1]: I2e3d74168976868ea1e4dd6c797f6340faa50d0f Change-Id: Ia6f8df92b2700f63b2208290ede85f247b33bc63
* Merge "Allow to use domain names instead of ids"Jenkins2015-05-101-0/+64
|\
| * Allow to use domain names instead of idsCedric Brandily2015-04-141-0/+64
| | | | | | | | | | | | | | | | | | | | Currently designate allows to identify a resource only by its id. This change allows to identify domains by name or id. This change defines the method find_resourceid_by_name_or_id which could be reused to identify other resources by name or id. Change-Id: I8e64cdbc5572623d05781d0c4e735ff0c429ea91 Closes-Bug: #1443858
* | V2 BindingsEndre Karlson2015-05-079-4/+934
|/ | | | | | | | | | | | | | | This provides bindings for: - zones - recordsets - tlds - blacklists - limits - nameservers With associated unit tests. Change-Id: Ie9b79340bd327b78916fd038633842da3ace881b
* Enable hacking check H104Christian Berendt2014-07-161-13/+0
| | | | | | | * [H104] Files with no code shouldn’t contain any license header nor comments, and must be left completely empty. Change-Id: Ic02858615833b516fd2c68a859146c8e018ae8e1
* Add dummy testsEndre Karlson2014-06-063-0/+94
| | | | Change-Id: I3ee374157cf00739988fcf77bd6884796705b9ae
* Rename Moniker -> DesignateKiall Mac Innes2013-06-091-0/+0
Change-Id: Idf7153aa287adc874a2878dc829950fda52a4879