summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Rename quantumclient to neutronclient2.2.4Mark McClain2013-07-0320-72/+72
| | | | | | Implements Blueprint: remove-use-of-quantum Change-Id: Idebe92d56d277435ffd23f292984f9b8b8fdb2df
* Merge "Remove the monkey patching of _ into the builtins."2.2.3Jenkins2013-07-011-6/+0
|\
| * Remove the monkey patching of _ into the builtins.Alex Gaynor2013-06-141-6/+0
| | | | | | | | | | | | | | | | Previous _ was monkey patched into builtins whenever certain modules were imported. This removes that and simply imports it when it is needed. Change-Id: I8b7cdc7a8da21ed3e8bc69b18414dfc89e8935b8
* | Merge "Support router-interface-add/delete by port_id"Jenkins2013-06-292-16/+45
|\ \
| * | Support router-interface-add/delete by port_idAkihiro MOTOKI2013-06-172-16/+45
| | | | | | | | | | | | | | | | | | Fixes bug 1061638 Change-Id: Ie36126a38627a6707e82116fb6b7bd97755f8fd0
* | | Fix mocking of HTTPClient.request() method.Roman Podolyaka2013-06-181-7/+6
|/ / | | | | | | | | | | | | | | | | | | | | | | | | The test_extend_list_exceed_max_uri_len test case mocks the request() method of HTTPClient class so that it raises the RequestURITooLong exception. But the real method can't possibly raise it (Client.do_request() does this instead). Mocks should emulate the behavior of methods they stub out and not change it in any way. Fixes bug 1192197. Change-Id: I62b2db111ef251f95eb9aa9c9cc00b53fdbccc68
* | Remove class-based import in the code repoAkihiro MOTOKI2013-06-1311-331/+289
|/ | | | | | | | Fixes bug 1167901 This commit also removes backslashes for line break. Change-Id: Id26fdfd2af4862652d7270aec132d40662efeb96
* Merge "Set default columns in ext-list"Jenkins2013-06-052-7/+63
|\
| * Set default columns in ext-listAkihiro MOTOKI2013-05-272-7/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously ext-list does not inherits ListCommand base class for listing and cannot specify columns to display. This commit changes ext-list to use ListCommand and adds a unit test for extensions. This also changes the default value of _formatters in ListCommand to {}. By this subclasses no longer override _formatters unless required. Fixes bug 1161866 Change-Id: Ifd9ab54d4e84a2b7a1d7eecd67f6270ec643db1d
* | Merge "CLI support for disabling SNAT"Jenkins2013-06-021-1/+2
|\ \ | |/ |/|
| * CLI support for disabling SNATSalvatore Orlando2013-05-161-1/+2
| | | | | | | | | | | | | | | | blueprint l3-ext-gw-modes Adds the --disable-snat option to the router-gateway-set command Change-Id: I1e6e339e3332d7073f761f407318811f22d283b1
* | Merge "Avoid error 414 when retrieving subnet cidrs for ListNetworks"Jenkins2013-05-221-1/+66
|\ \
| * | Avoid error 414 when retrieving subnet cidrs for ListNetworksSalvatore Orlando2013-05-031-1/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 1172537 In order to avoif 414 the list subnet requests will be split in multiple requests. The total URI len for each of these requests will be lower than 8K (the default maximum for eventlet.wsgi.server). The patch tries to submit a single request, and if the URI is too long an exception is raised before the request is sent over the wire; the exception handler will split the subnet id list, and submit the new requests. This patch does not address the case in which the server is configured with a maximum URI length different from 8K. Change-Id: Ia2414cd5374a91d3d12215807037a5d46b836ad6
* | | Merge "Add update method of security group name and description"Jenkins2013-05-221-0/+23
|\ \ \
| * | | Add update method of security group name and descriptionZhenguo Niu2013-05-151-0/+23
| | |/ | |/| | | | | | | | | | | | | | | | | | | make it possible to edit the name and description of security groups. Fixes: bug #918393 Change-Id: I7b9dd3f9ad2f59aee1b37e06350ce8f5e3a40f64
* | | Allow the HTTPClient consumer to pass endpoint_type.Carl Baldwin2013-05-212-0/+182
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes the default behavior of the client. It will now choose publicURL by default rather than adminURL. Now allows the consumer to pass adminURL, internalURL or some other endpoint type when constructing a Client to override this default behavior. Adds --endpoint-type option to the shell client. Defaults to the environment variable OS_ENDPOINT_TYPE or publicURL. This was patterned after the same option in the Nova client. Adds a new exception type to handle the case where a suitable endpoint type is not found in the catalog. Without this, the exception encountered is a KeyError that was not clearly reported to the caller of the quantum command line. Change-Id: Iaffcaff291d433a605d8379dc89c1308096d36c2 Fixes: Bug #1176197
* | Improve unit tests for python-quantumclientTatyana Leontovich2013-04-261-0/+190
|/ | | | | | | | | Partially fixes bug 1137783. Add tests for: quantumclient.common.utils Partially Fixes: bug #1137783 Change-Id: I6491eb881d3f465d11a649d55cde7caba77ed19b
* Enable automatic validation of many HACKING rules.Maru Newby2013-04-0813-55/+55
| | | | | | | | | | * Add hacking to the tox build - a set of flake8 plugins that perform automatic validation of many HACKING.rst rules. * This patch configures hacking in the tox build and performs the mechanical cleanup required to allow the checks to pass. * See https://pypi.python.org/pypi/hacking Change-Id: Ib41313b5aae991e6ffef2a89dd69e83985bdc36d
* Fix xml request doesn't work with unicodeHe Jie Xu2013-04-0714-34/+230
| | | | | | | | | | | | | | | | | | Fix bug 1160704 * httplib2 doesn't work with unicode url and params. So encode all unicode to utf-8 before request. * Fix xml serializer doesn't work with unicode * Decode command argument to unicode in main function * Exception's message maybe include unicode, decode message to unicode before logging or print. * Sync the changing of serializer/deserilizer's code with quantum server code https://review.openstack.org/#/c/25482/ https://review.openstack.org/#/c/25046/ https://review.openstack.org/#/c/21410/ * Enable xml test Change-Id: Ib140e34d54cc916e2ea172e4bad9e4a77388723a
* Switch to flake8 from pep8.Maru Newby2013-04-057-74/+68
| | | | | | | | | * flake8 supports more checks than pep8 (e.g. detection of unused imports and variables), and has an extension mechanism. A plugin to support automatic HACKING validation is planned. * See: http://flake8.readthedocs.org/ Change-Id: I1cba551fadf87f3dbc40a002736c1009e7b9d5b5
* Move tests to project rootAlessio Ababilov2013-04-0121-0/+3705
Implements: blueprint tests-in-root Change-Id: I6a1dbc59720abcaafb6fd9b8585f3f6065dcde92