private static WorkItemTrackingProcessorOptions GetConfigurationTfsToTfsNoEnrichers()
        {
            // Tfs To Tfs
            var migrationConfig = new WorkItemTrackingProcessorOptions()
            {
                Enabled                  = true,
                CollapseRevisions        = false,
                ReplayRevisions          = true,
                WorkItemCreateRetryLimit = 5,
                PrefixProjectToNodes     = false,
                SourceName               = "Source",
                TargetName               = "Target"
            };

            return(migrationConfig);
        }
        private static WorkItemTrackingProcessorOptions GetConfigurationTfsToTfsNoEnrichers()
        {
            // Tfs To Tfs
            var migrationConfig = new WorkItemTrackingProcessorOptions()
            {
                Enabled                  = true,
                CollapseRevisions        = false,
                ReplayRevisions          = true,
                WorkItemCreateRetryLimit = 5,
                PrefixProjectToNodes     = false,
                Source = GetTfsWorkItemEndPointOptions("migrationSource1"),
                Target = GetTfsWorkItemEndPointOptions("migrationTarget1")
            };

            return(migrationConfig);
        }
示例#3
0
        public void WorkItemMigrationProcessorConfigureTest()
        {
            var y = new WorkItemTrackingProcessorOptions
            {
                Enabled                  = true,
                CollapseRevisions        = false,
                ReplayRevisions          = true,
                WorkItemCreateRetryLimit = 5,
                PrefixProjectToNodes     = false,
                Source = new InMemoryWorkItemEndpointOptions(),
                Target = new InMemoryWorkItemEndpointOptions()
            };
            var x = Services.GetRequiredService <WorkItemTrackingProcessor>();

            x.Configure(y);
            Assert.IsNotNull(x);
        }
示例#4
0
        public void WorkItemMigrationProcessorRunTest()
        {
            var y = new WorkItemTrackingProcessorOptions
            {
                Enabled                  = true,
                CollapseRevisions        = false,
                ReplayRevisions          = true,
                WorkItemCreateRetryLimit = 5,
                PrefixProjectToNodes     = false,
                Source = new InMemoryWorkItemEndpointOptions(),
                Target = new InMemoryWorkItemEndpointOptions()
            };
            var x = Services.GetRequiredService <WorkItemTrackingProcessor>();

            x.Configure(y);
            x.Execute();
            Assert.AreEqual(ProcessingStatus.Complete, x.Status);
        }