Commit Graph

9 Commits

Author SHA1 Message Date
Tim Burke fc15d0aa10 Use Pike Keystone
...now that we're using Pike Swift.

Change-Id: I27613b5f14fe1c88acbbb0e1d93acbabc1da189f
2017-10-13 21:28:00 +00:00
Tim Burke a8bbdd6646 Blacklist babel==2.4.0 in test-requirements
Sphinx wants babel!=2.0,>=1.3 which drags in 2.4.0, but oslo.i18n
(required by keystone) wants Babel!=2.4.0,>=2.3.4 leading to an
error when starting keystone.

Also, bump up the sleep before verifying that keystone is running
-- at just one second, keystone hadn't had a chance to raise the
ContextualVersionConflict yet. Further, verify that curl can actually
reach keystone on the expected port.

Change-Id: I6cbbfd7260571f42ea65c6622aa6b410a0e43b28
2017-06-13 21:32:50 +00:00
Tim Burke 170cdd711a Update how we set up Keystone
Use:

 * v3 auth
 * keystone-manage bootstrap
 * uwsgi

... which all brings us loads closer to Keystone's current documented
developer setup.

Change-Id: Id7a31545e6bfb0da900b1456d7baa449636f12d7
2017-01-17 23:15:03 +00:00
Tim Burke ebb01ddaab Unpin python-openstackclient in test-requirements.txt
...because the alternative is to add pins for one or more of

  * osc-lib
  * os-client-config
  * cliff
  * whatever else...

Also drop the unused OS_* env vars, as they make more-recent
python-openstackclient barf with

   TypeError: __init__() got an unexpected keyword argument 'project_name'

Change-Id: Ibfda43cfc28b5aa6530d4ab3a87a7bc696b9ca7c
2016-11-18 18:12:10 -08: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
Tim Burke 6fd8c2fad2 Purge any existing keystone DB before test runs
Previously, we attempted to do this via mysql, which doesn't make sense
and would lead to errors like:

    ERROR 1045 (28000): Access denied for user 'root'@'localhost'
    (using password: YES)

Now, we just delete the sqlite database if it exists. Keystone will
automatically initialize a new one on startup.

Change-Id: Id812d04f31e2917e341f7487d1f61a1c51bd60e9
2016-01-04 10:29:48 -08:00
Masaki Tsukuda 44b1e9fff9 Add functional tests of error for ACL
This patch adds functional tests of error for ACL's API.
Add following error tests.

PUT Bucket ACL
  SignatureDoesNotMatch
  NoSuchBucket
  AccessDenied
GET Bucket ACL
  SignatureDoesNotMatch
  NoSuchBucket
  AccessDenied
GET Object ACL
  SignatureDoesNotMatch
  NoSuchKey
  AccessDenied

note: since PUT Object ACL is not supported, this patch omits the test for this.
      add a method to each API.
      move PUT Bucket of each test method to setUp().
      remove tester2's admin permission for test of AccessDenied.

Change-Id: I5d0214a59d175719f7b895b21f83f97764bf88a2
2015-03-19 16:47:48 +09:00
Masaki Tsukuda 1ac8f82abb Draft: Change functional tests to the new structure.
I change functional tests to the new structure using nosetests.

Existing functional tests has the following problems.
- File name becomes the nonsense sequence number.
- Large quantity of files will be located in one directory when we add tests because it becomes 1 file every 1 test.
- Because the system is such that it is more special than other products of OpenStack, it is hard to develop it.

I think that the problem mentioned above are solved by this patch.

Change-Id: Ic75858ca1894e19f12c37b25559354f65fb48fa6
2015-03-11 11:11:24 +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