public async Task Darc_GitHubFlow_NonBatched_AllChecksSuccessful() { TestContext.WriteLine("GitHub Dependency Flow, non-batched, all checks successful"); using TestParameters parameters = await TestParameters.GetAsync(); EndToEndFlowLogic testLogic = new EndToEndFlowLogic(parameters); await testLogic.NonBatchedGitHubFlowTestBase( $"GitHub_NonBatchedTestBranch_AllChecks_{Environment.MachineName}", $"GitHub Non-Batched All Checks Channel {Environment.MachineName}", source1Assets, expectedDependenciesSource1, allChecks : true).ConfigureAwait(false); }
public async Task Darc_GitHubFlow_NonBatched() { TestContext.WriteLine("GitHub Dependency Flow, non-batched"); using TestParameters parameters = await TestParameters.GetAsync(); EndToEndFlowLogic testLogic = new EndToEndFlowLogic(parameters); await testLogic.NonBatchedUpdatingGitHubFlowTestBase( $"GitHub_NonBatchedTestBranch_{Environment.MachineName}", $"GitHub Non-Batched Channel {Environment.MachineName}", source1Assets, source1AssetsUpdated, expectedDependenciesSource1, expectedDependenciesSource1Updated).ConfigureAwait(false); }
public async Task Darc_GitHubFlow_NonBatched_WithCoherency() { TestContext.WriteLine("GitHub Dependency Flow, non-batched"); using TestParameters parameters = await TestParameters.GetAsync(); EndToEndFlowLogic testLogic = new EndToEndFlowLogic(parameters); await testLogic.NonBatchedGitHubFlowTestBase( $"GitHub_NonBatchedTestCoherencyBranch_{Environment.MachineName}", $"GitHub Non-Batched Coherency Channel {Environment.MachineName}", source1Assets, expectedCoherencyDependencies, isCoherencyTest : true, childSourceAssets : childSourceAssets, childSourceBuildAssets : childSourceBuildAssets).ConfigureAwait(false); }
public async Task Darc_GitHubFlow_Batched() { TestContext.WriteLine("Github Dependency Flow, batched"); using TestParameters parameters = await TestParameters.GetAsync(); EndToEndFlowLogic testLogic = new EndToEndFlowLogic(parameters); List <DependencyDetail> expectedDependencies = expectedDependenciesSource1.Concat(expectedDependenciesSource2).ToList(); await testLogic.DarcBatchedFlowTestBase( $"GitHub_BatchedTestBranch_{Environment.MachineName}", $"GitHub Batched Channel {Environment.MachineName}", source1Assets, source2Assets, expectedDependencies, false).ConfigureAwait(false); }
public async Task Darc_AzDoFlow_Batched() { TestContext.WriteLine("Azure DevOps Dependency Flow, batched"); TestParameters parameters = await TestParameters.GetAsync(); SetTestParameters(parameters); EndToEndFlowLogic testLogic = new EndToEndFlowLogic(parameters); List <DependencyDetail> expectedDependencies = expectedAzDoDependenciesSource1.Concat(expectedAzDoDependenciesSource2).ToList(); await testLogic.DarcBatchedFlowTestBase( $"AzDo_BatchedTestBranch_{Environment.MachineName}", $"AzDo Batched Channel {Environment.MachineName}", source1Assets, source2Assets, expectedDependencies, true); }
public async Task Darc_AzDoFlow_FeedFlow() { TestContext.WriteLine("AzDo Dependency Feed Flow, non-batched"); // Feed flow test strings string proxyFeed = "https://some-proxy.azurewebsites.net/container/some-container/sig/somesig/se/2020-02-02/darc-int-maestro-test1-bababababab-1/index.json"; string azdoFeed1 = "https://some_org.pkgs.visualstudio.com/_packaging/darc-int-maestro-test1-aaabaababababe-1/nuget/v3/index.json"; string azdoFeed2 = "https://some_org.pkgs.visualstudio.com/_packaging/darc-int-maestro-test1-bbbbaababababd-1/nuget/v3/index.json"; string azdoFeed3 = "https://some_org.pkgs.visualstudio.com/_packaging/darc-int-maestro-test1-cccbaababababf-1/nuget/v3/index.json"; string regularFeed = "https://dotnetfeed.blob.core.windows.net/maestro-test1/index.json"; string buildContainer = "https://dev.azure.com/dnceng/internal/_apis/build/builds/9999999/artifacts"; string[] expectedFeeds = { proxyFeed, azdoFeed1, azdoFeed3 }; string[] notExpectedFeeds = { regularFeed, azdoFeed2, buildContainer }; IImmutableList <AssetData> feedFlowSourceAssets = ImmutableList.Create( GetAssetDataWithLocations( "Foo", "1.1.0", proxyFeed, LocationType.NugetFeed ), GetAssetDataWithLocations( "Bar", "2.1.0", azdoFeed1, LocationType.NugetFeed), GetAssetDataWithLocations( "Pizza", "3.1.0", azdoFeed2, LocationType.NugetFeed, regularFeed, LocationType.NugetFeed ), GetAssetDataWithLocations( "Hamburger", "4.1.0", azdoFeed3, LocationType.NugetFeed, buildContainer, LocationType.Container) ); TestContext.WriteLine("Azure DevOps Internal feed flow"); TestParameters parameters = await TestParameters.GetAsync(); SetTestParameters(parameters); EndToEndFlowLogic testLogic = new EndToEndFlowLogic(parameters); List <DependencyDetail> expectedAzDoFeedFlowDependencies = new List <DependencyDetail>(); DependencyDetail feedFoo = new DependencyDetail { Name = "Foo", Version = "1.1.0", RepoUri = GetAzDoRepoUrl(TestRepository.TestRepo1Name), Commit = TestRepository.CoherencyTestRepo1Commit, Type = DependencyType.Product, Pinned = false, Locations = new List <string> { proxyFeed } }; expectedAzDoFeedFlowDependencies.Add(feedFoo); DependencyDetail feedBar = new DependencyDetail { Name = "Bar", Version = "2.1.0", RepoUri = GetAzDoRepoUrl(TestRepository.TestRepo1Name), Commit = TestRepository.CoherencyTestRepo1Commit, Type = DependencyType.Product, Pinned = false, Locations = new List <string> { azdoFeed1 } }; expectedAzDoFeedFlowDependencies.Add(feedBar); DependencyDetail feedPizza = new DependencyDetail { Name = "Pizza", Version = "3.1.0", RepoUri = GetAzDoRepoUrl(TestRepository.TestRepo1Name), Commit = TestRepository.CoherencyTestRepo1Commit, Type = DependencyType.Product, Pinned = false, Locations = new List <string> { azdoFeed2, regularFeed } }; expectedAzDoFeedFlowDependencies.Add(feedPizza); DependencyDetail feedHamburger = new DependencyDetail { Name = "Hamburger", Version = "4.1.0", RepoUri = GetAzDoRepoUrl(TestRepository.TestRepo1Name), Commit = TestRepository.CoherencyTestRepo1Commit, Type = DependencyType.Product, Pinned = false, Locations = new List <string> { azdoFeed3, buildContainer } }; expectedAzDoFeedFlowDependencies.Add(feedHamburger); await testLogic.NonBatchedAzDoFlowTestBase( $"AzDo_FeedFlowBranch_{Environment.MachineName}", $"AzDo_FeedFlowChannel_{Environment.MachineName}", feedFlowSourceAssets, expectedAzDoFeedFlowDependencies, isFeedTest : true, expectedFeeds : expectedFeeds, notExpectedFeeds : notExpectedFeeds).ConfigureAwait(false); }