121 Commits

Author SHA1 Message Date
David Höppner
d6f7cbc484 Update sample_data.sh to match docs
Confirm more with the "OpenStack Install and Deploy Manual."

Change-Id: I46ab7e8e5ccdf389cbc60fee84c063f289155781
Fixes: bug #1073291
2013-02-18 21:34:31 +01:00
Mark McLoughlin
909c44a0fb Use oslo-config-2013.1b3
The cfg API is now available via the oslo-config library, so switch to
it and remove the copied-and-pasted version.

Add the 2013.1b3 tarball to tools/pip-requires - this will be changed
to 'oslo-config>=2013.1' when oslo-config is published to pypi. This
will happen in time for grizzly final.

Remove the 'deps = pep8==1.3.3' from tox.ini as it means all the other
deps get installed with easy_install which can't install oslo-config
from the URL.

Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc
2013-02-18 12:16:47 +00:00
Dolph Mathews
beaad83fc3 Add pysqlite as explicit test dep
Change-Id: I90d2d43ebeab5f3b638acd45af26272e2119bf50
2013-02-15 14:35:42 -06:00
Matthew Treinish
2ab990ba43 Use install_venv_common.py from oslo.
This syncs install_venv_common.py from oslo and reworks the
tools/install_venv.py script to use the new library.

Change-Id: I68fe3449ed0fcc7fdfb84af2dcc77a39ebde7f01
2013-02-12 10:53:30 -05:00
Joe Gordon
cdfbbc6f1d import tools/flakes from oslo
Change-Id: I4b73fa1eb045517bb25932d1a85c7fab8186d251
2013-01-30 13:44:48 -08:00
Sascha Peilicke
a5b7fcf5f9 Update to requests>=1.0.0 for keystoneclient.
The requests module dropped all configuration with the 1.0.0 release.
There's no danger_mode and no 'verbose'' mode. The former shouldn't
be necessary anymore and the latter can be done by setting a different
log handler for the request.logging root logger.

Related to https://review.openstack.org/#/c/20127/

Change-Id: Ide43a41b5481daede96e142d1a4f6519e33c21bf
2013-01-25 15:16:32 +01:00
Jenkins
0c21f3d156 Merge "Cleanup keystoneclient testing requirements" 2013-01-10 22:53:28 +00:00
Jenkins
cf3a3379c8 Merge "adds keyring to test-requires" 2013-01-10 01:12:49 +00:00
Dolph Mathews
4e1cab81e3 Cleanup keystoneclient testing requirements
Change-Id: I9f3a3be700c3d27c600092ce339428a34d73c22e
2013-01-09 15:51:52 -06:00
Ken Pepple
ea282cb427 adds keyring to test-requires
bug 1096466

Change-Id: I3bc2837f1dd067863acc6e888869604261d88090
2013-01-05 14:23:24 -08:00
Doug Hellmann
64672bdeb1 Upgrade WebOb to 1.2.3
The version of WebOb being used in OpenStack was more than
1 year old. This change updates to the latest stable release.

Upgrading WebOb resolves a version conflict between OpenStack
and Pecan, the web framework used by the Ceilometer team for
version 2 of the ceilometer API.

Refer to http://docs.webob.org/en/latest/news.html
for the list of changes between 1.0.8 and 1.2.3.

bug 1092227

Change-Id: If68866122e6c492b03887af5953ab7cad01787ba
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-01-03 11:08:15 -05:00
Chuck Short
a0e06a8e96 Add pyflakes to tox.ini
Add the ability to use pyflakes.

Change-Id: I1c0a652258fd494bf6754b5b83c47166582a85d0
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2012-12-24 08:21:38 -06:00
Adam Young
a591b3010c add in pip requires for requests
Change-Id: I0f5ac9a4008dc471cefea7a6ffe44d4c51950538
2012-12-20 20:56:28 -05:00
Henry Nash
e59360da67 Import auth_token middleware from keystoneclient
Although the master auth_token file is now in keystoneclient, it will take
some time to get all the paste files to point to it there rather than here.
Hence, we import it back here to provide backward compatibility for a release
or so, after which we will remove it from the server.

Change-Id: Iccdb7839a611cdda233e4ea96f68c64d6d82f49c
2012-11-19 09:50:17 -08:00
Jaroslav Henner
90ebf9fb69 Make the controller addresses configurable.
The addresses in sample_data were hard-coded to localhost. This is
a problem when deploying not-so-all-in-one deployment -- one controller
and couple of compute nodes. It was also complicating access from
outside.

Change-Id: Iee53c3f4376c3628e1543afb6dc7e964a3a14ab2
2012-11-16 07:09:55 +01:00
Alan Pevec
b446a770a6 Fix default port for identity.internalURL
This should be the public_port and not the admin one.

Sync with default_catalog.templates change
commit 773f0f84af282cd3e53650ccbb99284c37677b6a

Change-Id: Ibb81a06607d94648993768c8b2e7161bf57195a1
2012-11-08 22:58:54 +01:00
Ionuț Arțăriși
c53ffe5986 pin sqlalchemy to 0.7
sqlalchemy 0.8.0b1 breaks some dependencies such as sqlalchemy-migrate, pin the version until we fix them

Fixes bug #1073569

Change-Id: I6620276bf8f0a7cbc1d51aa226cd33c512e59a48
2012-10-31 15:36:10 +01:00
Monty Taylor
9de5309496 Use setup.py develop to insert code into venv.
Change-Id: I41ebfe5165aa315ea6c9900f10e48ad6fb9e1e6f
2012-10-09 08:46:40 -07:00
Dolph Mathews
c585193788 Replaced underscores with dashes
Change-Id: I8e59891c6a532b9aaeffd2b69608ae4c7a4d2ab7
2012-10-04 13:48:12 +00:00
Alan Pevec
7b0a26446f add Swift endpoint in sample data
Change-Id: Idb1274adbcc28ccddc737d900062f5b8a5f81791
2012-09-17 20:51:49 +02:00
Alan Pevec
5d541057d7 add Quantum endpoint in sample data
Change-Id: Icd8166efec04e4adc18ecf7c96d43fbc4962cbeb
2012-09-13 14:37:06 +02:00
Jenkins
035a956f20 Merge "Add nosehtmloutput as a test dependency." 2012-08-24 13:29:52 +00:00
Joe Heck
861670e091 pep8 1.3.3 cleanup
removing unused imports

Change-Id: I0472fd074bbe0b2ec07f1548f3930df339523465
2012-08-24 01:19:45 +00:00
Clark Boylan
39741058fa Add nosehtmloutput as a test dependency.
Adding nosehtmloutput as a test dependency allows nose to output its
results to an html file. This will be used by Jenkins to save logs on
a different server.

Change-Id: Ic19030cc4cc8fcf99ee9442de175f38ac6126776
2012-08-21 14:25:41 -07:00
Monty Taylor
c3696ba44e Use sdist tarball instead of zipball.
Change-Id: I6d334e21a727c2585053bef233079e276a5a4a21
2012-07-05 09:06:22 -05:00
Jenkins
64aee0626b Merge "pep8 v1.3.3 compliance (bug 1019498)" 2012-07-03 21:27:52 +00:00
Jenkins
e65ddacef8 Merge "Set iso8601 module as default dependence." 2012-07-03 19:24:57 +00:00
Jenkins
a9bdb80527 Merge "setting up babel for i18n work blueprint start-keystone-i18n" 2012-07-03 17:18:41 +00:00
Chmouel Boudjnah
f648819f02 Set iso8601 module as default dependence.
- The iso8601 module is needed by the openstack.common.common.timeutils
  module and not just for testing anymore.
- Fixes bug 1020613.

Change-Id: Iee535b961cc2ac9530e31f4ff4d8c64a1822643f
2012-07-03 15:12:03 +00:00
Monty Taylor
4202f7029b Use PyPI for keystoneclient.
Change-Id: I12ad5d6a4ca25ccd6610ee6282c0e2fc58c57261
2012-07-02 18:26:26 -04:00
Dolph Mathews
39b20acc93 pep8 v1.3.3 compliance (bug 1019498)
Change-Id: I7254a363a80248ecb6c2889968bc43ed44cd4383
2012-07-02 08:58:32 -05:00
Joe Heck
e0136d2f7c setting up babel for i18n work
blueprint start-keystone-i18n

Change-Id: Ie18daada4b537b74a27aa1defe676698d9944468
2012-06-21 18:03:09 -07:00
Monty Taylor
e33a4742a8 Clean up test requires a bit.
The main culprit here was prettytable - but because of the way this was
working, it was causing intermittent transient network issues from pypi in
the devstack gates.

Change-Id: I62117116c850361c5e2de7e6485c14ef43007c1d
2012-06-16 13:01:39 -04:00
Jenkins
dd59347b65 Merge "Changed arguments in keystone CLI for consistency." 2012-05-29 21:07:53 +00:00
Dan Prince
56492c2374 Nail prettytable test dependency at 0.5.0.
Prettytable 0.6.0 has a bad md5sum in PyPi and as such causes tests
to fail when creating a new venv. Nail the version to 0.5.0.

Fixes LP Bug #1000757.

Change-Id: I121ba8d411e47c2fe154370d9c3c941e25331ce6
2012-05-17 10:38:30 -04:00
Everett Toews
2ee73cca01 Changed arguments in keystone CLI for consistency.
Changed --user to --user_id and --role to --role_id in the keystone client for
consistency. Need to update keystone calls here.

This change should be applied after [bug/994744 b7fe11c] in
python-keystoneclient.

Fixes bug 994744.

Change-Id: I234c1d46c0d92a6a00ebb25c5dfbba69cd46be52
2012-05-16 15:55:23 +00:00
James E. Blair
67ee761a9d Add distribute to test-requires.
Currently glance (which is required for testing by keystone because
there is no python-glanceclient yet) requires distribute>=0.6.24,
but it can't be installed as a dependency of a dependency.  Requiring
it explicitly here should help.

Also, this helps standardize the distribute requirement across all
projects.

Change-Id: I346c0fb7c2203b9889b39ae8df1f8c594bbe49ae
2012-04-17 12:15:27 -07:00
Maru Newby
f3af691863 Improve swift_auth test coverage + Minor fixes
* Isolates authorize() tests from wsgi tests
 * Adds coverage for authorize()
 * Adds support for a blank reseller_prefix
 * Adds swift_auth test dependencies to tools/test-requires
 * Cleans up authorize()'s use of tenant_id/tenant_name
   (addresses bug 963546)

Change-Id: I603b89ab4fe8559b0f5d72528afd659ee0f0bce1
2012-03-23 16:24:53 -07:00
Alan Pevec
f8cbd611cf sample_data.sh: check file paths for packaged installations
v4: try to use system-wide configuration first
    then fallback to assuming git checkout

Change-Id: I6916f554cb9848fcb2d090e142b8915ad19a7486
2012-03-13 17:34:43 +01:00
Chmouel Boudjnah
1e07b98d77 Fix iso8601 import/use and date comparaison.
- Store the unix time from iso8601.parse_date to compare against
  time.time.
- on a WSGI environement the import don't get passed to the methods from
  __init__ use a self. variable.
- Fixes bug 951603.
- Add unit tests.
- Add iso8601 to test-requires.

Change-Id: Ia8af8b203d1310d5ae6868c3a14dfdf68d6e5331
2012-03-12 22:48:49 +01:00
Jenkins
9d245f8b68 Merge "create service endpoints in sample data" 2012-03-11 01:54:48 +00:00
Dolph Mathews
5720730c2e Added license header (bug 929663)
Change-Id: Ia36a22f2d6bba411e4fad81ea2d6fa1f0465a733
2012-03-09 18:49:45 +00:00
Alan Pevec
2f4fb46159 create service endpoints in sample data
Enable creation of endpoints by setting ENABLE_ENDPOINTS environment
variable. Works with Catalog SQL backend.

Change-Id: I9ba0ea1b3cf35720fb338e91f48fcbddc326971b
2012-03-09 08:21:18 +01:00
Alan Pevec
71aa1db60f fix Nova Volume Service in sample data
Change-Id: Ic6bb8ddea1ab894076d1580f5dbbe535aa668a8a
2012-03-07 23:59:21 +01:00
Hengqing Hu
460c3f3891 Remove trailing whitespaces in regular file
Change-Id: I8d05fbb7a372bf9a813da9165cd40af71a1ae4c2
2012-03-03 13:11:08 +08:00
Dean Troyer
fc63c5ddb5 Add service accounts to sample_data.sh
Updated sample_data.sh to create the service accounts now required
for services (Nova/Swift/etc) to use Keystone.  Swift and Quantum
are now enabled by setting ENABLE_SWIFT and/or ENABLE_QUANTUM.

This corresponds to the auth_token middleware rewrite in
https://review.openstack.org/4675

Change-Id: I327c593a53f3ac06e2ed0c1543d2974728e70e03
2012-03-01 15:33:38 -06:00
Joe Heck
5816542c0e renaming pip-requires-test to test-requires
* (per request from jeblair)
 * version of python-ldap match between
   test and requires
 * pinned to 2.3.13 to let tests work in macosx
 * separating dependencies between deps and test
 * removed python-keystoneclient from install_requires
   for now. (there is no python-keystoneclient in PyPI)
   Real solution coming.

Change-Id: I89e50d6747fb57dee7badb17bc1231d3619e3ef7
2012-02-28 00:31:21 -08:00
Adam Young
63437e9dca LDAP Identity backend
Bug 933852

Merged over the code from the legacy keystone implementation, updated
style and streamlined the API a bit.

 * Unit tests can be run against a live OpenLDAP server
 * Password hashing done via passlib. Only does salted sha1, which is what simple_bind requires, but is not secure.
 * Added pip dependencies

Change-Id: I5296d94f6b7d0a7c7dbc887cdae872171e34bb5f
2012-02-27 16:51:46 -08:00
Dolph Mathews
212489084f XML de/serialization (bug 928058)
Middleware rewrites incoming XML requests as JSON, and outgoing JSON as
XML, per Accept and Content-Type headers.

Tests assert that core API methods support WADL/XSD specs, and cover
JSON content as well.

Change-Id: I6897971dd745766cbc472fd6e5346b1b34d933b0
2012-02-27 09:58:04 -06:00
Dean Troyer
09a64dd862 Create tools/sample_data.sh
Based on devstack's files/keystone_data.sh, sample_data.sh creates
the same set of tenants/users/roles/etc.  It can eventually be used
by devstack as the bootstrap script.

Fixes bug 934331

Change-Id: Ib3b514b6e4fc5c9e980e4e0c59bc44cda1b8d2b6
2012-02-23 23:28:08 -06:00