public static WaitForSteadyPoolAllocation ( BatchController controller, BatchAccountContext context, string poolId ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
poolId | string | |
return | void |
public void TestEvaluateAutoScaleById() { BatchController controller = BatchController.NewInstance; BatchAccountContext context = null; controller.RunPsTestWorkflow( () => { return(new string[] { string.Format("Test-EvaluateAutoScale '{0}' '{1}' '0'", commonAccountName, testPoolId) }); }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); ScenarioTestHelpers.EnableAutoScale(controller, context, testPoolId); ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolId); }, () => { ScenarioTestHelpers.DisableAutoScale(controller, context, testPoolId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); }
public void TestEnableAutoScaleByPipeline() { BatchController controller = BatchController.NewInstance; BatchAccountContext context = null; controller.RunPsTestWorkflow( () => { return(new string[] { string.Format("Test-EnableAutoScale '{0}' '1'", testPoolId) }); }, () => { context = new ScenarioTestContext(); ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolId); ScenarioTestHelpers.DisableAutoScale(controller, context, testPoolId); ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolId); }, () => { ScenarioTestHelpers.DisableAutoScale(controller, context, testPoolId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); }
public void TestRemoveComputeNodes() { BatchController controller = BatchController.NewInstance; BatchAccountContext context = null; string removeNodePoolId = "removenodepool"; controller.RunPsTestWorkflow( () => { return(new string[] { string.Format("Test-RemoveComputeNodes '{0}'", removeNodePoolId) }); }, () => { context = new ScenarioTestContext(); ScenarioTestHelpers.CreateTestPool(controller, context, removeNodePoolId, targetDedicated: 2, targetLowPriority: 0); ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, removeNodePoolId); }, () => { ScenarioTestHelpers.DeletePool(controller, context, removeNodePoolId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); }