68 Commits

Author SHA1 Message Date
Chaozhe.Chen
f4b8ae8f49 Move anyjson to test-requirements
As anyjson is just needed in our test code, better move it to
test-requirements to reduce dependency.

Change-Id: I43e568066b19bfc5109de9f9f2e2c12facbbb3f5
2016-02-20 23:32:41 +08:00
OpenStack Proposal Bot
3b95bbe9e0 Updated from global requirements
Change-Id: Ie88abfa5849ef315daf77b0f423dc44515f9e7d8
2016-02-11 07:38:36 +00:00
OpenStack Proposal Bot
1074dc7075 Updated from global requirements
Change-Id: I0cf8ca5627ce99997980bb06ad463a1a0b0e259e
2016-02-05 05:06:51 +00:00
OpenStack Proposal Bot
94ae8598b9 Updated from global requirements
Change-Id: Ia5570e89fd81f9cf4cae08628fda829c500e62e0
2016-01-17 01:09:46 +00:00
OpenStack Proposal Bot
288a74cd34 Updated from global requirements
Change-Id: I66e02ccb6d54acbae786e2aeed3df1518d7370fa
2015-12-23 00:31:54 +00:00
OpenStack Proposal Bot
5deda82684 Updated from global requirements
Change-Id: I115d45ba9f112ea8824eb7686cb1af69fadc72ff
2015-12-09 21:55:16 +00:00
OpenStack Proposal Bot
16721eabe8 Updated from global requirements
Change-Id: I494d2985735ed5ca5bc6ac3799c3650f70e95f5c
2015-11-21 16:17:40 +00:00
OpenStack Proposal Bot
1f47335bb5 Updated from global requirements
Change-Id: I7aa9545451d910681f114e856e8ab82e898b9f20
2015-11-12 22:07:31 +00:00
Michał Dulko
7da1684f3c Add reno for release notes management
Change-Id: Id4d6604d9775c34e9a8e911ec6e7afd02d56ef47
2015-11-05 14:58:17 +01:00
OpenStack Proposal Bot
a9151c2793 Updated from global requirements
Change-Id: I6c7b091b175f0564e215ec53134b319b874309a0
2015-10-17 00:22:37 +00:00
Davanum Srinivas
ec40c3b6dd Add testresources and testscenarios used by oslo.db fixture
If we use oslo.db fixtures, we'll need these 2 packages or
the next version of oslo.db release will break us.

Closes-Bug: #1503501
Change-Id: I8facdaf69c79b1b1ae4f9f64e9856e12f14440ed
2015-10-07 13:03:07 +00:00
OpenStack Proposal Bot
a992336d07 Updated from global requirements
Change-Id: Id75e695e0e25ad4505391dc1a5b131f8f2a9e9b8
2015-10-04 22:40:02 +00:00
OpenStack Proposal Bot
f7929182b9 Updated from global requirements
Change-Id: I0dbe12dc8517e72a4bf00e811ca68fb07dc822c8
2015-09-18 16:37:17 +00:00
OpenStack Proposal Bot
23e6cf9967 Updated from global requirements
Change-Id: I100c3680608c7448dba1da3bd839b4ff2dc17f8d
2015-09-08 22:01:48 +00:00
Robert Collins
4f513110e5 Remove unused dependency discover.
Change-Id: I271fe5958411f20f24eecebdfc9af2be238aa9e6
2015-08-26 21:09:34 +12:00
OpenStack Proposal Bot
60782f6f34 Updated from global requirements
Change-Id: I7614637649ed8f31862a240cb1be71529a501248
2015-08-20 11:20:08 +00:00
Eric Harney
6da01c1b41 Revert "mark oslo.vmware as optional dependency"
This reverts commit e67adc385ce6997249fbf70e9402264f758fc6f4.

Adding optional dependency tracking would be nice,
but Cinder is not yet in a place to do this.

- Cinder supports tox 1.6 (minversion in tox.ini)
- This functionality does not work on 1.6, requires 1.7.  Tox
  fails to build a test environment if using tox 1.6.
- We have decided we can't move to tox 1.7 for now.
  ( https://review.openstack.org/#/c/211614/ )

This reverts commit 478e8e970e54aaf3a034dc6347605c1b18291d0d.
- Need to remove oslo.vmware from test-requirements.txt now, as
well.

Closes-Bug: #1484035

Change-Id: Icff52508ff1cd67e8c17964c840d3a5cdcfbbce3
2015-08-18 16:28:36 -04:00
Jay S Bryant
478e8e970e Add oslo.vmware into test-requirements
run_tests.sh is currently broken due to the commit that made
installing oslo.vmware optional: e67adc385ce6997249fbf70e9402264f758fc6f4

There are test cases that require oslo.vmware and the change made in the
commit for tox doesn't cover the case where run_tests.sh is used.  Without
including oslo.vmware in the test-requirements file there are a number of
test cases that fail without the library installed.

This patch resolves the issue by move oslo.vmware over to the
test-requirements file.

Change-Id: I2ffd21a23552e39bdb220c4aaa0c5e372c52f7ce
2015-08-12 15:31:05 -05:00
Jenkins
b864ac106e Merge "Add bandit for security static analysis testing" 2015-08-06 01:19:39 +00:00
OpenStack Proposal Bot
2570be8713 Updated from global requirements
Change-Id: I0566ed07f359a0b993009a9dd08a01f16fc1b312
2015-08-04 18:14:09 +00:00
OpenStack Proposal Bot
77196fb705 Updated from global requirements
Change-Id: I28ca73bbf23d2a29fb58af4ce9975f0707d2639d
2015-08-01 23:39:49 +00:00
Eric Brown
6cddec7db9 Add bandit for security static analysis testing
This change adds a basic bandit config for Cinder. It can be invoked
by running the tox environment for bandit;
    tox -e bandit

This is intended as a starting point for using bandit with Cinder
and it should be revisited to improve the testing as more is learned
about the specific needs of the Cinder code base.

Tox is configured to only show results for high and medium severity
results.

https://wiki.openstack.org/wiki/Security/Projects/Bandit

Change-Id: I0247e0ccaed6faacacb2b8d2f8b141a8edc704af
2015-07-25 21:37:31 -07:00
OpenStack Proposal Bot
3c8696791c Updated from global requirements
Change-Id: I9f0773836a392b3a51490dc7cbf334f18407f009
2015-07-24 06:59:19 +00:00
OpenStack Proposal Bot
2b93b29011 Updated from global requirements
Change-Id: I4549af0e48c9b43b18ec9dafb8abff394d9d2fa7
2015-07-12 15:17:16 +00:00
OpenStack Proposal Bot
c960e50b6f Updated from global requirements
Change-Id: Iba1314c6d0aba78dc39ef018522f12b09b4586da
2015-06-30 22:37:40 +00:00
OpenStack Proposal Bot
39ddcffcac Updated from global requirements
Change-Id: I9395058b42f3e28a267f0d82ae8dfcb663bdfb9b
2015-06-22 21:24:09 +00:00
Jenkins
d873ceb704 Merge "Remove pretty_tox and use ostestr" 2015-06-15 21:23:17 +00:00
Alex Meade
8db2c109b4 NetApp E-Series: Add Fibre Channel Support
The NetApp driver for E-series product lines currently support iSCSI. This
patch adds Fibre Channel support to the E-Series driver. This driver reuses
the same functionality as the E-Series iSCSI driver except for the
initialize_connection and terminate_connection driver methods which make
full use of Cinder's FibreChannel zone manager.

DocImpact
Implements blueprint: add-fibre-channel-support-to-netapp-eseries
Co-Authored-By: Alex Meade <mr.alex.meade@gmail.com>
Co-Authored-By: Yogesh Kshirsagar <ykshirsa@netapp.com>

Change-Id: I130f473aaa27ace4cd16a98f75c797aa967715b3
2015-06-11 10:31:43 -04:00
John Griffith
68b4aad405 Remove pretty_tox and use ostestr
This patch dumps pretty_tox.sh and gets Cinder on board
with using ostestr.  We're setting a concurrency value
of 6 (instances in the gate are 6 VCPU's), and things
seem to be stable at this value.

For folks running on 'smaller' system, it's still possible
to run in parallell; > ncpu's but if there are problems you
can still specify concurrency in your tox argument.  Tox will
take the last occurence of the conncurrency argument; so for
example if you specify "tox -epy27 -- --concurrency=4" the
interpretted value for concurrency in the run will be 4.

Closes-Bug: #1459852

Change-Id: Iae12b42e915da22c863781015512df4f30aa95ca
2015-05-29 19:42:48 +00:00
Jeremy Stanley
953dcf737f Switch from MySQL-python to PyMySQL
As discussed in the Liberty Design Summit "Moving apps to Python 3"
cross-project workshop, the way forward in the near future is to
switch to the pure-python PyMySQL library as a default.

https://etherpad.openstack.org/p/liberty-cross-project-python3

Change-Id: Id90397af332408111f23001a16dad24b0195c595
2015-05-20 01:03:58 +00:00
OpenStack Proposal Bot
2e97c08711 Updated from global requirements
Change-Id: I6f3a3aee9af7752d2a2372d8177133925157dfb5
2015-05-15 03:34:56 +00:00
Julien Danjou
8e6ab7a555 tests: replace mox by mox3, clean out mox usage
This patch replaces mox3 by mox, so we can drop mox from requirements
and bring Python 3 compatibility. It also clear some mox usage and
use the fixture brought by oslotest.

Change-Id: Ia242425815b09e1e67d33702f1e5dbe6bcd599fd
2015-05-05 10:15:52 +02:00
OpenStack Proposal Bot
a850c95067 Updated from global requirements
Change-Id: I289c236da7680e22539dad22b5f98c298e69a633
2015-04-24 12:56:59 +00:00
Jenkins
a81b8d1a72 Merge "Move to hacking 0.10" 2015-03-26 17:57:06 +00:00
Joe Gordon
71fad66213 Move to hacking 0.10
Release notes: http://lists.openstack.org/pipermail/openstack-dev/2015-January/054165.html

Ignore some new rules that have more then 10 failures, fix ones that
have fewer.

Removed deleted hacking rules from tox.ini

Note: One of the main benefits of the new hacking, is flake8 enables
concurrency by default now, so it should be much faster.

Change-Id: Ie650fa3dc91434967ad05e61edd3bcc1d833bfb1
2015-03-25 10:02:15 -04:00
OpenStack Proposal Bot
c1702dfc55 Updated from global requirements
Change-Id: I6f506eaa69ba7ae26cd13403d0dec491848db3c6
2015-03-23 17:05:43 +00:00
Matthew Treinish
456db81765 Use subunit-trace to enable output during unit test runs
This commit adds the pretty_tox.sh script and the usage of
subunit-trace to the cinder unit test jobs. This also updates the
run_tests.sh script to use subunit-trace so it'll have consistent
output formatting with the tox job.

Change-Id: I8ceafb476dc488b388c7f63501ef48128d8383d2
2015-02-23 10:27:16 -05:00
Ivan Kolodyazhny
9b94302d7b DB migration tests
Refactored migration tests to use OpportunisticTestCase, removed
unused code and ``test_migrations.conf`` file.

The main feature of this approach is to create a new database with
random name for each migration test.  This will avoid migration tests of
race conditions and reduce tests intersection. After this change, database
``openstack_citest`` will be used only for initial connection to the database.

``test_migrations.conf`` file not required anymore, because we create test
database for migration test, so we no longer need to keep database credentials.

Implements blueprint: db-migration-tests
Related-bug: #1266595
Change-Id: I4febd485ff53936b636947c86773a23724e24c65
2014-12-15 12:56:56 +02:00
OpenStack Proposal Bot
aab739d419 Updated from global requirements
Change-Id: I58714f27507e2ec1117e23577ab082341b7a032b
2014-11-23 09:34:17 +00:00
OpenStack Proposal Bot
ecef5cb58b Updated from global requirements
Change-Id: I1908061f27f26413f484518e0bc1508af3608673
2014-11-18 11:30:11 +00:00
OpenStack Proposal Bot
78504a8fcc Updated from global requirements
Change-Id: Ib06608cdb8ce099ddc5f5f92aa33e6ba3c68e079
2014-11-10 22:58:13 +00:00
OpenStack Proposal Bot
fe5b75dc0b Updated from global requirements
Change-Id: I8ad37eb2e149aa1bb51ec71988e8dbbf6243118e
2014-10-15 23:40:34 +00:00
OpenStack Proposal Bot
e4cbcd8f29 Updated from global requirements
Change-Id: I948862c12267ac530c5aa136ac490b134b81d41d
2014-09-18 13:58:41 +00:00
OpenStack Proposal Bot
56ec6c0135 Updated from global requirements
Change-Id: Ie85ed9ad591edc3e38352fe0c7ee751a43557a38
2014-09-15 16:58:10 +00:00
Dolph Mathews
6ea28dca60 warn against sorting requirements
Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e
Closes-Bug: 1365061
2014-09-03 11:56:50 -05:00
Zhiteng Huang
9edb49f0fb Bump minimum hacking version to 0.9.2
Take advantage of newer version hacking to automate a few style checkings.
A change included this hacking update was proposed by OpenStack Proposal Bot
in earlier patch sets (before 19) but somehow it was missed in latter
proposals. (https://review.openstack.org/#/c/96206/)

Modified/New rules in 0.9.2:

Rule changes:
    * Report E129 instead of E125 for visually indented line with same indent
    * as next logical line.
    * Report E265 for space before block comment.
    * Report E713 and E714 when operators ``not in`` and ``is not`` are
    recommended (taken from hacking).
    * Report E131 instead of E121 / E126 if the hanging indent is not consistent
    within the same continuation block.  It helps when error E121 or E126 is
    in the ``ignore`` list.
    * Report E126 instead of E121 when the continuation line is hanging with
    extra indentation, even if indentation is not a multiple of 4.
    - Dropped H901,H902 as those are now in pep8 and enforced by E713 and E714
New rules:
    + H104  File contains nothing but comments
    + H305  imports not grouped correctly
    + H307  like imports should be grouped together
    + H405  multi line docstring summary not separated with an empty line
    + H904  Wrap long lines in parentheses instead of a backslash

These rules (including changed rules) are all disabled in this change if they
caues any pep8 checking failure, and will be turned on in follow-up patches
if considered useful.

Original commit message in openstack/requirements:

Hacking 0.9.1 was out for a while (hacking 0.9.0 had a minor bug in it, so its
blacklisted), and we want to start supporting projects to migrate over
to 0.9.x. Expand the upper bound to allow 0.9.x while still
supporting 0.8.x series so we keep the old version in our mirrors as to
not break anything.

Change-Id: Ifde0a550e7f9c76b0446759e9f690da2b2aafceb
2014-06-27 10:29:46 +00:00
OpenStack Proposal Bot
72b0278627 Updated from global requirements
Change-Id: Ie48624c9bbdebc4e595505f28448ce91d61e5d22
2014-06-18 16:06:13 +00:00
OpenStack Proposal Bot
d77c00d234 Updated from global requirements
Change-Id: I6baf865f537abb71258fdfebe89403f7076c2765
2014-05-26 23:48:46 +00:00
Mark Sturdevant
f2a6e77bc7 eliminate the need for hplefthandclient in tests
In order to eliminate the need to have the hplefthandclient in the
global-requirements project, we need to remove the hplefthandclient
from being imported in all HP LeftHand driver unit tests in cinder.

Change-Id: I4009ea17b507b1deb2a567dd420f309e15aaf92d
Closes-Bug: #1316824
2014-05-12 15:09:17 -07:00
Mark Sturdevant
541cc9d53a eliminate the need for hp3parclient in tests
In order to eliminate the need to have the hp3parclient in the
global-requirements project, we need to remove the hp3parclient
from being imported in all 3par driver unit tests in cinder.

Closes-Bug: #1315195
Change-Id: Ife5c70871e742be5970be8f0284e12554f93cab4
2014-05-07 23:00:27 -07:00