public static WaitForOSVersionChange ( BatchController controller, BatchAccountContext context, string poolId ) : string | ||
controller | BatchController | |
context | BatchAccountContext | |
poolId | string | |
return | string |
private void TestChangeOSVersion(bool usePipeline) { BatchController controller = BatchController.NewInstance; BatchAccountContext context = null; string newTargetOSVersion = null; controller.RunPsTestWorkflow( () => { return(new string[] { string.Format("Test-ChangeOSVersion '{0}' '{1}' '{2}' '{3}'", commonAccountName, testPoolId, newTargetOSVersion, usePipeline ? 1 : 0) }); }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); string currentTargetOSVersion = ScenarioTestHelpers.WaitForOSVersionChange(controller, context, testPoolId); newTargetOSVersion = currentTargetOSVersion == "*" ? specificOSVersion : "*"; }, null, TestUtilities.GetCallingClass(), usePipeline ? "TestChangeOSVersionPipeline" : "TestChangeOSVersionById"); }