Add instructions for running basic tests, update readme so examples don't require mounting devices.

This commit is contained in:
Michael Nelson 2013-11-15 12:08:51 +00:00
parent e326f51165
commit 7f1e4cfa61
2 changed files with 11 additions and 4 deletions

7
HACKING Normal file
View File

@ -0,0 +1,7 @@
To run the basic unit tests you'll need to:
sudo apt-get install python-mock python-nose python-jinja2
then run with:
PYTHONPATH=./hooks nosetests unit_tests

View File

@ -46,13 +46,13 @@ this charm, a deployment would look something like:
replicas: 3
swift-storage-zone1:
zone: 1
block-device: sdb
block-device: /etc/swift/storage.img|2G
swift-storage-zone2:
zone: 2
block-device: sdb
block-device: /etc/swift/storage.img|2G
swift-storage-zone3:
zone: 3
block-device: sdb
block-device: /etc/swift/storage.img|2G
END
$ juju deploy --config=swift.cfg swift-proxy
$ juju deploy --config=swift.cfg swift-storage swift-storage-zone1
@ -82,7 +82,7 @@ assigned to that service unit will be distributed evenly across zones.
replicas: 3
swift-storage:
zone: 1
block-device: sdb
block-device: /etc/swift/storage.img|2G
END
$ juju deploy --config=swift.cfg swift-proxy
$ juju deploy --config=swift.cfg swift-storage