summaryrefslogtreecommitdiff
path: root/functional
Commit message (Collapse)AuthorAgeFilesLines
* Fix wrong attribute name and add functional test for --snapshotJirayut Nimsaeng2016-04-151-2/+52
| | | | | Change-Id: I91f2091ef06a55bcf5373d1beeea2dd81e9f1334 Closes-Bug: #1567895
* Merge "Add network options to security group rule create"Jenkins2016-04-141-0/+1
|\
| * Add network options to security group rule createRichard Theis2016-04-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Add the following network options to the "os security group rule" command: (1) --ingress and --egress (2) --ethertype These options enable egress and IPv6 security group rules for Network v2. Change-Id: Ie30b5e95f94e0c087b0ce81e518de72d2dda25ad Partial-Bug: #1519512 Implements: blueprint neutron-client
* | Merge "Prefer assertEqual/assertIn over assertOutput/assertInOutput"Jenkins2016-04-145-11/+11
|\ \
| * | Prefer assertEqual/assertIn over assertOutput/assertInOutputCedric Brandily2016-04-065-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | functional.common.tests module defines: * assertOutput (similar to assertEqual) * assertInOutput (similar to assertIn) in order to allow the usage of assertions in testcase classmethods but there is no reason to use them in testcase instancemethods at least because they raise Exception instances instead of AssertionError instances. Change-Id: I9ffcaf9c6e6a1ff5df6ea2d79be3fb4496db4b85
* | | Use CommandFailed exception from tempest_libKyrylo Romanenko2016-04-135-30/+4
| |/ |/| | | | | | | | | | | Remove exceptions.py from functional/common. Import exception with the same code from the tempest_lib to tests. Change-Id: Ifaa658209c18dd608836079f57ed18fcf10fb84e
* | Merge "Correct addCleanup use in functests"Jenkins2016-04-076-88/+89
|\ \ | |/
| * Correct addCleanup use in functestsCedric Brandily2016-04-066-88/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change replaces in many identity functests the pattern: raw_resource = create_resource(...) check(raw_resource) self.addCleanup(delete_resource, ...) ... by the pattern: raw_resource = create_resource(...) self.addCleanup(delete_resource, ...) check(raw_resource) ... which ensures that cleanup is defined and called after the test even if check(resource) fails. Change-Id: I4da541b7552d06eaffafda446e389bb552422cda
* | Improve tmpfile cleanup in functestsCedric Brandily2016-04-062-27/+26
| | | | | | | | | | | | | | | | | | | | | | This change replaces when possible homemade temporary file management by tempfile.NamedTemporaryFile[1][2] and defines only when needed a cleanup for a temporary file[2]. [1] functional/tests/compute/v2/test_keypair.py [2] functional/tests/object/v1/test_object.py Change-Id: I728ab96381ca9f3fd1f899dd50e5ceb5e97b9397
* | Remove unused method cleanup_tmpfileCedric Brandily2016-04-061-7/+0
|/ | | | | | This change removes unused cleanup_tmpfile method from functests code. Change-Id: I5d8e7edb0e50e94a5a469ce393d411b390b4db34
* Merge "Add fixed keypair create functional test"Jenkins2016-03-311-0/+26
|\
| * Add fixed keypair create functional testDean Troyer2016-03-301-0/+26
| | | | | | | | | | | | | | | | | | This adds a test case to exercise the --public-key option of the 'keypair create' command. It is a follow-on to I7a299a542d9df543bff43d3ea1e7907fc8c5f640 that fixed a key file read bug. Change-Id: Id78c1c7ece02f619aca69dc397185fc426b92306
* | Merge "Added functional tests for 'service provider' v3 commands"Jenkins2016-03-282-0/+78
|\ \
| * | Added functional tests for 'service provider' v3 commandsKristi Nikolla2016-03-282-0/+78
| |/ | | | | | | | | | | | | | | 'identity provider' commands had functional tests but 'service provider' commands did not. Added the tests in a similar way to how it is done it test_idp. Change-Id: Id4b24ef7d34db65c6b0260c89327ec9be683284d
* | Merge "Subnet: Add "subnet set" command using SDK"Jenkins2016-03-251-3/+0
|\ \ | |/ |/|
| * Subnet: Add "subnet set" command using SDKreedip2016-03-241-3/+0
| | | | | | | | | | | | | | | | | | | | This patch adds "subnet set" command to osc using sdk. Implements: blueprint neutron-client Closes-bug: #1542363 Change-Id: Id3b7f4b9190b4d73ca3ae423321a65f94a6da62e
* | Merge "Remove superfluous variable assignment statements"Jenkins2016-03-211-2/+0
|\ \
| * | Remove superfluous variable assignment statementsKyrylo Romanenko2016-03-211-2/+0
| | | | | | | | | | | | | | | | | | wait and interval are already defaulted in the function signature Change-Id: I66317a24f8327c464343ac13fc0126c34915eeda
* | | Style fix for one line docstring according to flake8Kyrylo Romanenko2016-03-211-1/+1
|/ / | | | | | | Change-Id: I639819a5b1d8a476cdd8b340b8c339754f471048
* | Functional tests for openstackclient help messagesKyrylo Romanenko2016-03-181-0/+65
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests for list and description for Server commands: - Check server commands in main help message. - Check list of server-related commands only. Commands: server add security group, server add volume, server create, server delete, server dump create, server image create, server list, server lock, server migrate, server pause, server reboot, server rebuild, server remove security group, server remove volume, server rescue, server resize, server resume, server set, server shelve, server show, server ssh, server start, server stop, server suspend, server unlock, server unpause, server unrescue, server unset, server unshelve. Change-Id: Ib4bf9ab0264fb482d36cf5688c0f939bcd2cb6d8
* Merge "Add subnet functional tests"Jenkins2016-03-141-0/+62
|\
| * Add subnet functional testsRichard Theis2016-03-041-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add subnet pool functional tests"Jenkins2016-03-101-0/+55
|\ \
| * | Add subnet pool functional testsRichard Theis2016-03-091-0/+55
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add port functional testsRichard Theis2016-03-081-0/+58
|/ | | | | | | | | Add functional tests for "os port" commands. Change-Id: I162eff6abacd9ffdde369647491ae472b604c692 Depends-On: I2bea508e11290284aa64b1ab548a0bb61e7290d3 Partial-Bug: #1519909 Partially-Implements: blueprint neutron-client
* Fix test_aggregate functional test2.2.0Richard Theis2016-03-031-1/+4
| | | | | | | | | | | | | | 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
* Make SetAggregate inherit from cliff.CommandTang Chen2016-02-271-0/+56
| | | | | | | | | | | | | 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
* Make SetAgent inherit from cliff.CommandTang Chen2016-02-271-0/+76
| | | | | | | | | 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
* Make SetSecurityGroup inherit from cliff.CommandTang Chen2016-02-271-7/+10
| | | | | | set/unset comamnd classes should inherit from cliff.Command class. Change-Id: Ie28711ac8823dc9eb13cf83877864ca436b928bc Partial-Bug: 1546065
* Make SetFlavor and UnsetFlavor inherit from cliff.CommandTang Chen2016-02-271-4/+13
| | | | | | set/unset comamnd classes should inherit from cliff.Command class. Change-Id: I54e5608ac0768d7d94b7f7d516ea1948daefdc1b Partial-Bug: 1546065
* Merge "Defaults are ignored with flake8"Jenkins2016-02-262-4/+4
|\
| * Defaults are ignored with flake8Tom Cocozzello2016-02-232-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add "security group rule show" command"Jenkins2016-02-231-0/+7
|\ \ | |/ |/|
| * Add "security group rule show" commandRichard Theis2016-02-231-0/+7
| | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add functional tests for "volume" commands v2"Jenkins2016-02-232-0/+80
|\ \
| * | Add functional tests for "volume" commands v2Tang Chen2016-02-212-0/+80
| |/ | | | | | | | | | | | | | | | | | | 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
* | Add functional tests for "image" command v2Tang Chen2016-02-212-0/+67
|/ | | | | | | | | | 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
* Merge "Refactor security group functional tests"Jenkins2016-02-152-0/+0
|\
| * Refactor security group functional testsRichard Theis2016-02-052-0/+0
| | | | | | | | | | | | | | | | | | | | | | 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
* | Add quota functional testsRichard Theis2016-02-122-0/+43
| | | | | | | | | | | | | | | | Add functional tests for "os quota" commands. Change-Id: I0f5939bf4ce553174c9b7ce55bdb3dce0506c409 Related-Bug: #1528249 Partially-Implements: blueprint neutron-client
* | Fix identity test_role functional testsRichard Theis2016-02-112-2/+2
| | | | | | | | | | | | | | | | | | | | A recent keystone change [1] resulted in the domain_id field being included when showing a role. [1] https://github.com/openstack/keystone/commit/407eabde417e85bb35bc7cbf1995857f4b20aeca Change-Id: I344f4d727f2a16217c075ad8b8393c1e0a233c2e Closes-Bug: #1544547
* | Merge "Add functional tests for snapshots"Jenkins2016-02-051-0/+82
|\ \
| * | Add functional tests for snapshotsTerryHowe2016-02-051-0/+82
| |/ | | | | | | Change-Id: I863583d6c8263d144d45a0443fc6af04301d23e7
* | Add recursive object delete for containersTerryHowe2016-02-051-1/+4
|/ | | | Change-Id: Ib291e79864c218464e842a08efd3742193ba5ff0
* Revert "Skip identity v2 functional tests"Richard Theis2016-02-019-24/+9
| | | | | | | | This reverts commit 5032dbc8074d5133c6b71610cd57d3c8da07c9b9 based on [1]. [1] https://review.openstack.org/#/c/274703/ Change-Id: Ic10ef7c37d71e452fbc4bd36e28be79d669b4e3f
* Skip identity v2 functional testsRichard Theis2016-01-299-9/+24
| | | | | | | | | | | 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
* Add router functional testsRichard Theis2016-01-251-0/+50
| | | | | | | | Add functional tests for the "os router" commands. Change-Id: I99045e6e2f548ac4206afcdb61940180e609a6bc Partial-bug: #1519503 Partially-implements: blueprint neutron-client
* Refactor "os availability zone list"Richard Theis2016-01-141-0/+25
| | | | | | | | | | | | 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
* Merge "Implementation for project unset cmd for python-openstackclient."Jenkins2016-01-041-3/+5
|\
| * Implementation for project unset cmd for python-openstackclient.Jude Job2016-01-041-3/+5
| | | | | | | | | | | | | | | | | | 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