Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Commit

Permalink
keystone ci: Start working on initial population of sample data.
Browse files Browse the repository at this point in the history
Still WIP. Basing this off of:

    http://docs.openstack.org/developer/keystone/developing.html#initial-sample-data

But the sample config file doesn't seem to result in listening on port
5000, and openstackclient (with those environment variables) seems to
expect it to. Initial setup seems to work, but then we can't actually
talk to the endpoint.
  • Loading branch information
zenhack committed Jun 15, 2016
1 parent c9ac645 commit 7dda12c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ci/keystone/keystone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ case "$1" in

keystone-manage db_sync

# Populate the database with some sample data. First, make sure keystone is
# running:
(cd ..; ./keystone.sh run) &
pid=$!
# Doing this after launching keystone will give it plenty of time to get
# started without adding an wasteful calls to sleep:
pip install python-openstackclient
source ../keystonerc # for $OS_PASSWORD
./tools/sample_data.sh

# stop the server:
kill $pid
wait

;;
run)
cd keystone
Expand Down
7 changes: 7 additions & 0 deletions ci/keystone/keystonerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export OS_USERNAME=admin
export OS_PASSWORD=s3cr3t
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_ID=default
export OS_PROJECT_DOMAIN_ID=default
export OS_IDENTITY_API_VERSION=3
export OS_AUTH_URL=http://localhost:5000/v3

0 comments on commit 7dda12c

Please sign in to comment.