toil.test.provisioners.gceProvisionerTest

Attributes

log

Classes

AbstractGCEAutoscaleTest

A common base class for Toil tests.

GCEAutoscaleTest

A common base class for Toil tests.

GCEStaticAutoscaleTest

Runs the tests on a statically provisioned cluster with autoscaling enabled.

GCEAutoscaleTestMultipleNodeTypes

A common base class for Toil tests.

GCERestartTest

This test insures autoscaling works on a restarted Toil run

Module Contents

toil.test.provisioners.gceProvisionerTest.log[source]
class toil.test.provisioners.gceProvisionerTest.AbstractGCEAutoscaleTest(methodName)[source]

Bases: toil.test.ToilTest

A common base class for Toil tests.

Please have every test case directly or indirectly inherit this one.

When running tests you may optionally set the TOIL_TEST_TEMP environment variable to the path of a directory where you want temporary test files be placed. The directory will be created if it doesn’t exist. The path may be relative in which case it will be assumed to be relative to the project root. If TOIL_TEST_TEMP is not defined, temporary files and directories will be created in the system’s default location for such files and any temporary files or directories left over from tests will be removed automatically removed during tear down. Otherwise, left-over files will not be removed.

projectID
sshUtil(command)[source]
rsyncUtil(src, dest)[source]
destroyClusterUtil()[source]
createClusterUtil(args=None)[source]
cleanJobStoreUtil()[source]
keyName
botoDir
googleZone = 'us-west1-a'
leaderInstanceType = 'n1-standard-1'
instanceTypes = ['n1-standard-2']
numWorkers = ['2']
numSamples = 2
spotBid = 0.15
setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

launchCluster()[source]
class toil.test.provisioners.gceProvisionerTest.GCEAutoscaleTest(name)[source]

Bases: AbstractGCEAutoscaleTest

A common base class for Toil tests.

Please have every test case directly or indirectly inherit this one.

When running tests you may optionally set the TOIL_TEST_TEMP environment variable to the path of a directory where you want temporary test files be placed. The directory will be created if it doesn’t exist. The path may be relative in which case it will be assumed to be relative to the project root. If TOIL_TEST_TEMP is not defined, temporary files and directories will be created in the system’s default location for such files and any temporary files or directories left over from tests will be removed automatically removed during tear down. Otherwise, left-over files will not be removed.

clusterName = 'provisioner-test-'
requestedLeaderStorage = 80
setUp()[source]

Hook method for setting up the test fixture before exercising it.

launchCluster()[source]
testAutoScale()[source]
testSpotAutoScale()[source]
class toil.test.provisioners.gceProvisionerTest.GCEStaticAutoscaleTest(name)[source]

Bases: GCEAutoscaleTest

Runs the tests on a statically provisioned cluster with autoscaling enabled.

requestedNodeStorage = 20
launchCluster()[source]
class toil.test.provisioners.gceProvisionerTest.GCEAutoscaleTestMultipleNodeTypes(name)[source]

Bases: AbstractGCEAutoscaleTest

A common base class for Toil tests.

Please have every test case directly or indirectly inherit this one.

When running tests you may optionally set the TOIL_TEST_TEMP environment variable to the path of a directory where you want temporary test files be placed. The directory will be created if it doesn’t exist. The path may be relative in which case it will be assumed to be relative to the project root. If TOIL_TEST_TEMP is not defined, temporary files and directories will be created in the system’s default location for such files and any temporary files or directories left over from tests will be removed automatically removed during tear down. Otherwise, left-over files will not be removed.

clusterName = 'provisioner-test-'
setUp()[source]

Hook method for setting up the test fixture before exercising it.

testAutoScale()[source]
class toil.test.provisioners.gceProvisionerTest.GCERestartTest(name)[source]

Bases: AbstractGCEAutoscaleTest

This test insures autoscaling works on a restarted Toil run

clusterName = 'restart-test-'
setUp()[source]

Hook method for setting up the test fixture before exercising it.

testAutoScaledCluster()[source]