l.t.c.t.AbiquoNodeDriverTest(unittest.TestCase, TestCaseMixin) : class documentation

Part of libcloud.test.compute.test_abiquo View Source View In Hierarchy

Abiquo Node Driver test suite
Method setUp Set up the driver with the main user
Method test_unauthorized_controlled Test the Unauthorized Exception is Controlled.
Method test_forbidden_controlled Test the Forbidden Exception is Controlled.
Method test_handle_other_errors_such_as_not_found Test common 'logical' exceptions are controlled.
Method test_ex_create_and_delete_empty_group Test the creation and deletion of an empty group.
Method test_create_node_no_image_raise_exception Test 'create_node' without image.
Method test_create_node_specify_location Test you can create a node specifying the location.
Method test_create_node_specify_wrong_location Test you can not create a node with wrong location.
Method test_create_node_specify_wrong_image Test image compatibility.
Method test_create_node_specify_group_name Test 'create_node' into a concrete group.
Method test_create_group_location_does_not_exist Test 'create_node' with an unexistent location.
Method test_destroy_node_response 'destroy_node' basic test.
Method test_destroy_node_response_failed 'destroy_node' asynchronous error.
Method test_destroy_node_allocation_state Test the 'destroy_node' invalid state.
Method test_destroy_not_deployed_group Test 'ex_destroy_group' when group is not deployed.
Method test_destroy_deployed_group Test 'ex_destroy_group' when there are machines running.
Method test_destroy_deployed_group_failed Test 'ex_destroy_group' fails.
Method test_destroy_group_invalid_state Test 'ex_destroy_group' invalid state.
Method test_run_node Test 'ex_run_node' feature.
Method test_run_node_invalid_state Test 'ex_run_node' invalid state.
Method test_run_node_failed Test 'ex_run_node' fails.

Inherited from TestCaseMixin:

Method test_list_nodes_response Undocumented
Method test_list_sizes_response Undocumented
Method test_list_images_response Undocumented
Method test_list_locations_response Undocumented
Method test_create_node_response Undocumented
Method test_reboot_node_response Undocumented
Method test_get_pricing_success Undocumented
def setUp(self): (source)
Set up the driver with the main user
def test_unauthorized_controlled(self): (source)
Test the Unauthorized Exception is Controlled.

Test, through the 'login' method, that a '401 Unauthorized'
raises a 'InvalidCredsError' instead of the 'MalformedUrlException'
def test_forbidden_controlled(self): (source)
Test the Forbidden Exception is Controlled.

Test, through the 'list_images' method, that a '403 Forbidden'
raises an 'ForbidenError' instead of the 'MalformedUrlException'
def test_handle_other_errors_such_as_not_found(self): (source)
Test common 'logical' exceptions are controlled.

Test that common exception (normally 404-Not Found and 409-Conflict),
that return an XMLResponse with the explanation of the errors are
controlled.
def test_ex_create_and_delete_empty_group(self): (source)
Test the creation and deletion of an empty group.
def test_create_node_no_image_raise_exception(self): (source)
Test 'create_node' without image.

Test the 'create_node' function without 'image' parameter raises
an Exception
def test_create_node_specify_location(self): (source)
Test you can create a node specifying the location.
def test_create_node_specify_wrong_location(self): (source)
Test you can not create a node with wrong location.
def test_create_node_specify_wrong_image(self): (source)
Test image compatibility.

Some locations only can handle a group of images, not all of them.
Test you can not create a node with incompatible image-location.
def test_create_node_specify_group_name(self): (source)
Test 'create_node' into a concrete group.
def test_create_group_location_does_not_exist(self): (source)
Test 'create_node' with an unexistent location.

Defines a 'fake' location and tries to create a node into it.
def test_destroy_node_response(self): (source)
'destroy_node' basic test.

Override the destroy to return a different node available
to be undeployed. (by default it returns an already undeployed node,
for test creation).
def test_destroy_node_response_failed(self): (source)
'destroy_node' asynchronous error.

Test that the driver handles correctly when, for some reason,
the 'destroy' job fails.
def test_destroy_node_allocation_state(self): (source)
Test the 'destroy_node' invalid state.

Try to destroy a node when the node is not running.
def test_destroy_not_deployed_group(self): (source)
Test 'ex_destroy_group' when group is not deployed.
def test_destroy_deployed_group(self): (source)
Test 'ex_destroy_group' when there are machines running.
def test_destroy_deployed_group_failed(self): (source)
Test 'ex_destroy_group' fails.

Test driver handles correctly when, for some reason, the
asynchronous job fails.
def test_destroy_group_invalid_state(self): (source)
Test 'ex_destroy_group' invalid state.

Test the Driver raises an exception when the group is in
invalid temporal state.
def test_run_node(self): (source)
Test 'ex_run_node' feature.
def test_run_node_invalid_state(self): (source)
Test 'ex_run_node' invalid state.

Test the Driver raises an exception when try to run a
node that is in invalid state to run.
def test_run_node_failed(self): (source)
Test 'ex_run_node' fails.

Test driver handles correctly when, for some reason, the
asynchronous job fails.
API Documentation for libcloud, generated by pydoctor at 2013-03-28 10:45:49.