47 Commits

Author SHA1 Message Date
Tang Chen
0aa2304f38 Transfer "ip floating CRUD" to "floating ip CRUD"
This patch does the following things to transfer
"ip floating xxx" to "floating ip xxx":
* Add new command "floating ip create/delete/list/show", and doc.
* Deprecate "ip floating create/delete/list/show" command.

Change-Id: Ib071acaac81988431244e858bddafa7f93403df5
Implements: blueprint rework-ip-commands
Closes-bug: 1555990
Co-Authored-By: Dean Troyer <dtroyer@gmail.com>
2016-07-20 13:37:48 +08:00
Jenkins
52cb503fb0 Merge "Modify compute agent set command" 2016-07-14 09:22:21 +00:00
sunyajing
25bdf6811c Modify compute agent set command
Migrate ``compute agent set`` arguments: version, url, md5hash
to be optional.

BackwardsIncompatibleImpact

Change-Id: I092b7ed24274bafa548f0537c4586504be3a2825
Co-Authored-By: Huanxuan Ao <huanxuan.ao@easystack.cn>
2016-07-11 18:07:34 +08:00
Kyrylo Romanenko
259b4a1462 Deduplicate get_opts methods
One get_opts method can work instead of
get_list_opts and get_show_opts both.
Remove mutable default value.

Change-Id: I9c5683d416f0f3ed4989abab6f152b0341e30a4f
2016-07-05 15:39:03 +00:00
Huanxuan Ao
dbed97a24d Add "--property" option to "flavor create" command
Add "--property" option to "flavor create" command to support
adding properties to a new falvor.

Change-Id: I4f06b364375d5a81584fe41122d48e9568fa712a
Closes-Bug: #1596798
2016-06-29 19:16:35 +08:00
Kyrylo Romanenko
f2b73c2737 Fix several flake8 code style issues in compute tests.
Fix issues:
H402 one line docstring needs punctuation,
W503 line break before binary operator.

Change-Id: Ie93430898403f137e7b647a97a28b0d7a4ebb463
2016-06-24 14:45:19 +03:00
Richard Theis
d08cf31dc8 Improve server functional tests
Patch set [1] fixed timing issues related to the server functional
tests. As part of the review, additional enhancements were
suggested. This patch set provides those enhancements. In particular,
the functional tests will now check for the cirros256 flavor and
the cirros-*-uec image.

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

Change-Id: I7fe18e26b3d09db92bbe669ffafcd16618cae383
2016-06-23 08:30:22 -05:00
Huanxuan Ao
2d4a585841 Add functional test for "aggregate unset" command
There was not functional test for "aggregate unset"
command, this patch add the test.

Change-Id: Icc8f51e863231e915b2a8cca59baaedd54a96de5
2016-06-16 16:41:25 +08:00
Jenkins
1dfc7d4b94 Merge "Fix functest "test_server_metadata()" in test_sever.py" 2016-05-30 03:29:14 +00:00
Huanxuan Ao
366adf98c0 Fix functest "test_server_metadata()" in test_sever.py
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
2016-05-28 13:32:13 +08:00
Huanxuan Ao
e10a5979bc Add functional tests for server group in ComputeV2
Change-Id: I43a6ce3a6d976f3d1bd68c0483c929977b660f0d
2016-05-21 16:06:17 +08:00
Huanxuan Ao
0e0f314e2e Fix functional test for floatingip add/remove in ComputeV2
Updata test_server_attach_detach_floating_ip in test_server.py

Change-Id: I2963991dfafbb17431b44e2f37bb26fa4daac9aa
2016-05-11 14:58:52 +08:00
Richard Theis
c1dba6ab1b Fix functional test failures
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
2016-05-07 10:38:01 -05:00
Steve Martinelli
461a203f2d bump timeout to prevent gate failures
attempt to fix the transient gate failures by increasing the
timeout

Change-Id: I837652013f94b0d1ed3f4b40fe14ce5a47c687b6
2016-05-05 09:19:41 -07:00
Daniel Gonzalez
9ec41c0397 Replace tempest-lib with tempest.lib
tempest-lib is deprecated, so replace it with tempest.lib.

Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>

Change-Id: I0495eba110bb7581623fbcf49dc63a27e9cb6d64
Closes-Bug: #1553047
2016-04-29 08:33:45 +00:00
Jenkins
98a0fba3c1 Merge "Update keypair tests" 2016-04-20 19:40:44 +00:00
Jenkins
eb522fbb5e Merge "Update tests for server" 2016-04-20 16:11:39 +00:00
Kyrylo Romanenko
0e8c78c91a Update tests for server
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
2016-04-20 05:20:13 +00:00
Kyrylo Romanenko
ff62c832b5 Update keypair tests
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
2016-04-19 15:10:30 +03:00
Kyrylo Romanenko
573bb6b941 Use CommandFailed exception from tempest_lib
Remove exceptions.py from functional/common.
Import exception with the same code from the tempest_lib to tests.

Change-Id: Ifaa658209c18dd608836079f57ed18fcf10fb84e
2016-04-13 19:09:07 +03:00
Cedric Brandily
3c82c0e62e Improve tmpfile cleanup in functests
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
2016-04-06 00:40:44 +02:00
Dean Troyer
029654b9a8 Add fixed keypair create functional test
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
2016-03-30 15:58:42 -05:00
Jenkins
98dc781e94 Merge "Remove superfluous variable assignment statements" 2016-03-21 21:33:06 +00:00
Kyrylo Romanenko
526f2f9f77 Remove superfluous variable assignment statements
wait and interval are already defaulted in the function signature

Change-Id: I66317a24f8327c464343ac13fc0126c34915eeda
2016-03-21 19:32:11 +00:00
Kyrylo Romanenko
0a65e8df70 Style fix for one line docstring according to flake8
Change-Id: I639819a5b1d8a476cdd8b340b8c339754f471048
2016-03-21 18:32:44 +02: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
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
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
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
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
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
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
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
TerryHowe
ea103cab1d Add functional tests server reboot
Change-Id: I1699ac826519ccc177159423c7b6727ffaf4abff
2015-07-18 15:08:46 +00:00
TerryHowe
a9f85736ef Add functional tests server IP attach and detach
Change-Id: Id87a5474e2df80c9ef84a6c554f12116302a38b3
2015-07-18 09:08:26 -06:00
TerryHowe
d79900a075 Add functional tests for servers that require wait
Change-Id: I4c85b1e303ecb99458594e7743950b0668b3bdfc
2015-07-18 12:22:45 +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
TerryHowe
c7868451f5 Add functional tests for server CRUD
Change-Id: I77f292d47a9bea6a5b486ce513c0c19ec8c845dd
2015-06-11 18:10:03 +00:00
TerryHowe
83f5befc5e Add functional tests for flavor metadata
Change-Id: Iae7a3f61c0c9777ee2511558d8942243066a8c60
2015-06-11 08:37:35 -06:00
TerryHowe
b0ed8660b1 Add flavor functional test
Change-Id: I3166e1c3fb0f9b89cff8f083d30cb15e7196f59a
2015-06-11 08:32:56 -06:00
TerryHowe
46f61c87b8 Add functional tests for security group CRUD
Change-Id: Ib5bbd46c0454d7dbb541354d515430922569c994
2015-06-10 11:52:52 -06:00
Terry Howe
9186885553 Remove checks for None dates in keypair functional tests
Steve made a comment about this and I agree, we should try and
keep these tests and simple as possible and this kind of thing
doesn't add much value.

Change-Id: I1eb73e5f38904ee6c74f6c7e27fc66cfe198619d
2015-05-22 13:01:40 -07:00
TerryHowe
f8bbbdce24 Add support for keypair functional tests
Change-Id: I5d4730f8229b50d2b162864c74d8eabfef6c0991
2015-05-17 15:12:28 +00:00