Method | Description | |
---|---|---|
AddTestCertificate ( |
Adds a test certificate for use in Scenario tests. Returns the thumbprint of the cert.
|
|
CleanupTestAccount ( |
Cleans up an account and resource group used in a Scenario test.
|
|
CreateApplicationPackage ( |
Uploads an application package to Storage
|
|
CreateComputeNodeUser ( |
Creates a compute node user for use in Scenario tests.
|
|
CreateMpiPoolIfNotExists ( |
Creates an MPI pool.
|
|
CreateTestAccountAndResourceGroup ( |
Creates an account and resource group for use with the Scenario tests
|
|
CreateTestJob ( |
Creates a test job for use in Scenario tests.
|
|
CreateTestJobSchedule ( |
Creates a test job schedule for use in Scenario tests.
|
|
CreateTestPool ( |
Creates a test pool for use in Scenario tests.
|
|
CreateTestTask ( |
Creates a test task for use in Scenario tests.
|
|
DeleteApplication ( BatchController controller, BatchAccountContext context, string applicationId ) : void |
Deletes an application used in a Scenario test.
|
|
DeleteApplicationPackage ( BatchController controller, BatchAccountContext context, string applicationId, string version ) : void |
Deletes an application package used in a Scenario test.
|
|
DeleteComputeNodeUser ( BatchController controller, BatchAccountContext context, string poolId, string computeNodeId, string computeNodeUserName ) : void |
Deletes a compute node user for use in Scenario tests.
|
|
DeleteJob ( BatchController controller, BatchAccountContext context, string jobId ) : void |
Deletes a job used in a Scenario test.
|
|
DeleteJobSchedule ( BatchController controller, BatchAccountContext context, string jobScheduleId ) : void |
Deletes a job schedule used in a Scenario test.
|
|
DeletePool ( BatchController controller, BatchAccountContext context, string poolId ) : void |
Deletes a pool used in a Scenario test.
|
|
DeleteTestCertificate ( BatchController controller, BatchAccountContext context, string thumbprintAlgorithm, string thumbprint ) : void |
Deletes a certificate.
|
|
DisableAutoScale ( BatchController controller, BatchAccountContext context, string poolId ) : void | ||
EnableAutoScale ( BatchController controller, BatchAccountContext context, string poolId ) : void | ||
GetComputeNodeId ( BatchController controller, BatchAccountContext context, string poolId, int index ) : string |
Gets the id of a compute node in the specified pool
|
|
GetPoolCount ( BatchController controller, BatchAccountContext context ) : int |
Gets the number of pools under the specified account
|
|
GetPoolCurrentDedicated ( BatchController controller, BatchAccountContext context, string poolId ) : int |
Gets the CurrentDedicated count from a pool
|
|
GetTaskComputeNodeId ( BatchController controller, BatchAccountContext context, string jobId, string taskId ) : string |
Gets the id of the compute node that the specified task completed on. Returns null if the task isn't complete.
|
|
ResizePool ( BatchController controller, BatchAccountContext context, string poolId, int targetDedicated ) : void | ||
TerminateJob ( BatchController controller, BatchAccountContext context, string jobId ) : void |
Terminates a job
|
|
WaitForCertificateToFailDeletion ( BatchController controller, BatchAccountContext context, string thumbprintAlgorithm, string thumbprint ) : void |
Deletes a certificate.
|
|
WaitForIdleComputeNode ( BatchController controller, BatchAccountContext context, string poolId, string computeNodeId ) : void |
Waits for a compute node to get to the idle state
|
|
WaitForJobCompletion ( BatchController controller, BatchAccountContext context, string jobId, string taskId ) : PSCloudJob |
Waits for the job to complete
|
|
WaitForOSVersionChange ( BatchController controller, BatchAccountContext context, string poolId ) : string | ||
WaitForRecentJob ( BatchController controller, BatchAccountContext context, string jobScheduleId, string previousJob = null ) : string |
Waits for a recent job on a job schedule and returns its id. If a previous job is specified, this method waits until a new job is created.
|
|
WaitForSteadyPoolAllocation ( BatchController controller, BatchAccountContext context, string poolId ) : void | ||
WaitForTaskCompletion ( BatchController controller, BatchAccountContext context, string jobId, string taskId ) : void |
Waits for the specified task to complete
|
Method | Description | |
---|---|---|
Sleep ( int milliseconds ) : void |
Sleep method used for Scenario Tests. Only sleep when recording.
|
public static AddTestCertificate ( |
||
controller | ||
context | BatchAccountContext | |
filePath | string | |
return | string |
public static CleanupTestAccount ( |
||
controller | ||
resourceGroupName | string | |
accountName | string | |
return | void |
public static CreateApplicationPackage ( |
||
controller | ||
context | BatchAccountContext | |
applicationId | string | |
version | string | |
filePath | string | |
return | Microsoft.Azure.Management.Batch.Models.ApplicationPackage |
public static CreateComputeNodeUser ( |
||
controller | ||
context | BatchAccountContext | |
poolId | string | |
computeNodeId | string | |
computeNodeUserName | string | |
return | void |
public static CreateMpiPoolIfNotExists ( |
||
controller | ||
context | BatchAccountContext | |
targetDedicated | int | |
return | void |
public static CreateTestAccountAndResourceGroup ( |
||
controller | ||
resourceGroupName | string | |
accountName | string | |
location | string | |
return | BatchAccountContext |
public static CreateTestJob ( |
||
controller | ||
context | BatchAccountContext | |
jobId | string | |
poolId | string | |
return | void |
public static CreateTestJobSchedule ( |
||
controller | ||
context | BatchAccountContext | |
jobScheduleId | string | |
recurrenceInterval | System.TimeSpan | |
return | void |
public static CreateTestPool ( |
||
controller | ||
context | BatchAccountContext | |
poolId | string | |
targetDedicated | int | |
certReference | CertificateReference | |
startTask | StartTask | |
return | void |
public static CreateTestTask ( |
||
controller | ||
context | BatchAccountContext | |
jobId | string | |
taskId | string | |
cmdLine | string | |
numInstances | int | |
return | void |
public static DeleteApplication ( BatchController controller, BatchAccountContext context, string applicationId ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
applicationId | string | |
return | void |
public static DeleteApplicationPackage ( BatchController controller, BatchAccountContext context, string applicationId, string version ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
applicationId | string | |
version | string | |
return | void |
public static DeleteComputeNodeUser ( BatchController controller, BatchAccountContext context, string poolId, string computeNodeId, string computeNodeUserName ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
poolId | string | |
computeNodeId | string | |
computeNodeUserName | string | |
return | void |
public static DeleteJob ( BatchController controller, BatchAccountContext context, string jobId ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
jobId | string | |
return | void |
public static DeleteJobSchedule ( BatchController controller, BatchAccountContext context, string jobScheduleId ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
jobScheduleId | string | |
return | void |
public static DeletePool ( BatchController controller, BatchAccountContext context, string poolId ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
poolId | string | |
return | void |
public static DeleteTestCertificate ( BatchController controller, BatchAccountContext context, string thumbprintAlgorithm, string thumbprint ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
thumbprintAlgorithm | string | |
thumbprint | string | |
return | void |
public static DisableAutoScale ( BatchController controller, BatchAccountContext context, string poolId ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
poolId | string | |
return | void |
public static EnableAutoScale ( BatchController controller, BatchAccountContext context, string poolId ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
poolId | string | |
return | void |
public static GetComputeNodeId ( BatchController controller, BatchAccountContext context, string poolId, int index ) : string | ||
controller | BatchController | |
context | BatchAccountContext | |
poolId | string | |
index | int | |
return | string |
public static GetPoolCount ( BatchController controller, BatchAccountContext context ) : int | ||
controller | BatchController | |
context | BatchAccountContext | |
return | int |
public static GetPoolCurrentDedicated ( BatchController controller, BatchAccountContext context, string poolId ) : int | ||
controller | BatchController | |
context | BatchAccountContext | |
poolId | string | |
return | int |
public static GetTaskComputeNodeId ( BatchController controller, BatchAccountContext context, string jobId, string taskId ) : string | ||
controller | BatchController | |
context | BatchAccountContext | |
jobId | string | |
taskId | string | |
return | string |
public static ResizePool ( BatchController controller, BatchAccountContext context, string poolId, int targetDedicated ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
poolId | string | |
targetDedicated | int | |
return | void |
public static TerminateJob ( BatchController controller, BatchAccountContext context, string jobId ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
jobId | string | |
return | void |
public static WaitForCertificateToFailDeletion ( BatchController controller, BatchAccountContext context, string thumbprintAlgorithm, string thumbprint ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
thumbprintAlgorithm | string | |
thumbprint | string | |
return | void |
public static WaitForIdleComputeNode ( BatchController controller, BatchAccountContext context, string poolId, string computeNodeId ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
poolId | string | |
computeNodeId | string | |
return | void |
public static WaitForJobCompletion ( BatchController controller, BatchAccountContext context, string jobId, string taskId ) : PSCloudJob | ||
controller | BatchController | |
context | BatchAccountContext | |
jobId | string | |
taskId | string | |
return | PSCloudJob |
public static WaitForOSVersionChange ( BatchController controller, BatchAccountContext context, string poolId ) : string | ||
controller | BatchController | |
context | BatchAccountContext | |
poolId | string | |
return | string |
public static WaitForRecentJob ( BatchController controller, BatchAccountContext context, string jobScheduleId, string previousJob = null ) : string | ||
controller | BatchController | |
context | BatchAccountContext | |
jobScheduleId | string | |
previousJob | string | |
return | string |
public static WaitForSteadyPoolAllocation ( BatchController controller, BatchAccountContext context, string poolId ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
poolId | string | |
return | void |
public static WaitForTaskCompletion ( BatchController controller, BatchAccountContext context, string jobId, string taskId ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
jobId | string | |
taskId | string | |
return | void |