summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "FWaaS Client and Cli"Jenkins2013-08-075-2/+520
|\
| * FWaaS Client and CliKC Wang2013-08-025-2/+520
| | | | | | | | | | Change-Id: Ie7faeb604e0813401e5d1816a8f7c6791a16b001 Implements: blueprint fwaas-client-cli
* | Don't log the credentials by defaultStanislaw Pitucha2013-08-022-2/+33
|/ | | | | | | | | | | | | | | | Even in case of DEBUG level logging credentials (especially those that give admin level access) should not be saved into log files. This way of handling it has the side effect that if someone uses password "password", it will be replaced in another place too... but password "password" or some other keyword that can be found in the request itself was a pretty bad idea to begin with. Shell utilities are not affected and the verbose mode will still display the passwords to make debugging easy. Implements: blueprint limit-credentials-logging Change-Id: I50d0ebbfbd44c7a5b162d9334b4fdbda67e5c28d
* Merge "Add command for listing available service providers"Jenkins2013-08-021-0/+62
|\
| * Add command for listing available service providersEugene Nikanorov2013-08-011-0/+62
| | | | | | | | | | | | | | | | | | implements blueprint service-types-cli Add command service-provider-list - lists service providers available in neutron configuration Change-Id: I2ea25abc6d54b93fd9d11e8c494d7e3f77f25c53
* | Remove repeated initialisationStanislaw Pitucha2013-07-311-6/+2
|/ | | | | | | | Due to the mox object being created twice, anything that was mocked by the original instance only will never be unset. Remove the repeated self.mox creation to allow new tests to run properly. Change-Id: Icf644178f5a8270f913997e7e3f10dade412b321
* Merge "Handle host side SSL certificates validation"Jenkins2013-07-311-0/+137
|\
| * Handle host side SSL certificates validationRoman Podolyaka2013-07-231-0/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | - add --os-cacert option which allows to set a file containing certificates of root CAs (certificate authorities) that are required for validation of HTTPS servers SSL certificates - wrap httplib2 SSL certificates validation errors with a custom quantumclient exception Blueprint: quantum-client-ssl Change-Id: I4e6a7d177ba14314ba9bed613ec2684bffc35222
* | Merge "Add --security-group option to port-update"Jenkins2013-07-311-0/+30
|\ \
| * | Add --security-group option to port-updateAkihiro MOTOKI2013-07-081-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | port-update --security_groups list=true ... is not user-friendly. bug 1161078 This commit also changes the followings: - Add --no-security-groups options to port-create for consistency. - Make --security-group and --no-security-groups mutual-exclusive to prevent both options specified at the same time. Change-Id: Ibfe165a0cbdfb0eb582784c80a3371de33108fdb
* | | Add commands related to loadbalancer agent schedulingOleg Bondarev2013-07-292-3/+58
| |/ |/| | | | | | | | | blueprint lbaas-agent-scheduler Change-Id: Iba1682b122d5ae411f67ab535aecbfc4696aa925
* | raise better exception for duplicate matchAaron Rosen2013-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | When a duplicate match is found the client previously raised a NeutronClientException which made it hard for programs using the client to handle errors. This patch now makes it raise a NeutronClientNoUniqueMatch exception instead. Fixes bug: 1200323 Change-Id: I6ef6f9a9e257104f676dde7ec26be98417ec70e0
* | Merge "Remove commented out code"Jenkins2013-07-121-2/+0
|\ \
| * | Remove commented out codeAaron Rosen2013-07-111-2/+0
| | | | | | | | | | | | Change-Id: I0813a7594774d34b798fc8be316cfc325d4e4a95
* | | Merge "Allow user to specify None value to attributes"Jenkins2013-07-121-0/+21
|\ \ \ | |/ / |/| |
| * | Allow user to specify None value to attributesYong Sheng Gong2013-07-071-0/+21
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #1086232 We introduce the action=clear to unknown argument part of the command line. With this option, user can specify which attribute will have None value. For example to set dns_nameservers of subnet to None, we use: quantum subnet-update subnetname --dns_nameservers action=clear Of course, client command developer can use known option like --no-gateway to do the same job. Change-Id: Ia8dffcfd1122259d545a61e71db25e459639d130
* | Merge "Don't convert httplib2 exceptions to status codes"Jenkins2013-07-111-0/+64
|\ \
| * | Don't convert httplib2 exceptions to status codesRoman Podolyaka2013-07-081-0/+64
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently HTTPClient class sets the 'force_exception_to_status_code' instance variable to True. This actually leads to the next problem: there is no way to distinguish between errors which have the same status code. E. g. both SSL handshake error and a general Bad Request error have status code 400, and the only way to distinguish between them is to analyze the error message content, that is both error-prone and ugly. The proposed solution: - leaves the 'force_exception_to_status_code' set to False - adds a try/except wrapper for the request() call to handle httplib2 exceptions (e. g. host not found, socket timeout, etc) Blueprint: quantum-client-ssl Change-Id: Ib168fadc67568d5d6247f7addbe731e8832a39de
* | Allow tenant ID for authenticationPhil Day2013-07-081-1/+40
|/ | | | | | | | | | Under the Keystone v3 API Tenant names are not necessarily uniques across Domains for a User, so the client should also allow authentication by tenant_id Fixes bug 1196486 Change-Id: I3f385a19c1d3d66f5539f901796bbaa22d315762
* 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