Skip to content

Commit

Permalink
Made all sample data loading in one script.
Browse files Browse the repository at this point in the history
Both keystone-manage and sampledata.sh logic moved to keystone package, kept
simple starter scripts in bin/ dir.
New sampledata module can theoretically be suitable for loading different
fixtures in one Python interpreter.
Snuck in a couple of extensions changes while fixing PEP8

Change-Id: Ie05a9afb528d41b93e56f41d252363b6de2d600d
  • Loading branch information
YorikSar authored and ziadsawalha committed Aug 17, 2011
1 parent 71991db commit 8f32ce3
Show file tree
Hide file tree
Showing 17 changed files with 613 additions and 552 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ To run the test suite in a single command:
#### Sample data
A set of sample data can be added by running a shell script:

$ ./bin/sampledata.sh
$ ./bin/sampledata

The script calls `keystone-manage` to create the sample data.

Expand Down Expand Up @@ -238,7 +238,7 @@ Initial support for using keystone as nova's identity component has been started
# run nova-api based on the paste config in keystone
nova/bin/nova-api --api_paste_config=keystone/examples/paste/nova-api-paste.ini

Assuming you added the test data using bin/sampledata.sh, you can then use joeuser/secrete
Assuming you added the test data using bin/sampledata, you can then use joeuser/secrete

## Swift Integration - Quick Start

Expand Down Expand Up @@ -266,14 +266,15 @@ Assuming you added the test data using bin/sampledata.sh, you can then use joeus
Service API listening on 0.0.0.0:5000
Admin API listening on 0.0.0.0:5001

4. In another window, edit the `~/keystone/bin/sampledata.sh` file, find the
`swift.publicinternets.com` text and replace it with the URL to your Swift
cluster using the following format (note that we're going to change Swift
to run on port 8888 later): `http://127.0.0.1:8888/v1/AUTH_%tenant_id%`
4. In another window, edit the `~/keystone/keystone/test/sampledata.py` file,
find the `swift.publicinternets.com` text and replace it with the URL to
your Swift cluster using the following format (note that we're going to
change Swift to run on port 8888 later):
`http://127.0.0.1:8888/v1/AUTH_%tenant_id%`

5. Create the sample data entries:

$ cd ~/keystone/bin && ./sampledata.sh
$ cd ~/keystone/bin && ./sampledata
...

6. Reconfigure Swift's proxy server to use Keystone instead of TempAuth.
Expand Down
Loading

0 comments on commit 8f32ce3

Please sign in to comment.