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
Use:
* v3 auth
* keystone-manage bootstrap
* uwsgi
... which all brings us loads closer to Keystone's current documented
developer setup.
Change-Id: Id7a31545e6bfb0da900b1456d7baa449636f12d7
...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
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
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
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
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