node.test package¶
Subpackages¶
Submodules¶
node.test.test_models module¶
node.test.test_views module¶
-
class
node.test.test_views.TestNodeDetailsViewV6(methodName='runTest')¶ Bases:
rest_framework.test.APITransactionTestCase-
setUp()¶
-
test_get_node_not_found()¶ Test calling the Get Node method with a bad node id.
-
test_get_node_success()¶ Test successfully calling the Get Node method.
-
test_update_active()¶ Test successfully deactivating a node.
-
test_update_node_extra_fields()¶ Test calling the Update Node method with extra fields.
-
test_update_node_no_fields()¶ Test calling the Update Node method with no fields.
-
test_update_node_not_found()¶ Test calling the Update Node method with a bad node id.
-
test_update_node_success()¶ Test successfully calling the Update Node method.
-
test_update_node_unpause()¶ Tests unpausing the node and specifying a reason.
-
node.test.utils module¶
Defines utility methods for testing nodes
-
node.test.utils.create_node(hostname=None, slave_id=None)¶ Creates a node model for unit testing
Returns: The node model Return type: node.models.Node