116 Commits

Author SHA1 Message Date
Jenkins
9447a0e2c7 Merge "Add subnet functional tests" 2016-03-14 16:10:03 +00:00
Jenkins
4bb48c088d Merge "Add subnet pool functional tests" 2016-03-10 00:38:33 +00:00
Richard Theis
87d90f3e53 Add subnet pool functional tests
Add functional tests for "os subnet pool" commands.

Change-Id: I51ffabcdb4d0f8608cc847aae298c8cbfd1f6a3d
Depends-On: I9150797c8cfa794d5264ad07965aa967d9a8f5bc
Depends-On: I65bd71e0f54f2f65acefbc542df67a1b1ec26397
Related-Bug: #1544586
Related-Bug: #1544587
Related-Bug: #1544589
Related-Bug: #1544590
Related-Bug: #1544591
Partially-Implements: blueprint neutron-client
2016-03-09 11:30:06 -06:00
Richard Theis
9fcbd0ad4b Add port functional tests
Add functional tests for "os port" commands.

Change-Id: I162eff6abacd9ffdde369647491ae472b604c692
Depends-On: I2bea508e11290284aa64b1ab548a0bb61e7290d3
Partial-Bug: #1519909
Partially-Implements: blueprint neutron-client
2016-03-08 10:02:17 -06:00
Richard Theis
bf2dbf3256 Add subnet functional tests
Add functional tests for "os subnet" commands.

Change-Id: Ie80763334f2fb4099b3e549256576d71cc213c07
Depends-On: Ia6120b8dccf2ee83dc89b3f496f7180d4dc5199a
Related-Bug: #1523258
Related-Bug: #1542359
Related-Bug: #1542362
Related-Bug: #1542364
Related-Bug: #1542363
Partially-Implements: blueprint neutron-client
2016-03-04 08:12:01 -06:00
Richard Theis
8cf28a34ab Fix test_aggregate functional test
Nova API validation changes [1] appear to have broken the
'os aggregate create' and 'nova aggregate-create' commands when
an availability zone name is not specified. This patch set updates
the test_aggregate functional test to set the availability zone
name in order to unblock the osc gate while nova investigates
the issue.

[1] https://review.openstack.org/#/c/281143/

Change-Id: I00b497be61c4bc4bc467c66c1e49b2e0636ab841
Related-Bug: #1541691
2016-03-03 12:32:09 -06:00
Tang Chen
ba826fa04f Make SetAggregate inherit from cliff.Command
set/unset comamnd classes should inherit from cliff.Command class.

Also, this patch adds functional tests for aggregate.

And also, use utils.format_dict() to format the output of the
properties dict.

Change-Id: Idb50bef8990da95666960e2414dfd7c9be234bba
Partial-bug: #1519503
Closes-Bug: 1546065
2016-02-27 03:50:47 +08:00
Tang Chen
9c91c1df41 Make SetAgent inherit from cliff.Command
set/unset command classes should inherit from cliff.Command class.

Also, this patch adds functional tests for compute agent.

Change-Id: I25eafffd1167f82aa0d430628c22dee7516b1e19
Partial-Bug: 1546065
2016-02-27 03:48:11 +08:00
Tang Chen
859bfaf875 Make SetSecurityGroup inherit from cliff.Command
set/unset comamnd classes should inherit from cliff.Command class.

Change-Id: Ie28711ac8823dc9eb13cf83877864ca436b928bc
Partial-Bug: 1546065
2016-02-27 03:47:57 +08:00
Tang Chen
f37eda3a27 Make SetFlavor and UnsetFlavor inherit from cliff.Command
set/unset comamnd classes should inherit from cliff.Command class.

Change-Id: I54e5608ac0768d7d94b7f7d516ea1948daefdc1b
Partial-Bug: 1546065
2016-02-27 03:46:30 +08:00
Jenkins
277c16c8b7 Merge "Defaults are ignored with flake8" 2016-02-26 01:59:47 +00:00
Jenkins
c2f5945ef6 Merge "Add "security group rule show" command" 2016-02-23 18:02:56 +00:00
Tom Cocozzello
3d7a26bdec Defaults are ignored with flake8
If “ignore” is not set under flake8 in the tox.ini
file there there are defaults set to be ignored.

The depended patch fixes many of the problems.

Change-Id: Ieed2fe1c4654e201d3fe6d40ef93e247ee736f8b
Doc: http://flake8.readthedocs.org/en/latest/config.html#default
Depends-On: I935ab48e7c5bac5f88ecdb3a05f73fb44fc9f41d
Closes-Bug: #1548910
2016-02-23 11:08:36 -06:00
Richard Theis
dccde70c57 Add "security group rule show" command
Add the "os security group rule show" command which will use
the SDK when neutron is enabled, and use the nova client when
nova network is enabled.

Change-Id: I41efaa4468ec15e4e86d74144cc72edc25a29024
Partial-Bug: #1519512
Implements: blueprint neutron-client
2016-02-23 15:27:06 +00:00
Jenkins
db4d73d8c8 Merge "Add functional tests for "volume" commands v2" 2016-02-23 02:49:57 +00:00
Tang Chen
acc0297fa6 Add functional tests for "volume" commands v2
The tests for v2 "volume" commands are quite similar to v1.

This patch also map 'metadata' to 'properties', 'volume_type' to 'type'
to align to the v1 output.

Change-Id: Icf2c5463b186fc78c890ccd96453090c4a2c2eb6
Partial-bug: #1519503
2016-02-21 09:10:15 +08:00
Tang Chen
86cae7e170 Add functional tests for "image" command v2
The tests for image v2 are quite similar to the tests for v1.
The only difference things are:
1. v2 "image set" command only allows to change the disk format
   for a queued image
2. v2 "image show" command output is different from v1

Change-Id: Ieb6bec7467887aab567743153ea3181afa49537d
2016-02-21 08:25:27 +08:00
Jenkins
c8753808a2 Merge "Refactor security group functional tests" 2016-02-15 20:46:51 +00:00
Richard Theis
ea0b8f9162 Add quota functional tests
Add functional tests for "os quota" commands.

Change-Id: I0f5939bf4ce553174c9b7ce55bdb3dce0506c409
Related-Bug: #1528249
Partially-Implements: blueprint neutron-client
2016-02-12 12:52:40 -06:00
Richard Theis
7d6d23d378 Fix identity test_role functional tests
A recent keystone change [1] resulted in the domain_id field
being included when showing a role.

[1] 407eabde41

Change-Id: I344f4d727f2a16217c075ad8b8393c1e0a233c2e
Closes-Bug: #1544547
2016-02-11 07:30:56 -06:00
Jenkins
794c2a1738 Merge "Add functional tests for snapshots" 2016-02-05 22:50:01 +00:00
TerryHowe
514a168656 Add recursive object delete for containers
Change-Id: Ib291e79864c218464e842a08efd3742193ba5ff0
2016-02-05 11:18:46 -07:00
Richard Theis
a836023411 Refactor security group functional tests
Moved the functional tests for "os security group" and
"os security group rule" from the compute to the network
directory to align with the refactoring to the commands.

Change-Id: Ief6ab17775c6d7e3bef58d9fa025d9dd520b7370
Partial-Bug: #1519511
Partial-Bug: #1519512
Related-to: blueprint neutron-client
2016-02-05 09:54:58 -06:00
TerryHowe
e108719f77 Add functional tests for snapshots
Change-Id: I863583d6c8263d144d45a0443fc6af04301d23e7
2016-02-05 07:02:29 -07:00
Richard Theis
bca1a930f4 Revert "Skip identity v2 functional tests"
This reverts commit 5032dbc8074d5133c6b71610cd57d3c8da07c9b9 based on [1].

[1] https://review.openstack.org/#/c/274703/

Change-Id: Ic10ef7c37d71e452fbc4bd36e28be79d669b4e3f
2016-02-01 20:56:43 +00:00
Richard Theis
5032dbc807 Skip identity v2 functional tests
DevStack now uses identity v3 by default thus causing OSC to
only load openstack.identity.v3 commands. This prevents running
functional tests on openstack.identity.v2 commands. As a result,
this patch set skips all identity v2 functional tests to unblock
the gate.

Change-Id: I066187318be71792a966fa21226fab0d406c3758
Partial-Bug: #1539780
2016-01-29 15:45:07 -06:00
Richard Theis
1db40e8563 Add router functional tests
Add functional tests for the "os router" commands.

Change-Id: I99045e6e2f548ac4206afcdb61940180e609a6bc
Partial-bug: #1519503
Partially-implements: blueprint neutron-client
2016-01-25 10:28:59 -06:00
Richard Theis
84174440fc Refactor "os availability zone list"
Refactor the "os availability zone list" command to make it a common
command instead of a compute-only command. Since availability zones
are common to compute, volume and network (new), this refactoring
allows availability zone support to be added for volume and network.

In addition to the refactor, unit and functional tests were added.

Change-Id: I63e9d41d229b21cd38e5a083493042c096d65e05
Partial-Bug: #1532945
2016-01-14 11:43:31 -06:00
Jenkins
774201b696 Merge "Implementation for project unset cmd for python-openstackclient." 2016-01-04 19:09:31 +00:00
Jude Job
a2a63f19bf Implementation for project unset cmd for python-openstackclient.
This patch introduces a unit test class TestProjectUnset
for testing unset cmd.

Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com>
Change-Id: Ib4a414d2313e3d37e48d1cb3639f064231aec508
Closes-Bug: #1486597
2016-01-04 10:25:55 -05:00
Richard Theis
7a1a59e5bb Functional tests for security group rule
Add functional tests for the "security group rule" commands.

Change-Id: Ia03886e92632f37a3d2625df1c3fa7c2a536c564
Partial-Bug: #1519512
Related-to: blueprint neutron-client
2015-12-23 15:15:06 -06:00
Tang Chen
2a2cb4f75d Migrate "network show" command to use SDK.
This patch makes "network show" command use sdk.

Since we have to keep the other commands runnable with
the old network client, we use a temporary method to
create sdk network client. And as a result, the tests
need to patch a method to fake the temporary method,
which will be removed at last.

There are two same test cases in the unit tests. This
patch will remove one.

And since the output has changed, we also need to fix
function test cases.

Change-Id: I4c06b4efad2db430767bbaa882b0876df3ab483a
Implements: blueprint neutron-client
Co-Authored-By: Terry Howe <terrylhowe@gmail.com>
Co-Authored-By: Tang Chen <tangchen@cn.fujitsu.com>
2015-12-09 09:30:13 +08:00
TerryHowe
3dc97c0d3f Add functional tests for network crud
Change-Id: If965a7389ffa5b7ad44f53eebc2e8b918c6d2ace
2015-11-24 15:29:59 -07:00
Jenkins
4c7bbdae28 Merge "Have configuration tests support OCC" 2015-11-21 01:17:57 +00:00
TerryHowe
c0cc538077 Have configuration tests support OCC
Change-Id: Ia8b0e5672e2e6cf6a37582bf231385aafda8836d
2015-11-20 10:57:36 -06:00
Steve Martinelli
539c39bfaf remove url from v3 regions
the parameter "url" was removed from Keystone, it was only added
for one release as part of an experimental support for adding
service providers.

BackwardsIncompatibleImpact
Closes-Bug: 1506841

Change-Id: I7a62fbf1d9bfa8e6dd8d619e98c32b9860348d2e
2015-10-21 13:21:20 +00:00
Jenkins
155e8c6f1e Merge "Fix functional tests for Python 3.4" 2015-10-14 18:26:17 +00:00
Sirushti Murugesan
b12d850222 Fix functional tests for Python 3.4
* shlex.split() expects a string. Not bytes.
* decode the bytestring result of subprocess's communicate()
  to a string.

Change-Id: I209f67a91dc609b1e30cb9e683d3d6ee63d00069
2015-10-12 17:23:06 +05:30
Jenkins
9f23f1f13f Merge "image set should not show the resource" 2015-10-08 20:38:05 +00:00
Steve Martinelli
bd14d07809 unwedge the gate
devstack defaults to v3 and makes some janky assumptions in
the generated rc files

Change-Id: I4b0b3eb6ab2aa9be2ac4c2404b2f9655e3ed564e
2015-10-08 03:09:43 -04:00
Steve Martinelli
2bd82ab892 image set should not show the resource
the rest of OSC set commands do not show the resource after it has
been updated. unless the update fails then we report back a failure,
otherwise the user should assume everything went fine.

Change-Id: I2bd4188450c3853b4a1bc25f80fc9450cda32bdd
2015-10-06 20:14:54 +00:00
Steve Martinelli
817ab3ec0e set image api to 1 for functional tests
devstack now defaults to image api v2, but osc does not support
v2 image create. set the functional tests to use v1 for now
to unwedge the gate.

Closes-Bug: #1496337
Change-Id: Ia02ed761446b8de52c932a424b9c423691ebcceb
2015-09-16 19:33:34 +00:00
TerryHowe
48f7f0f1bc Automate flavors, networks, and image get
Functional tests rely on some sort of configuration and
rather than configure something right now, how about it
pulls something from the middle of the available list.

Change-Id: I8147e40e5ee7393d8a8dcf1b0beb48856f28af7e
2015-08-22 17:32:54 +00:00
Jenkins
3751dbf127 Merge "additional functional tests for identity providers" 2015-08-22 04:40:13 +00:00
Steve Martinelli
59d12a63b4 unwedge the osc gate
keystone added a new property to projects, called is_domain.
our functional tests fail because we are not expecting that in
the project's 'show' command.

Change-Id: Idf05118155847e3a6002818c44b99825801ea9f4
Related-Bug: #1487600
2015-08-21 15:33:48 -05:00
Kelvin Lui
8fb19bc2a9 additional functional tests for identity providers
add tests for:

  * delete
  * set
  * list
  * show 

Change-Id: Ibe34f28d7ae77d139a6e0edf4fe04215c371c9a8
2015-08-21 16:07:58 +00:00
Steve Martinelli
d0cb0d1192 Skip functional test: test_server_up
seems like test_server_up is causing intermittent issues in our
CI, skipping for now, so we can proceed with merging code.

Change-Id: Id41a78e703d7b416dfdc9a7bc95b19a8999192e3
Related-Bug: 1483422
2015-08-10 15:09:10 -07:00
Robert Francis
4850728b99 Add functional test for volume type create --property
Combine test_volume_set_one_propety and
test_volume_type_set_unset_properties.

Change-Id: Ia8862a59161f6a15880b87ea305fb5bb15c31300
2015-08-05 07:25:06 -04:00
Jenkins
7e9c1946f2 Merge "Added a new function test for volume type set" 2015-08-03 21:46:09 +00:00
Jenkins
2039011097 Merge "Introduce functional test for Identity Provider" 2015-08-03 20:39:15 +00:00