summaryrefslogtreecommitdiff
path: root/designateclient/tests/v2/test_timeout.py
Commit message (Collapse)AuthorAgeFilesLines
* Use unittest.mock instead of mockHervé Beraud2020-06-091-1/+1
| | | | | | | | 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
* Replace 'assertFalse(a in b)' with 'assertNotIn(a, b)'howardlee2016-11-181-1/+1
| | | | | | Trivial fix. Change-Id: I0e678649225d58e70db09f6c0acce59d20f48004
* Switch to keystoneauthClenimar Filemon2016-05-161-2/+2
| | | | | | | | | | | | 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
* 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
* Fixes order of argument in assertEqualsonu.kumar2015-10-131-10/+10
| | | | | | | | | | | 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
* Implement socket timeout in v1Federico Ceratto2015-08-111-0/+109
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