summaryrefslogtreecommitdiff
path: root/quantumclient/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* deal with -c option when the list result is empty.Yong Sheng Gong2012-08-121-0/+30
| | | | | | bug #1033123 Change-Id: Idd10e9ae8fd57e6173ef7f92411176834efebff5
* Add name or id to quantum cli commands.Yong Sheng Gong2012-08-055-62/+156
| | | | | | | | | | | | | | Bug #1030180 We first lookup the resource id via id if it looks like an id. If we cannot find it via id, we will look it up via name. All of the update/show/delete support reference resource via name or id. To create port/subnet, we can refercen network via network's name. Also in port creation, we support reference subnet in fixed_ip via its name. quantum_test.sh is added to test the command lines after running 'python setup.py install' Change-Id: I54b6912e2c4044ba70aaf604cd79520022de262f
* Allow to retrieve objects by nameSalvatore Orlando2012-07-264-18/+69
| | | | | | | | | | | | | | | Fixes bug 979527 xxx-show commands now can accept either an id or a name of the resource to retrieve, similarly to the "nova get" command. This has been preferred to using mutually exclusive keyword argument, in order to avoid confusion with other CLI tools. NOTE: the current patch allow search by name only for networks. The restriction will be lifted once name attributes for port and subnets are added. Change-Id: Id186139a01c9f2cfc36ca3405b4024bd7780622e
* Remove quantum client codes for API v1.0Yong Sheng Gong2012-07-133-1688/+0
| | | | | | Bug #1021546 Change-Id: Ic628db01034bc6dfb5fad3d6a2905e243900229a
* Support allocation pools for subnetGary Kotton2012-07-112-8/+50
| | | | | | | | | | | | | Fixes bug 1022227 Usage examples: create_subnet --tenant_id <id> --allocation_pool start=1.1.1.1,end=1.1.1.10 <networkid> <gw> More than one allocation pool can be added by doing the following: --allocation_pool start=1.1.1.1,end=1.1.1.10 --allocation_pool start=1.1.1.123,end=1.1.1.125 ... Change-Id: I313625b6a8c1da6eaca8b1943da52738978ed72b
* Make quantum cli consistent with other cli's practice.Yong Sheng Gong2012-07-053-45/+39
| | | | | | | | | Bug 1011759 We use dash in command names, underscore in options or arguments, adopt noun-verb format command names. Change-Id: Ibeb2b4a31929dbb7008cec3b04bd77e75d9ace1a
* add --fixed-ip argument to create port0.1.0Yong Sheng Gong2012-06-251-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | add --fixed-ip argument to create port and add list and dict type for unknow option now we can use known option feature: quantumv2 create_port --fixed-ip subnet_id=<id>,ip_address=<ip> --fixed-ip subnet_id=<id>, ip_address=<ip2> network_id or unknown option feature: one ip: quantumv2 create_port network_id --fixed_ips type=dict list=true subnet_id=<id>,ip_address=<ip> two ips: quantumv2 create_port network_id --fixed_ips type=dict subnet_id=<id>,ip_address=<ip> subnet_id=<id>,ip_address=<ip2> to create port Please download: https://review.openstack.org/#/c/8794/4 and set core_plugin = quantum.db.db_base_plugin_v2.QuantumDbPluginV2 on quantum server side Patch 2: support cliff 1.0 Patch 3: support specify auth strategy, for now, any other auth strategy than keystone will disable auth, format port output Patch 4: format None as '' when outputing, deal with list of dict, add QUANTUMCLIENT_DEBUG env to enable http req/resp print, which is helpful for testing nova integration Patch 5: fix interactive mode, and initialize_app problem Change-Id: I693848c75055d1947862d55f4b538c1dfb1e86db
* add keystone support, new command interface, API v2.0Yong Sheng Gong2012-06-218-27/+813
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | blueprint new-cli Bug #1001053 Implement new commands interface, ready for v2.0. adopt cliff arch. new client binary is quantumv2. After it is stable, we will remove quantum binary. Httplibs2 is used. usage: https://docs.google.com/document/d/1e_4UtnhFfgtnsB8EVB31BZKldaVzl_BlsGnGBrKmcDk/edit Patch 2: add license header Patch 3: add v1.0 support, fix show net details Patch 4: quantumclient network api v2.0 Patch 5: subnet and port commands for api v2.0, add fields selector Patch 6: add test cases Patch 7: fix interactive mode, modify according to comments and https://review.openstack.org/#/c/8366/, add two tasks to BP: noauth and openstack common Patch 8: fix log problem Patch 9: modify according to the comments by dan on patch 5 Patch 10: just trigger jenkins Patch 11: pep 1.3 fix Patch 12: cliff and prettytable to more than 0.6.0 Patch 13: change setup.py to include more packages Patch 14: pep check on jenkins Patch 15: add license text to empty __init__.py files Patch 16: fix v1.1 test cases after server changes Change-Id: Ibbbdd834371c6a023b31e4797718fc0fe9786d89
* Clean up codebase in accordance with HACKING/PEP8.Maru Newby2012-05-022-54/+63
| | | | | | | * Adds HACKING.rst * Addresses 981208 Change-Id: I3d701ca9a748a0c4ceada7d76a31dc6bb2d5969b
* Remove server-specific functionality.Maru Newby2012-04-244-0/+1651
* Moved server-specific functionality found in quantum.common to the quantum repo. * Renamed primary package from quantum -> quantumclient. * Addresses bug 977711 and bug 921933 Change-Id: If34553924c8dfcc6b148c1d91f173a4b81eeb95a