Unit tests for the API endpoint
Bases: nova.test.TestCase
Unit test for the cloud controller on an EC2 API
Returns a new EC2 connection
Test that we can add and remove CIDR based rules to a security group
Test that we can add and remove CIDR based rules to a security group for IPv6
Test that we can grant and revoke another security group access to a security group
Test that we can create a security group
Test that, after successfully generating a keypair, requesting a second keypair with the same name fails sanely
Test that, after creating a user and a project, the describe instances call to the API works properly
Test that, after creating a user and project and generating a key pair, that the API call to list key pairs works properly
Test that we can retrieve security groups
Test that we sanely handle invalid security group names. API Spec states we should only accept alphanumeric characters, spaces, dashes, and underscores.
Test that we sanely handle invalid security group names. API Spec states that the length should not exceed 255 chars
Ensure that the ec2 api returns datetime in xs:dateTime (which apparently isn’t datetime.isoformat()) NOTE(ken-pepple): https://bugs.launchpad.net/nova/+bug/721297
Attempt to terminate an invalid instance
Bases: nova.test.TestCase
Bases: object
A fake httplib.HTTPConnection for boto to use
requests made via this connection actually get translated and routed into our WSGI app, we then wait for the response and turn it back into the httplib.HTTPResponse that boto expects.
Required for compatibility with boto/tornado
Bases: object
a fake socket implementation for httplib.HTTPResponse, trivial
Returns the socket’s internal buffer
Bases: nova.test.TestCase
Unit test api xml conversion