summaryrefslogtreecommitdiff
path: root/functional
Commit message (Collapse)AuthorAgeFilesLines
* Add functional tests for IP availabilityManjeet Singh Bhatia2016-06-061-0/+53
| | | | | | | This patch adds functional tests for IP availability Partially-Implements: blueprint neutron-ip-capacity Change-Id: I1c1dc01801707fe8f0dc3c976e5d345d2b0db0ec
* Fix --enable options on commandsRichard Theis2016-06-021-3/+3
| | | | | | | | | | | | The --enable option on commands is ignored when the arguments are parsed. This is related to the --enable-beta-commands option. Renaming the option to --os-beta-command fixes the problem. There's no need to handle backwards compatibility for the option name change because there hasn't been an OSC release yet with beta commands. Change-Id: I0327ba8a2058858a83e9a42e231470ed733cc834 Closes-Bug: #1588384
* Merge "Add network segment command object"Jenkins2016-05-301-0/+60
|\
| * Add network segment command objectRichard Theis2016-05-271-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add network segment command object in support of routed networks. This patch set includes documentation, unit tests and functional tests (currently skipped until segments enabled in neutron by default) for the following new commands: - "os network segment list" - "os network segment show" These new commands are currently marked as beta commands. Change-Id: I1a79b48dc6820fe2a39fcceb11c8cae3bda413a0 Partially-Implements: blueprint routed-networks
* | Merge "Add "image unset" command"Jenkins2016-05-301-0/+9
|\ \
| * | Add "image unset" commandsunyajing2016-05-281-0/+9
| |/ | | | | | | | | | | | | | | This patch add a command that supports unsetting image tags and properties Change-Id: I6f2cf45a61ff89da6664f3a34ae49fdd85d8c986 Closes-Bug:#1582968
* | Merge "Fix functest "test_server_metadata()" in test_sever.py"Jenkins2016-05-301-0/+8
|\ \ | |/ |/|
| * Fix functest "test_server_metadata()" in test_sever.pyHuanxuan Ao2016-05-281-0/+8
| | | | | | | | | | | | | | | | There is only a functional test for "server set" command in test_server_metadata(), we also need a functional test for "server unset" command, so I add it in this patch. Change-Id: I23c40ac1c5adcc2563d8aa9dcb5551df695e98e3
* | 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-2916-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Deduplicate CLI output parser code in test.pyKyrylo Romanenko2016-04-191-59/+4
| |/ |/| | | | | | | | | Use methods from tempest-lib.cli.output_parser. Change-Id: I0655141a0ef967675e41b1da49cf999da3382018
* | 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
|\