Ejemplo n.º 1
0
 public async Task WhenPipelineRun()
 {
     _helper = new ParentHelper()
               .WithBasicMetadata()
               .WithTenantAndSubscriptionIds()
               .WithSPNInDatabase("FrameworkFactory")
               .WithEmptyExecutionTables()
               .WithPipelinesDisabled();
     await _helper.RunPipeline();
 }
Ejemplo n.º 2
0
 public async Task WhenPipelineRun()
 {
     _helper = new ParentHelper()
               .WithEmptyTable("procfwk.CurrentExecution")
               .WithEmptyTable("procfwk.ExecutionLog")
               .WithEmptyTable("procfwk.ErrorLog")
               .WithSimulatedError()
               .WithFailureHandling("DependencyChain");
     await _helper.RunPipeline();
 }
 public async Task WhenPipelineRun()
 {
     _helper = new ParentHelper()
               .WithBasicMetadata()
               .WithTenantAndSubscriptionIds()
               .WithSPNInDatabase("FrameworkFactory")
               .WithEmptyExecutionTables()
               .WithoutSimulatedError()
               .WithFailureHandling("Simple");;
     await _helper.RunPipeline();
 }
Ejemplo n.º 4
0
 public async Task WhenPipelineRun()
 {
     _helper = new ParentHelper()
               .WithBasicMetadata()
               .WithTenantAndSubscriptionIds()
               .WithSPNInDatabase("FrameworkFactory")
               .WithEmptyExecutionTables()
               .WithBatchExecutionHandling()
               .WithStagesEnabled()
               .WithPipelinesEnabled()
               .WithParameter("BatchName", "Hourly");
     await _helper.RunPipeline();
 }
        public async Task WhenPipelineRun()
        {
            _helperFirstRun = new ParentHelper()
                              .WithBasicMetadata()
                              .WithTenantAndSubscriptionIds()
                              .WithSPNInDatabase("FrameworkFactory")
                              .WithEmptyExecutionTables()
                              .WithSimulatedError()
                              .WithFailureHandling("DependencyChain");
            await _helperFirstRun.RunPipeline();

            _helperRestartRun = new ParentHelper()
                                .WithoutSimulatedError();
            await _helperRestartRun.RunPipeline();
        }
Ejemplo n.º 6
0
        public async Task WhenPipelineRun()
        {
            _helper = new ParentHelper()
                      .WithBasicMetadata()
                      .WithTenantAndSubscriptionIds()
                      .WithSPNInDatabase("FrameworkFactory")
                      .WithEmptyExecutionTables()
                      .WithoutPrecursorObject() //done to ensure 2min waits are used, not example precursor waits
                      .With2MinWaitsOnWorkers() //to ensure the cancel call has enough time
                      .WithCancelledWorkersBlock(true)
                      .WithFailureHandling("Simple");

            var runOrchestrator = _helper.RunPipeline();
            var cancelWorker    = _helper.CancelIntentionalErrorWorkerPipeline(); //specific worker

            await Task.WhenAll(runOrchestrator, cancelWorker);
        }
Ejemplo n.º 7
0
        public async Task WhenPipelineRun()
        {
            _helper = new ParentHelper()
                      .WithBasicMetadata()
                      .WithTenantAndSubscriptionIds()
                      .WithSPNInDatabase("FrameworkFactory")
                      .WithEmptyExecutionTables()
                      .WithoutPrecursorObject() //done to ensure 2min waits are used, not example precursor waits
                      .With2MinWaitsOnWorkers() //to ensure the cancel call has enough time
                      .WithCancelledWorkersBlock(false)
                      .WithOnlyStageOneEnabled();

            var runOrchestrator = _helper.RunPipeline();
            var cancelWorker    = _helper.CancelAnyWorkerPipeline(); //any worker

            await Task.WhenAll(runOrchestrator, cancelWorker);
        }
Ejemplo n.º 8
0
        public async Task WhenPipelineRun()
        {
            _helperRunOne = new ParentHelper()
                            .WithBasicMetadata()
                            .WithTenantAndSubscriptionIds()
                            .WithSPNInDatabase("FrameworkFactory")
                            .WithEmptyExecutionTables()
                            .WithoutSimulatedError()
                            .WithFailureHandling("Simple");

            _helperRunTwo = new ParentHelper();

            var firstRun  = _helperRunOne.RunPipeline();
            var secondRun = _helperRunTwo.RunPipeline(15000); //15 second delay in run

            await Task.WhenAll(firstRun, secondRun);
        }
        public async Task WhenPipelineRun()
        {
            _helperFirstBatch = new ParentHelper()
                                .WithBasicMetadata()
                                .WithTenantAndSubscriptionIds()
                                .WithSPNInDatabase("FrameworkFactory")
                                .WithEmptyExecutionTables()
                                .WithBatchExecutionHandling()
                                .WithStagesEnabled()
                                .WithPipelinesEnabled()
                                .WithParameter("BatchName", "Hourly");

            _helperSecondBatch = new ParentHelper()
                                 .WithParameter("BatchName", "Hourly");

            var firstBatch  = _helperFirstBatch.RunPipeline();
            var secondBatch = _helperSecondBatch.RunPipeline(15000); //15 second delay in run

            await Task.WhenAll(firstBatch, secondBatch);
        }
        public async Task WhenPipelineRun()
        {
            _helperFirstRun = new ParentHelper()
                              .WithBasicMetadata()
                              .WithTenantAndSubscriptionIds()
                              .WithSPNInDatabase("FrameworkFactory")
                              .WithEmptyExecutionTables()
                              .WithoutPrecursorObject() //done to ensure 2min waits are used, not example precursor waits
                              .With2MinWaitsOnWorkers() //to ensure the cancel call has enough time
                              .WithCancelledWorkersBlock(true)
                              .WithFailureHandling("Simple");

            var runOrchestrator = _helperFirstRun.RunPipeline();
            var cancelWorker    = _helperFirstRun.CancelAnyWorkerPipeline();

            await Task.WhenAll(runOrchestrator, cancelWorker);

            _helperRestartRun = new ParentHelper()
                                .WithPrecursorObject()
                                .WithRunningPipelineStatusInPlaceOf("Success");

            await _helperRestartRun.RunPipeline();
        }
        public async Task WhenPipelineRun()
        {
            //first
            _helperFirstBatch = new ParentHelper()
                                .WithBasicMetadata()
                                .WithTenantAndSubscriptionIds()
                                .WithSPNInDatabase("FrameworkFactory")
                                .WithEmptyExecutionTables()
                                .WithBatchExecutionHandling()
                                .WithStagesEnabled()
                                .WithPipelinesEnabled()
                                .WithParameter("BatchName", "Hourly");

            _helperSecondBatch = new ParentHelper()
                                 .WithSimulatedError()
                                 .WithFailureHandling("Simple")
                                 .WithParameter("BatchName", "Daily");

            var firstBatch  = _helperFirstBatch.RunPipeline();
            var secondBatch = _helperSecondBatch.RunPipeline();

            await Task.WhenAll(firstBatch, secondBatch);

            //then
            _helperSecondBatchRestart = new ParentHelper()
                                        .WithoutSimulatedError()
                                        .WithOverideRestart(true)
                                        .WithParameter("BatchName", "Daily");

            _helperThirdBatch = new ParentHelper()
                                .WithParameter("BatchName", "Hourly");

            var secondBatchRestart = _helperSecondBatchRestart.RunPipeline(10000); //10 second delay
            var thirdBatch         = _helperThirdBatch.RunPipeline();

            await Task.WhenAll(secondBatchRestart, thirdBatch);
        }
Ejemplo n.º 12
0
 public async Task WhenPipelineRun()
 {
     _helper = new ParentHelper()
               .WithStagesDisabled();
     await _helper.RunPipeline();
 }
Ejemplo n.º 13
0
        public async Task WhenPipelineRun()
        {
            /*
             * _helperBatchOne = new ParentHelper()
             *  .WithBasicMetadata()
             *  .WithTenantAndSubscriptionIds()
             *  .WithBatchExecutionHandling()
             *  .With20BatchesFor1000WorkersEnabled()
             *  .WithSPNInKeyVault("WorkersFactory")
             *  .WithParameter("BatchName", "One");
             */
            _helperBatchOne = new ParentHelper()
                              .WithCustom()
                              .WithParameter("BatchName", "One");

            _helperBatchTwo       = new ParentHelper().WithParameter("BatchName", "Two");
            _helperBatchEleven    = new ParentHelper().WithParameter("BatchName", "Eleven");
            _helperBatchTwelve    = new ParentHelper().WithParameter("BatchName", "Twelve");
            _helperBatchTwenty    = new ParentHelper().WithParameter("BatchName", "Twenty");
            _helperBatchFifteen   = new ParentHelper().WithParameter("BatchName", "Fifteen");
            _helperBatchSeven     = new ParentHelper().WithParameter("BatchName", "Seven");
            _helperBatchNine      = new ParentHelper().WithParameter("BatchName", "Nine");
            _helperBatchEight     = new ParentHelper().WithParameter("BatchName", "Eight");
            _helperBatchSixteen   = new ParentHelper().WithParameter("BatchName", "Sixteen");
            _helperBatchFive      = new ParentHelper().WithParameter("BatchName", "Five");
            _helperBatchSix       = new ParentHelper().WithParameter("BatchName", "Six");
            _helperBatchThirteen  = new ParentHelper().WithParameter("BatchName", "Thirteen");
            _helperBatchNineteen  = new ParentHelper().WithParameter("BatchName", "Nineteen");
            _helperBatchFour      = new ParentHelper().WithParameter("BatchName", "Four");
            _helperBatchEighteen  = new ParentHelper().WithParameter("BatchName", "Eighteen");
            _helperBatchThree     = new ParentHelper().WithParameter("BatchName", "Three");
            _helperBatchFourteen  = new ParentHelper().WithParameter("BatchName", "Fourteen");
            _helperBatchTen       = new ParentHelper().WithParameter("BatchName", "Ten");
            _helperBatchSeventeen = new ParentHelper().WithParameter("BatchName", "Seventeen");

            var batchOne       = _helperBatchOne.RunPipeline();
            var batchTwo       = _helperBatchTwo.RunPipeline();
            var batchEleven    = _helperBatchEleven.RunPipeline();
            var batchTwelve    = _helperBatchTwelve.RunPipeline();
            var batchTwenty    = _helperBatchTwenty.RunPipeline();
            var batchFifteen   = _helperBatchFifteen.RunPipeline();
            var batchSeven     = _helperBatchSeven.RunPipeline();
            var batchNine      = _helperBatchNine.RunPipeline();
            var batchEight     = _helperBatchEight.RunPipeline();
            var batchSixteen   = _helperBatchSixteen.RunPipeline();
            var batchFive      = _helperBatchFive.RunPipeline();
            var batchSix       = _helperBatchSix.RunPipeline();
            var batchThirteen  = _helperBatchThirteen.RunPipeline();
            var batchNineteen  = _helperBatchNineteen.RunPipeline();
            var batchFour      = _helperBatchFour.RunPipeline();
            var batchEighteen  = _helperBatchEighteen.RunPipeline();
            var batchThree     = _helperBatchThree.RunPipeline();
            var batchFourteen  = _helperBatchFourteen.RunPipeline();
            var batchTen       = _helperBatchTen.RunPipeline();
            var batchSeventeen = _helperBatchSeventeen.RunPipeline();

            //await _helperBatchOne.RunPipeline();

            await Task.WhenAll(
                batchOne,
                batchTwo,
                batchEleven,
                batchTwelve,
                batchTwenty,
                batchFifteen,
                batchSeven,
                batchNine,
                batchEight,
                batchSixteen,
                batchFive,
                batchSix,
                batchThirteen,
                batchNineteen,
                batchFour,
                batchEighteen,
                batchThree,
                batchFourteen,
                batchTen,
                batchSeventeen
                );
        }