1208 Commits

Author SHA1 Message Date
chengkunye
7bb459837b add image member commands for image API
This commit adds the following commands:
    image project add
    image project remove

Closes-Bug: 1402420
Change-Id: I07954e9fa43a3ad6078dd939ecedf9f038299e7b
2015-07-20 10:38:42 -07:00
OpenStack Proposal Bot
1af89f757c Updated from global requirements
Change-Id: I0703a48d8c95617e687eea9eea7990d778d760b5
2015-07-15 01:37:44 +00:00
Jenkins
50a5c36ef1 Merge "Remove the --dhcp option to network list" 2015-07-14 20:47:09 +00:00
Steve Martinelli
79c69e1e82 temporarily skip help tests
We're trying to change cliff for the better, by improving the UX
of the help command. But cliff tests against the tip of OSC.

Temporarily skip the tests that are failing and then update them
once the fix for cliff has been merged.

The patch in question: https://review.openstack.org/#/c/201258/

Change-Id: Ie1e7ddd66477ddf4a3bafedad12934e900ace48f
2015-07-13 22:59:15 -04:00
Jenkins
963f3049c0 Merge "Fix interactive password prompt" 2015-07-13 18:58:21 +00:00
Jenkins
1ea34fc8a5 Merge "add functional tests for identity v2" 2015-07-13 17:17:06 +00:00
Jenkins
dc3ff5e000 Merge "Show which aggregate a hypervisor is member of" 2015-07-13 17:07:08 +00:00
TerryHowe
ef0cf00b33 Fix interactive password prompt
Change-Id: Ie0e7a9cd6016b5c646a111a76e8372e10602a25c
Closes-Bug: #1473862
2015-07-13 07:44:24 -06:00
OpenStack Proposal Bot
1462fb7f49 Updated from global requirements
Change-Id: Id0d62a51c35a4f7db5144dcbcde1888703fae378
2015-07-12 15:22:26 +00:00
Jenkins
fac52cc606 Merge "Remove testing of cliff command line options" 2015-07-12 14:58:32 +00:00
Jenkins
6b80efb429 Merge "Fix address parsing for server ssh command" 2015-07-12 14:40:29 +00:00
Jenkins
d96f8b532a Merge "Fixes modules index generated by Sphinx" 2015-07-12 05:07:00 +00:00
lin-hua-cheng
f807f0a66e Fix wrong mock method call
There is no assert_called() method in mock, replace it with
assert_called_with() method. The old method used to work with
mock 1.0.1 because it was a noop in magicmock.

Needs https://review.openstack.org/#/c/200583 to pass the requirements check.

https://review.openstack.org/#/c/193935/ changed the OS_* vars
we source by forcing v2password as the auth method.
change our identity v3 test setup by setting v3password

Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com>

Closes-Bug: 1473454

Depends-on: I0cfab6d13e5d9e744cb302c86a2c21269923e75d

Change-Id: Id22765c7e044797e03d19ad1b103fadec2726aa2
2015-07-11 18:57:20 -04:00
Guojian Shao
e76de2c204 add functional tests for identity v2
split test_identity.py into test_user.py, test_project, etc.
To make functional tests run repeatedly without raising
duplicated error, clean up resources before exiting each test case.

Change-Id: I8f31ccbd70f1cccdab8b3720aac179e2e399486d
Implements: blueprint identity-functional-tests
2015-07-10 15:35:58 +08:00
lin-hua-cheng
89cf9f61b1 Fixes modules index generated by Sphinx
Sphinx was always using (o)penstackclient for the prefix so the index
wasn't very useful.

Change-Id: Ie9f5d7fe428142bdb8027b422e3023418b48c428
2015-07-09 21:40:31 -07:00
Jenkins
35dc2bed9e Merge "openstack catalog list always returns publicURL for internalURL and adminURL" 2015-07-09 15:58:34 +00:00
OpenStack Proposal Bot
a3f50eafa5 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I053c9518ef01e008e63833494d2b51c44d3a64a7
2015-07-09 06:11:22 +00:00
TerryHowe
f89fc1ef32 Fix address parsing for server ssh command
There seem to be three formats for the server address field
and the old code only supported the old format.  This code adds
a parser for all three formats.

Change-Id: I7f12d2c69ff70556907ea6f31a0e0bba91b68b49
Closes-Bug: #1469843
2015-07-08 15:00:51 -06:00
Martin Schuppert
7af00f833f openstack catalog list always returns publicURL for internalURL and adminURL
With this change 'openstack catalog list' returns the correspoding URL for
publicURL, internalURL and adminURL in _format_endpoints .

Change-Id: I5d946c9d70a2d3c22a7cc77067fec8e2e9aa4940
Closes-Bug: 1472629
2015-07-08 21:40:44 +02:00
TerryHowe
2d4a737160 Remove the --dhcp option to network list
The --dhcp option lists agents, not networks.  This does not make
a lot of sense.  Another command should be created to list agents.

BackwardsIncompatibleImpact
Closes-Bug: #1472613

Change-Id: I5ecfe3fc046a07eb64a4dabd41dbd99de7c2215f
2015-07-08 11:21:41 -06:00
TerryHowe
8c7920ddf0 Remove testing of cliff command line options
These options are part of cliff, let cliff test them.

Change-Id: I802c25ba80048607eef6909a21709dcda63231cc
2015-07-08 10:38:35 -06:00
Jenkins
f07f71661f Merge "add functional tests for identity v3" 2015-07-07 18:11:25 +00:00
Guojian Shao
aa3b3c1f0f add functional tests for identity v3
To make test cases more clearly, split test_identity.py
into test_user.py, test_role, etc. Add more test cases for
user, role, etc. Furthermore, to make functional tests run
repeatedly without raising duplicated error, clean up
resources before exiting each test case.

Change-Id: I1541943ad0b8d4d8d1e72822c159fda243b3d1d7
Implements: blueprint identity-functional-tests
2015-07-07 15:57:36 +08:00
Jenkins
dfa80ee9c0 Merge "Add functional tests for volume set size" 2015-07-06 18:52:17 +00:00
Jenkins
e57808d962 Merge "Add functional tests for security group CRUD" 2015-07-06 18:01:35 +00:00
Jenkins
1a45b20ba1 Merge "Add functional tests for flavor metadata" 2015-07-06 17:04:02 +00:00
Jenkins
541ec43cf0 Merge "Add flavor functional test" 2015-07-06 16:04:55 +00:00
Jenkins
8c7e6e7de6 Merge "Add functional tests for server CRUD" 2015-07-05 15:25:41 +00:00
Jenkins
ee64c2fa6b Merge "Add --os-endpoint-type cli optional argument" 2015-07-03 02:48:47 +00:00
Roxana Gherle
5521e4c504 Add --os-endpoint-type cli optional argument
User should be able to specify the endpoint type through
a CLI optional argument/ENV variable setting. We will name this new
optional argument: --os-endpoint-type (Env: OS_ENDPOINT_TYPE) and
based on the value given, the service API will use that specific
endpoint type. Possible values: public, admin, internal.

DocImpact
Closes-Bug: #1454392
Change-Id: Ife3d4e46b44c0ddcd712b1130e27e362545a9a29
2015-07-02 10:10:46 -07:00
David Moreau Simard
3bfaf79732 Show which aggregate a hypervisor is member of
This adds support for showing which host aggregates
a hypervisor is member of, if any.
It supports hypervisors with or without nova cells.

Closes-bug: #1470875
Change-Id: I0cfe4f15fa8f8ba0be3295b79cd438998893114c
2015-07-02 10:23:22 -04:00
Jenkins
d80deaba41 Merge "Move update code from image create command" 2015-07-02 14:08:05 +00:00
Marek Aufart
bd589778c2 Move update code from image create command
Openstack image create command updates existing image (with same name) by
default. That might be confusing since glance allows create multiple
images with same names and may lead to unwanted image update by image
create command.

Image update code was moved from image create action to image set action.

BackwardsIncompatibleImpact

Change-Id: I1686c6544c366262efab9e33c066d5f8a667f707
Closes-Bug: #1461817
2015-07-02 11:02:17 +02:00
Jenkins
60d1417c2f Merge "Add functional tests for image set" 2015-07-01 19:51:13 +00:00
Jenkins
50a80ab97e Merge "Add tests for 'list' and 'show' for volume qos v1" 2015-07-01 19:40:43 +00:00
TerryHowe
700048a1e0 Fix examples with cacert
Change-Id: I2a4f758ef11caf51d0c47cb5632e59245d631d3d
Closes-Bug: #1470272
2015-07-01 05:11:45 -06:00
OpenStack Proposal Bot
a7eb8b5b3f Updated from global requirements
Change-Id: Icf1e3f1292baafe7746fd8804c61ccaab592db65
2015-06-30 22:45:47 +00:00
Jenkins
730b26e349 Merge "Add support for volume API v2 QoS commands" 2015-06-30 20:43:15 +00:00
Jenkins
e3589b3fde Merge "Alphabetize tests for v1 qos_specs" 2015-06-30 16:26:21 +00:00
David Moreau Simard
974c9d5793 Add support for volume API v2 QoS commands
This commit adds the following commands:
  volume qos associate
  volume qos create
  volume qos delete
  volume qos disassociate
  volume qos list
  volume qos set
  volume qos show
  volume qos unset

Change-Id: If3c679557ac9abb0dfc75d290b96fb9c8d46c7b7
Partial-Bug: #1467967
2015-06-29 17:24:35 -04:00
David Moreau Simard
4d832e7beb Add tests for 'list' and 'show' for volume qos v1
Change-Id: I1b4d998f3ec1bd5cb8dd4c9e0d04fd3b3049e9d7
2015-06-29 17:15:31 -04:00
Jenkins
a5259fe008 Merge "Add docs for QoS specs" 2015-06-29 19:07:13 +00:00
David Moreau Simard
1051a46944 Alphabetize tests for v1 qos_specs
As a follow up of sorting the methods for volume v1
qos_specs.

Change-Id: I428167297e7110e586d139bf38fd22d321836e80
2015-06-29 12:25:30 -04:00
Steve Martinelli
862afd1e7b Add docs for QoS specs
QoS v1 was recently included in openstackclient. We should include
command object docs.

Change-Id: I891231be095324bf55eb7ee4bb86debdf7a26f05
2015-06-29 16:16:35 +00:00
Steve Martinelli
36613f9f53 No need for get_parser on QoS list
There are no arguments so there's no need to define the
get_parser function.

Change-Id: Icfa8accf6dbb7f8d1a0472926403b405da3cc611
2015-06-28 23:43:39 -04:00
Steve Martinelli
1d51eb82d0 Alphabetize QoS specs
setup.cfg and the implementation had some functions that were
not in alphabetical order. Since the rest of OSC is alphabetized,
let's stick to that.

Change-Id: Ief5d4694c7b6bc20a0898437b96305885104d45c
2015-06-28 23:42:55 -04:00
Jenkins
4c3f2ed73e Merge "Add support for volume API v1 QoS commands" 2015-06-27 15:55:48 +00:00
David Moreau Simard
7bb038c4a7 Add support for volume API v1 QoS commands
This commit adds the following commands:
  volume qos associate
  volume qos create
  volume qos delete
  volume qos disassociate
  volume qos list
  volume qos set
  volume qos show
  volume qos unset

Change-Id: I72ea1b9a4d0bd0e35eda03071ea438b75439fce9
Partial-Bug: #1467967
2015-06-26 23:19:08 -04:00
Guojian Shao
8899bc4162 fix confused domain argument for network create v2
we have used domain scope arguments --project-domain, --user-domain
and --group-domain in identity commands, for example, role add v3,
to prevent resources conflict from same resource name existence.
To keep with the style of identity commands, it's better to rename
--domain to --project-domain.

Closes-Bug: #1468988
Change-Id: Ic6ccb895cf9be4a3d5f0001525e3b80cd340da8b
2015-06-26 12:08:22 +08:00
Jenkins
ec31a2a12e Merge "Enables retrieval of project's parents and subtree" 2015-06-25 21:51:04 +00:00