10042 Commits

Author SHA1 Message Date
Anusha Ramineni
f3eb9479e2 Use oslo.log library instead of system logging module
The constants of log levels were added in the 1.8 version of
the oslo.log library. So we can replace all usage of system
logging module with log module from oslo.log.

Change-Id: Ide50502f020eb1309648f4f9fc8a9c17aa1a1d9c
2017-01-16 05:56:54 +00:00
Jenkins
b4dd5de55b Merge "Add short options to tempest" 2017-01-12 17:30:38 +00:00
Nicolas Bock
ff27d3bb7a
Add short options to tempest
Add short options for '--smoke' and '--serial' to the tempest command
line arguments for compatibility with `run_tempest.sh`.

Change-Id: I2736637680f509e54c8c76df4a31490049dd4d4e
2017-01-12 06:04:33 -07:00
Jenkins
7821b648ff Merge "Use 'attach_volume' method" 2017-01-12 11:15:17 +00:00
Jenkins
802291bbc9 Merge "Removes unnecessary utf-8 encoding" 2017-01-12 09:58:28 +00:00
Jenkins
1313636b8e Merge "Fix a typo in 'attach_volume' docstring" 2017-01-12 00:44:20 +00:00
Jenkins
ccafc34888 Merge "Feature flag: allow disabling 'manage snapshot' tests" 2017-01-11 23:46:52 +00:00
Jenkins
04f8e83911 Merge "Define 'delete_volume' method as a static method" 2017-01-11 22:16:29 +00:00
Jordan Pittier
3125625e0f Feature flag: allow disabling 'manage snapshot' tests
Manage/unmanage snapshots is an optional feature of Cinder, not every
backend supports it. Thus we should disable the related tests by
default, and enable them on supported backends.

Change-Id: I77be1cf85a946bf72e852f6378f0d7b43af8023a
2017-01-11 14:29:49 +01:00
lkuchlan
d818ef3e8b Use 'attach_volume' method
Use 'attach_volume' method in order to reduce a duplication code

Change-Id: Ibf997dfa91e64c7c94a72438cb8f8a5fb7dfabb0
2017-01-11 12:22:22 +02:00
Jenkins
e3785d7092 Merge "Unmanage and manage snapshots" 2017-01-11 09:13:46 +00:00
Jenkins
6eb4671d34 Merge "Set PYTHON env variable for python3" 2017-01-09 23:31:00 +00:00
Jenkins
038069327c Merge "Add a test for reproducing bug/1651064" 2017-01-09 22:55:10 +00:00
Jenkins
28ba40bb7b Merge "Add related_bug() to 1629110's test" 2017-01-09 22:53:19 +00:00
lkuchlan
e9a1595f07 Define 'delete_volume' method as a static method
There is not need to define 'delete_volume' method as a class method

Change-Id: Ibb9c0013aa05cbae8d571eecc505e0d3f906f879
2017-01-09 13:55:46 +02:00
Jenkins
a37a21d083 Merge "Correct boundary value of image id length" 2017-01-08 12:09:14 +00:00
Jenkins
83eaf542d9 Merge "Remove 'id' from expected in SecurityGroupRulesTestJSON" 2017-01-08 06:52:17 +00:00
Jenkins
1a76ea2215 Merge "Deprecate the identity-feature-enabled.reseller config option." 2017-01-08 06:51:59 +00:00
Jenkins
665d944f87 Merge "Deprecate the volume_feature_enabled.volume_services feature flag" 2017-01-08 06:51:51 +00:00
lkuchlan
4643723291 Fix a typo in 'attach_volume' docstring
Removed redundant 's'

Change-Id: I01b5132c86c64bb6396b515aace0f022315a9aff
2017-01-08 08:29:25 +02:00
lkuchlan
cb2f859a05 Unmanage and manage snapshots
This feature provides the ability to import/export volume snapshot
from one Cinder to another and to import snapshots that have not been
managed by Cinder from a storage back end to Cinder.

Added:
- Api for snapshot-unmange
- Api for snapshot-manage
- New client 'snapshot_manage_client'
- 'delete_snapshot' method
Note: Cinder V1 does not support unmanage & manage snapshot.

Change-Id: Ib02fe171b07814aa12d311171dceac834ecbfe39
2017-01-07 21:37:14 +02:00
Jenkins
017f5a1ac3 Merge "Fix variable name" 2017-01-06 09:23:41 +00:00
Jenkins
035a8d1be6 Merge "Use base.delete_server in addCleanup" 2017-01-05 23:43:54 +00:00
Rodrigo Duarte Sousa
36f6882874 Fix variable name
The test was using the wrong variable for the TokenClient (token),
it has been merged since the patch who enables the feature was still
under review in DevStack. This patch fixes the issue by using the
correct variable name (non_admin_token).

Change-Id: Id97ca26f93b742cc3d8d49e98afc581f22360504
2017-01-05 20:37:27 -03:00
Jenkins
051ebd06b0 Merge "Add test namespace object functions in images" 2017-01-05 23:16:56 +00:00
Davanum Srinivas
00e3f45d82 Set PYTHON env variable for python3
Several .testr.conf files have tests to check for the
PYTHON env variable and fallback to "python". For
several python3 scenarios, we should set the PYTHON
variable so these scenarios actually use python3.

Change-Id: I55335d946dfd031e4501ca465564a933fa487871
2017-01-05 14:13:34 -05:00
Jordan Pittier
653f5cb70c Deprecate the volume_feature_enabled.volume_services feature flag
Now that Liberty is EOL, the feature flag is not needed anymore. But
we still need to deprecate it in order to remove it later.

Change-Id: I7073106988a79aad19c6b95bb050d2eaf00c36c0
2017-01-05 10:46:36 +01:00
Jenkins
5ac57dad9a Merge "Remove an unused variable in the BaseTestCase class" 2017-01-05 05:03:30 +00:00
zhufl
1355d98195 Use base.delete_server in addCleanup
The multi lines of addCleanup of server can be replaced by one calling
to addCleanup(base.delete_server)

Change-Id: I15d179b7131ada87c5a8841459adb81ddc7f56ab
2017-01-05 12:06:20 +08:00
Jenkins
d085fe5d5d Merge "Remove _migrate_server_to's return value" 2017-01-04 22:48:34 +00:00
Jenkins
3f568457a2 Merge "Remove the tempest/tests/negative/ directory" 2017-01-04 22:32:11 +00:00
Jenkins
94d9119e32 Merge "Check error message returned by the system" 2017-01-04 21:52:48 +00:00
Jordan Pittier
cf6a035d34 Deprecate the identity-feature-enabled.reseller config option.
All supported version of OpenStack now supports the 'reseller'
[1] feature. So let's deprecate the related feature flag.

[1]: http://specs.openstack.org/openstack/keystone-specs/specs/kilo/reseller.html

Change-Id: Ia86c6f351919bddf2611524bf0b143aa09dbddee
2017-01-04 19:57:36 +01:00
Jordan Pittier
e4be907e34 Remove an unused variable in the BaseTestCase class
The variable has become useless with the migration of the clients
to tempest/lib.

Change-Id: I98b655026a9cf2f9ba6d94d98c20fa46cc5dddbd
2017-01-04 19:17:35 +01:00
Jordan Pittier
965ef6ac6e Remove the tempest/tests/negative/ directory
It's empty and useless, let's just delete it.

Change-Id: I017b3ab3b9c74f8d860da53581ea86b65df48f87
2017-01-04 19:08:05 +01:00
zhufl
80223c38c6 Check error message returned by the system
Testcases should check the error message returned
by the system, not the error message defined in Tempest,
that is meaningless.

ref: https://tools.ietf.org/html/rfc7231#section-6.5.8

Change-Id: If84b7dc1f4b7681169d9041288169d81c5ebe586
2017-01-04 10:17:03 +08:00
Cao Xuan Hoang
3f0530b0ca Removes unnecessary utf-8 encoding
This patches removes unnecessary utf-8 encoding in
tempest/api/orchestration/stacks/test_swift_resources.py
tempest/tests/lib/test_tempest_lib.py
doc/source/conf.py
releasenotes/source/conf.py

For tempest/api/baremetal/admin/test_chassis.py
==> Still need the encoding for Non-ASCII characters in the file

Change-Id: I2e1bff1f64dfe08f40562fa51e08a8ba25c9c3ae
2017-01-04 09:12:29 +07:00
Jenkins
2ef46132e1 Merge "Replace six.iteritems with dict.items" 2017-01-04 01:55:49 +00:00
Jenkins
2a238889e1 Merge "Remove skip for Heat-Neutron tests" 2017-01-04 00:30:18 +00:00
guo yunxian
7bbbec1ed9 Replace six.iteritems with dict.items
As [1] mentioned, we should use dict.items instead of six.iteritems.
Let's use dict.items as it should return iterators in PY3 as well.
(As for PY2, the performance about list should be negligible)

[1] https://wiki.openstack.org/wiki/Python3

Change-Id: I77b3a71faa71b5f671daff3415e2ae58289fd3ca
2017-01-03 23:17:34 +00:00
Jenkins
50ca4b2bcd Merge "Check project connectivity on port admin state" 2017-01-03 22:37:53 +00:00
zhufl
655a8078de Remove 'id' from expected in SecurityGroupRulesTestJSON
In _check_expected_response, 'id' is no need to check,
so we can just remove it from cls.expected, instead of
skipping it in _check_expected_response.

Change-Id: I9a64264b4e30859450d7f1cacb1ce8ccbac740d9
2017-01-03 16:17:30 +08:00
zhufl
4a2cffffed Remove _migrate_server_to's return value
The return value of _migrate_server_to is never used, and
it seems will not be used in the future. This is to remove
it for the code clean.

Change-Id: I81184ed26b3c72590a749540b3ab6f79db8eb571
2017-01-03 15:47:07 +08:00
Jenkins
108ace85d3 Merge "Hacking: enable H904" 2016-12-30 18:46:34 +00:00
Jenkins
7f12f983f3 Merge "Remove redundant assertIn('id', xxx)" 2016-12-30 05:56:37 +00:00
Ken'ichi Ohmichi
d4e4b6de97 Add related_bug() to 1629110's test
test_update_attached_volume_with_nonexistent_volume_in_body has been
created for bug 1629110.
So this patch adds related_bug() for knowing related launchpad link
when the test fails on some envs.

Related-Bug: #1629110
Change-Id: I4f11831c03bb19955b90dbb6dbb6a992c9ea41c4
2016-12-28 06:49:31 +00:00
Dariusz Smigiel
8a535d6637 Remove skip for Heat-Neutron tests
This issue was fixed in the openstack/heat 7.0.0.0rc1.

Change-Id: I6f3a72e53648a57d17935124d57f370cb0b9dc5c
Related-Bug: #1546201
2016-12-27 16:22:51 +00:00
Jenkins
463d62a05f Merge "Do not use message=msg in InvalidConfiguration" 2016-12-27 13:26:02 +00:00
Jenkins
07741fbeba Merge "Removes unnecessary utf-8 coding" 2016-12-27 12:13:49 +00:00
Li Wei
37aff3ca9f Add test namespace object functions in images
Related link:
http://developer.openstack.org/api-ref/image/v2/metadefs-index.html

Co-Authored-By: guo yunxian <yunxian.guo@easystack.cn>
Change-Id: Ic60e3c78ade0eefe21f79c6bfb716beb13b08483
2016-12-27 18:14:36 +08:00