Commit Graph

35 Commits

Author SHA1 Message Date
Tim Burke b3efa1465c Fix the gate
Following PyCQA/astroid@206d8a2 we sarted getting a whole bunch of
errors like

    E:266,44: Value 'headers' doesn't support membership test

and

    E:267,25: Value 'headers' is unsubscriptable

Digging around a bit, apparently astroid thinks the headers returned
from call_app will always be None -- I guess it doesn't like our use of
a list to work around py2's lack of `nonlocal`.

By using a proper object to encapsulate state, we can shut up those
"error"s.

Also, pin upper-constraints to pike for keystone-related jobs.

Change-Id: I5ff21260872f4089b030cd94e494dc346ae74b8e
2018-05-29 10:35:38 -07:00
Tim Burke fc15d0aa10 Use Pike Keystone
...now that we're using Pike Swift.

Change-Id: I27613b5f14fe1c88acbbb0e1d93acbabc1da189f
2017-10-13 21:28:00 +00:00
Kota Tsuyuzaki 1fb6a30ee5 Change log updates for version 1.12
Change-Id: Iba7303f0e16560310db4d8a375c1d027c65fe748
2017-10-13 16:54:06 +09:00
Tim Burke 397ed3ab6a Add support for upper-constraints.txt
...and pin us to stable/newton. (I wanted stable/mitaka so it'd match
Keystone, but apparently then pbr is too old for Keystone to install
a keystone-wsgi-admin script.)

This prevents various version conflicts; the most recent was from
oslo.service blocking too-new eventlet.

Change-Id: I115dc231a9156a5bceacaa21d6242bb934fbbd24
Related-Change: I3b2196fdef9936f1c7d468f9c7c9b9246d3d26fd
Related-Change: I6cbbfd7260571f42ea65c6622aa6b410a0e43b28
2017-07-28 00:53:44 +00:00
Jenkins de8fe28278 Merge "Enable H203 to prevent assertIs(None, ...) regressions" 2017-04-25 02:23:46 +00:00
Tim Burke 831858aa19 Enable H203 to prevent assertIs(None, ...) regressions
Change-Id: I7cf58c1855054b379802b57ba2c563174d4a37da
2017-04-19 21:00:51 +00:00
Tim Burke 1069659fbe Prohibit certain versions of requests in test-requirements.txt
This prevents version conflicts when Keystone drags in a too-new
oslo.policy, which blackballs latest requests (but Sphinx would try to
pull it in anyway).

Change-Id: I3b2196fdef9936f1c7d468f9c7c9b9246d3d26fd
2017-03-16 19:44:11 +00:00
Kota Tsuyuzaki 31d4353bf1 Bump minimum Swift requirement to Ocata stable
And this also removes redundant code to support Swift < 2.6.0.

Change-Id: I978f9dcc1433f66e62cab76a05525714eba75c64
2017-02-21 13:57:01 -08:00
karen chan e1520f4ec9 Exclude "scratch" in tox flake8
After running "tox -e s3tests_tempauth", there are python files from
ceph-tests in swift3/test/functional/scratch directory that fail flake8
so we should just ignore the scratch directory.

Change-Id: I7f0e89c4da7590d5929b2f65a81fc6ddeb0ffe37
2016-12-20 05:44:44 -08:00
Tim Burke 0982119899 Shorten ceph s3-tests tox environment names
Apparently long names cause issues when the job is running in the gate?

Change-Id: I4b9def2ce867580fb0f5b6b64818eef6d65b7a43
Related-Change: I80a7a32a415c27ac9de9d72591ed293ac8546cba
2016-12-05 17:11:53 -08:00
Tim Burke 9ddb80b1a6 Add ceph-s3-tests tox env
Change-Id: I017b61368e873f1b638362827e86651c548cf73d
2016-11-23 00:21:21 +00:00
Jenkins 6c12c58867 Merge "Add new tox environment with Swift master branch" 2016-08-31 23:47:19 +00:00
Jenkins 66647f42b3 Merge "List system dependencies for running common tests" 2016-08-27 00:35:22 +00:00
Andreas Jaeger c43109049f List system dependencies for running common tests
Add a bindep.txt file containing a cross-platform list
of dependencies needed for running included tox-based tests. Also
include a tox environment for convenience calling the bindep[*]
utility to list any missing system requirements.

This change is self-testing.

For bindep.txt see also
http://docs.openstack.org/infra/manual/drivers.html#package-requirements

[*] http://docs.openstack.org/infra/bindep/

Change-Id: I736a4e68ab376e64b5f5adf8406c396a631799ee
2016-08-25 17:25:40 -07:00
Tim Burke 944bc9e353 Update pep8 config to (mostly) match upstream swift
The combination of select and ignore options doesn't do what we want,
anyway. Now, we won't regress on a number of issues, like H234, H235,
and E127.

Also added H237 to ignore list, as we currently trip

    module multifile is removed in Python 3

... in test/functional/test_object.py

Change-Id: Id746552bc024e726e29105c077057e46e248a0a8
Related-Change: I41d63b9467083d7606ad18aaa398ca7738b27fae
2016-07-05 22:24:28 -07:00
Tim Burke cab9c845ac Make Swift/Keystone logs available in gate results
While we're at it, abort on *any* failure in setup_keystone.

Change-Id: I08510a4825366a3ba1a8d667905cd9141fd5426e
2016-04-15 12:42:47 -07:00
Kota Tsuyuzaki 7fc85eaaaa Bump Swift/Keystone versions to Mitaka Release
The reason we need to support Mitaka release is to support
Amazon signature v4 staff. This includes a part of sig v4 patch
to enable recent keystone to work well.

Change-Id: I24c0c31f6b02f3832979f29539402f875e73f046
2016-04-15 00:45:57 -07:00
janonymous 0220021900 py26 is no longer supported by Infra's CI
Python 2.6 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it too.

Change-Id: Ifdf6a79c5ce4b7e2103daa3ffd3216fbf2a0d18e
2016-01-06 15:52:29 -08:00
Ondřej Nový 0579874d35 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I244750d81a17546418e4281365039f569190edff
2015-12-11 21:28:38 +01:00
Tim Burke a8cf51a081 Pin PyECLib==1.0.7
...similar to what's been done but not released in stable/kilo Swift.

See also: I4314c31ae80364c3497b6d71f1a180a8cceba9d1 (requirements change)
See also: Ic09f5245b51e1aba2c4ea549126bdb51886ed36c (Swift change)

Change-Id: Iba35074c8f67a5bc41feccd794f30285ec5e7741
2015-09-16 21:20:26 +00:00
Kota Tsuyuzaki 3ce19c730a Add new tox environment with Swift master branch
This is prep for making new testing environment with
master branch of Swift. Currently, we tests just for stable
version because Swift master branch doesn't care our third
party middleware. However, Swift3 seems being major stuff
for some companies.

In my consideration, I hope this tox will be just a notification
(i.e. non-voting) for Swift and Swift3 when making a new patch.

Change-Id: I4c667a56967f10d4c129fbd8165372b0976fa853
2015-08-25 19:41:31 -07:00
Tim Burke fd58f579ae Update version of keystone used for functests
Previously, the gate tests used a version of keystone that didn't have a
cap on oslo.config. This led to gate checks failing because they pulled
in a version of oslo.config that broke backward compatibility. Even if
we updated within icehouse, the last oslo.messaging does not include a
cap on oslo.utils, which *also* broke backwards compatibility.

Now, we'll install the most recently released version of keystone,
updating some testing and example config along the way.

Change-Id: Id357975413094bab751c5b8549d9201e9232af7f
2015-08-12 21:03:07 +00:00
Kota Tsuyuzaki 252b5dda4e Bump supported Swift version up to Kilo
Change-Id: I5d8d4c58b32bf1bb47343064448af043b2dec09c
2015-06-03 05:46:51 -07:00
Masaki Tsukuda cd84a006db Add environment of s3acl to tox
Currently, functional tests when s3acl is effective does not exist.
So, this patch add environment of functional tests for s3acl to tox.

Fix test_object.py because it is not pass the test for the following bug.
https://bugs.launchpad.net/swift3/+bug/1433391

Change-Id: I21e15d3cb74c5752daaeae2587c1123c46aa52d6
2015-03-20 15:42:41 +09:00
Jenkins e74328b288 Merge "tox: update swift version to 2.1.0" 2014-09-03 12:47:15 +00:00
MORITA Kazutaka d4d737c0c9 tox: update swift version to 2.1.0
The Swift 2.1.0 includes the header capitalization patch
https://review.openstack.org/93780/, which is required for Swift3.

Let's use the version for development.

Change-Id: I2b49ca8362234e1d74f44cdb90ccb551fb31fc45
2014-09-03 09:43:07 +09:00
Kota Tsuyuzaki 9bf2ff8482 Add support for non-ascii string
Swift3 doesn't support a non-ascii string because
the lxml library handles it as unicode, which Swift
doesn't expect. This patch introduces a wrapper Element
class which handles its text property as a utf8 string.

Change-Id: Ie4add6ca3d678400306d2404e2e1ee447ad54755
2014-09-01 19:08:20 -07:00
MORITA Kazutaka 373e4158c7 tox: update pep8 parameters based on the latest Swift
This also fixes newly detected style errors.

Change-Id: Ib0c2241986415ec0246611c2155dc1d773399b3a
2014-08-06 23:38:34 +09:00
Kota Tsuyuzaki 6eadd46377 cleanup dependency in tox.ini
This removes unnecessary dependency from deps list because
all tests except keystone don't require keystone package.

Change-Id: I67cb4b74782e565082c1fc1ebab6f5fe6204a38b
2014-07-09 23:03:44 -07:00
MORITA Kazutaka 7f1e9516a8 tox: update swift version
There some features we can make use of in Swift 2.0:

 - HEAD requests support if-modified and if-unmodified headers.
 - PUT requests support if-none-match headers.  It can be used for copy
   requests.

Let's hack with the latest Swift!

Change-Id: I29c6c42513b4387919f954c478cdd8f35280fd83
2014-07-09 00:18:04 +09:00
MORITA Kazutaka a7373a55f5 test: add support for functional tests
This patch adds an xfstests-style functional test suite.  Run "tox -e tempauth"
to test swift3 with TempAuth, and "tox -e keystone" to test with the Keystone
auth system.  You don't need to prepare Swift and Keystone system for that.
They will be started with minimum configuration automatically.

If you already have a Swift cluster for the functional test, run "./check" in
the test directory directly.  Individual tests can be run using "./check 003",
and various other options are also supported.  Try "./check -h" for more
information.

I added some sample test cases but they are not enough at all obviously.  More
tests will be added soon.

Change-Id: I75abce574768abbe88f60d8c1eee87757651e357
2014-06-26 12:28:04 +09:00
MORITA Kazutaka 32d8f7fbe8 tox: add support for pylint
This also fixes a bug detected by pylint.

Change-Id: I378c5766d375d72db3d58581bcee6b3d02c0352b
2014-06-11 15:58:46 +09:00
MORITA Kazutaka ee9f9aad99 Use openstack.nose_plugin for tests
With this change, we get similar nosetest output as other OpenStack projects do.

Change-Id: I0f6692e4cfef04c4fdea8a7a65ad6b73468f7c44
2014-04-18 15:50:12 +09:00
MORITA Kazutaka c0d14da8a4 Improve coverage report
This creates a HTML coverage report with branch coverage information.

Change-Id: I26e5b65d3288ffa517dcfccb3dbf0c533d6bf8d2
2014-04-16 10:55:54 +09:00
MORITA Kazutaka 9a8e79ffcb Add tox-based tests support
Change-Id: I01715ba96a062e7a297b3f8ccbbbcbb7bff83763
2014-03-26 12:15:09 +09:00