WaitForOSVersionChange() public static method

public static WaitForOSVersionChange ( BatchController controller, BatchAccountContext context, string poolId ) : string
controller BatchController
context BatchAccountContext
poolId string
return string
コード例 #1
0
        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");
        }