Cam & Ed | Add section on running tests to README
This commit is contained in:
parent
dc298201e8
commit
0fb3336b7c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue