node.test package

Submodules

node.test.test_models module

class node.test.test_models.TestNodeManager(methodName='runTest')

Bases: django.test.testcases.TransactionTestCase

test_get_nodes_running_jobs()

Tests calling NodeManager.get_nodes_running_jobs()

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.

class node.test.test_views.TestNodesViewEmptyV6(methodName='runTest')

Bases: rest_framework.test.APITransactionTestCase

setUp()
test_nodes_view()

test the REST call to retrieve an empty list of nodes

class node.test.test_views.TestNodesViewV6(methodName='runTest')

Bases: rest_framework.test.APITransactionTestCase

setUp()
test_nodes_view()

Test the REST call to retrieve a list of nodes

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

Module contents