Ed & Cam | Update README
This commit is contained in:
parent
0fb3336b7c
commit
e62357739a
|
@ -38,11 +38,12 @@ 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.
|
||||
|
||||
###Running Tests
|
||||
1. To optionally mock the EC2 server with Moto, run `source /opt/stack/nova/nova/virt/ec2/tests/setup_moto.sh`
|
||||
1. Moto can be used to mock the EC2 server. To install moto, run `pip install moto`.
|
||||
1. To optionally use 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`
|
||||
4. Use `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.
|
||||
|
|
Loading…
Reference in New Issue