From 0fb3336b7c1348d6ac65edeb339592540076aa0e Mon Sep 17 00:00:00 2001 From: cameron-r Date: Tue, 21 Oct 2014 11:16:10 -0500 Subject: [PATCH] Cam & Ed | Add section on running tests to README --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d54d93c..b2167c7 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,14 @@ Using the native OpenStack Dashboard or APIs you would be able to manage the EC2 The driver should now be loaded. The contents of the repository is mapped to `/opt/stack/nova/nova/virt/ec2/`, and you can edit it directly from your host computer with an IDE of your choice. -###Important notes +###Running Tests +1. To optionally mock the EC2 server with Moto, run `source /opt/stack/nova/nova/virt/ec2/tests/setup_moto.sh` +2. `~/devstack/rejoin-stack.sh` +3. `cd /opt/stack/nova/nova/virt/ec2/tests` +4. `nosetests -s test_ec2driver.py` +5. To stop Moto, run `source /opt/stack/nova/nova/virt/ec2/tests/shutdown_moto.sh` + +###Important Notes In Amazon’s EC2 there is no concept of suspend and resume on instances. Therefore, we simply stop EC2 instances when suspended and start the instances when resumed, we do the same on pause and un-pause. ##To Be Continued