summaryrefslogtreecommitdiff
path: root/functional/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add some functional tests for commands in VolumeV2"Jenkins2016-05-232-0/+131
|\
| * Add some functional tests for commands in VolumeV2Huanxuan Ao2016-05-232-0/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VolumeV2 lacked functional tests for qos specs and volume type commands, so I add them. These tests are quite similar to those in v1,just three difference: 1.Importing functional.common.test instead of functional.tests.volume.v1.common 2.Adding test_volume_type_set_unset_project() in test_volume_type.py. 3.Adding a test for "qos unset" command in test_qos.py Change-Id: Ic50e8c49ef01ac967c01ec41fb3f04cd51fea9e4
* | Merge "Add network support for "quota set""Jenkins2016-05-231-5/+4
|\ \
| * | Add network support for "quota set"Fang Zhen2016-05-191-5/+4
| |/ | | | | | | | | | | | | | | | | | | The "quota set" command support compute and volume quotas previously. This patch add support network. Partially-implements: blueprint neutron-client-quota Closes-bug: 1489441 Change-Id: I9d297f52bc30614b3493f09ed15f8f1d3f8ff952
* | Add functional tests for server group in ComputeV2Huanxuan Ao2016-05-211-0/+46
|/ | | | Change-Id: I43a6ce3a6d976f3d1bd68c0483c929977b660f0d
* Additional network protocol supportRichard Theis2016-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Add the following network protocol support to the "os security group rule create" command: - Add "--icmp-type" and "--icmp-code" options for Network v2 only. These options can be used to set the ICMP type and code for ICMP IP protocols. - Change the "--proto" option to "--protocol". Using the "--proto" option is still supported, but is no longer documented and may be deprecated in a future release. - Add the following Network v2 IP protocols to the "--protocol" option: "ah", "dccp", "egp", "esp", "gre", "igmp", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "udplite", "vrrp" and integer representations [0-255]. The "os security group rule list" command now supports displaying the ICMP type and code for security group rules with the ICMP IP protocols. Change-Id: Ic84bc92bc7aa5ac08f6ef91660eb6c125a200eb3 Closes-Bug: #1519512 Implements: blueprint neutron-client
* Merge "Fix functional test for floatingip add/remove in ComputeV2"Jenkins2016-05-111-6/+3
|\
| * Fix functional test for floatingip add/remove in ComputeV2Huanxuan Ao2016-05-111-6/+3
| | | | | | | | | | | | Updata test_server_attach_detach_floating_ip in test_server.py Change-Id: I2963991dfafbb17431b44e2f37bb26fa4daac9aa
* | Merge "Implement "address scope set" command"Jenkins2016-05-111-0/+49
|\ \ | |/ |/|
| * Implement "address scope set" commandHuanxuan Ao2016-05-111-0/+49
| | | | | | | | | | | | | | | | This patch add a command that supports setting address scope properties. Change-Id: I9c4b5068a8abb986a9dc18b167b48b924d16ff42 Closes-Bug: #1566269
* | Fix functional test failuresRichard Theis2016-05-071-9/+11
| | | | | | | | | | | | | | | | | | | | | | There have been a lot of functional test failures for compute and network. I believe they are timing related in that the test_server is sometimes booting a server with a flavor, image and/or network created by another functional test. Such resources are then deleted by the owning functional tests causing various types of failures Change-Id: Ib82edd487da46610374fb0eb5796cb98f2d3aa2c
* | bump timeout to prevent gate failuresSteve Martinelli2016-05-051-1/+1
| | | | | | | | | | | | | | attempt to fix the transient gate failures by increasing the timeout Change-Id: I837652013f94b0d1ed3f4b40fe14ce5a47c687b6
* | Merge "Add functional tests for commands of floating ip"Jenkins2016-05-051-0/+58
|\ \
| * | Add functional tests for commands of floating ipHuanxuan Ao2016-04-281-0/+58
| | | | | | | | | | | | | | | | | | This patch add functinal tests for commands of floating ip Change-Id: I7f29578d0e14884f21183bfb82228d2fe7b7a029
* | | Replace tempest-lib with tempest.libDaniel Gonzalez2016-04-2915-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | tempest-lib is deprecated, so replace it with tempest.lib. Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com> Change-Id: I0495eba110bb7581623fbcf49dc63a27e9cb6d64 Closes-Bug: #1553047
* | | Support quota show for current projectRichard Theis2016-04-211-0/+5
|/ / | | | | | | | | | | | | | | | | | | The "os quota show" command "<project/class>" argument is now optional. If not specified, the user's current project is used. This allows non-admin users to show quotas for their current project. Change-Id: I602d4cc09c9d29ce84271eff78137f8810cb1a47 Closes-Bug: #1572733
* | Merge "Update keypair tests"Jenkins2016-04-201-31/+131
|\ \
| * | Update keypair testsKyrylo Romanenko2016-04-191-31/+131
| |/ | | | | | | | | | | | | | | | | Make testcases separate instances of test class. Use setUp with addCleanup methods for every test case. Add negative test cases. Closes-Bug: #1564480 Change-Id: I5d8fd2a238e6cf0584777eb0d24dfcaed4133ee1
* | Merge "Update tests for server"Jenkins2016-04-201-56/+181
|\ \ | |/ |/|
| * Update tests for serverKyrylo Romanenko2016-04-201-57/+181
| | | | | | | | | | | | | | | | | | | | Make testcases separate instances of test class. Use setUp with addCleanup methods for every test case. Add more descriptive docstrings for tests. Closes-Bug: #1483422 Partial-Bug: #1566962 Change-Id: I1a16b5bad1dafd19fd7dc94794c0bd4587b7f516
* | 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-133-3/+3
| |/ / |/| | | | | | | | | | | | | | | | | 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
* | 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
|\