TestPlansAndSuitesMigrationConfig Processor fails and I have Project Collection Admin rights #1714
Closed
rpalbrecht
started this conversation in
General
Replies: 1 comment
-
This can be closed I had to make the source Prompt and the target AccessToken and it works. I am now dealing with a different issue with test plans. Thank you, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
TestPlansAndSuitesMigrationConfig Processor fails and I have Project Collection Admin rights. I am using version 14.1.0 of the tool. have been able to migrate everything else to this point including the test cases. but right off the bat it will not migrate the test plans
I am the Collection Admin for both Source and Target. I have confirm the tokens and my account do have the rights as admin to make these change so when I debug into the code not sure why it fails and claims the token does not have the rights.
var startTime = DateTime.UtcNow;
var timer = System.Diagnostics.Stopwatch.StartNew();
TfsTeamProjectCollection y;
try
{
Log.Information("TfsMigrationClient::GetDependantTfsCollection:AuthenticationMode({0})", _config.AuthenticationMode.ToString());
switch (_config.AuthenticationMode)
{
case AuthenticationMode.AccessToken:
Log.Information("TfsMigrationClient::GetDependantTfsCollection: Connecting with AccessToken ");
var pat = TfsConfig.PersonalAccessToken;
if (!string.IsNullOrEmpty(TfsConfig.PersonalAccessTokenVariableName))
{
pat = Environment.GetEnvironmentVariable(TfsConfig.PersonalAccessTokenVariableName);
}
_vssCredentials = new VssBasicCredential(string.Empty, pat);
y = new TfsTeamProjectCollection(TfsConfig.Collection, _vssCredentials);
break;
this line causes the exception
Log.Information("MigrationClient: validating security for {@AuthorizedIdentity} ", y.AuthorizedIdentity);
Any suggestion?
Thank you,
{
"$type": "TestPlansAndSuitesMigrationConfig",
"Enabled": true,
"ReplayRevisions": true,
"PrefixProjectToNodes": false,
"OnlyElementsWithTag": null,
"TestPlanQueryBit": null,
"RemoveAllLinks": false,
"MigrationDelay": 0,
"UseCommonNodeStructureEnricherConfig": false,
"NodeBasePaths": null,
"AreaMaps": {
"StrategicPod\\(.)$": "TotalView\TotalView",
"BusinessSystems\\(.)$": "TotalView\TotalView",
"FuelProcessApi\\(.)$": "TotalView\TotalView",
"EnterpriseDatabases\\(.)$": "TotalView\TotalView",
"OrderManagement\\(.)$": "TotalView\TotalView",
"ConnectedVehicle\\(.)$": "TotalView\TotalView",
"ServiceMaster\\(.)$": "TotalView\TotalView",
"DevOps\\(.)$": "TotalView\TotalView",
"Quote2Cap\\(.)$": "TotalView\TotalView",
"Auto_Integrate\\(.)$": "TotalView\TotalView",
"TotalView_Tech_Debt_Remediation\\(.)$": "TotalView\TotalView",
"StrategicPod$": "TotalView\TotalView",
"BusinessSystems$": "TotalView\TotalView",
"FuelProcessApi$": "TotalView\TotalView",
"EnterpriseDatabases$": "TotalView\TotalView",
"OrderManagement$": "TotalView\TotalView",
"ConnectedVehicle$": "TotalView\TotalView",
"ServiceMaster$": "TotalView\TotalView",
"Auto_Integrate$": "TotalView\TotalView",
"Quote2Cap$": "TotalView\TotalView",
"DevOps$": "TotalView\TotalView",
"Da_Vinci_UI-UX_Redesign$": "TotalView\TotalView",
"TotalView_Tech_Debt_Remediation$": "TotalView\TotalView"
},
"IterationMaps": {
"StrategicPod\\(.)$": "TotalView\TotalView",
"BusinessSystems\\(.)$": "TotalView\TotalView",
"FuelProcessApi\\(.)$": "TotalView\TotalView",
"EnterpriseDatabases\\(.)$": "TotalView\TotalView",
"OrderManagement\\(.)$": "TotalView\TotalView",
"ConnectedVehicle\\(.)$": "TotalView\TotalView",
"ServiceMaster\\(.)$": "TotalView\TotalView",
"DevOps\\(.)$": "TotalView\TotalView",
"Quote2Cap\\(.)$": "TotalView\TotalView",
"Auto_Integrate\\(.)$": "TotalView\TotalView",
"TotalView_Tech_Debt_Remediation\\(.)$": "TotalView\TotalView",
"StrategicPod$": "TotalView\TotalView",
"BusinessSystems$": "TotalView\TotalView",
"FuelProcessApi$": "TotalView\TotalView",
"EnterpriseDatabases$": "TotalView\TotalView",
"OrderManagement$": "TotalView\TotalView",
"ConnectedVehicle$": "TotalView\TotalView",
"ServiceMaster$": "TotalView\TotalView",
"Auto_Integrate$": "TotalView\TotalView",
"Quote2Cap$": "TotalView\TotalView",
"DevOps$": "TotalView\TotalView",
"Da_Vinci_UI-UX_Redesign$": "TotalView\TotalView",
"TotalView_Tech_Debt_Remediation$": "TotalView\TotalView"
},
"RemoveInvalidTestSuiteLinks": false,
"FilterCompleted": false
},
If I use "Prompt" I get the exception below:
[14:39:29 INF] [vLocal] == Plan[ 1/77] Suite[0/0] Cases[0/0] - planid[39408 ] | Process Plan Document Center
[14:39:29 INF] [vLocal] ===============================================================================================
[14:39:30 ERR] [vLocal] Unable to configure store
Microsoft.TeamFoundation.WorkItemTracking.Client.DeniedOrNotExistException: TF26198: The work item does not exist, or you do not h
at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.LoadWorkItemFromRowSetInternal(Int32 rev, Nullable1 asof, IWorkIt at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem..ctor(WorkItemStore store, Int32 id) at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.GetWorkItem(Int32 id) at MigrationTools._EngineV1.Clients.TfsWorkItemMigrationClient.GetWorkItem(Int32 id) in D:\Repos\azure-devops-migration-tools-l [14:39:30 FTL] [vLocal] Error while running TestPlansAndSuitesMigrationContext Microsoft.TeamFoundation.WorkItemTracking.Client.DeniedOrNotExistException: TF26198: The work item does not exist, or you do not h at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.LoadWorkItemFromRowSetInternal(Int32 rev, Nullable1 asof, IWorkIt
at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem..ctor(WorkItemStore store, Int32 id)
at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.GetWorkItem(Int32 id)
at MigrationTools._EngineV1.Clients.TfsWorkItemMigrationClient.GetWorkItem(Int32 id) in D:\Repos\azure-devops-migration-tools-l
at MigrationTools._EngineV1.Clients.TfsWorkItemMigrationClient.GetWorkItem(String id) in D:\Repos\azure-devops-migration-tools-
at VstsSyncMigrator.Engine.TestPlansAndSuitesMigrationContext.FindTestPlan(TestManagementContext tmc, String name) in D:\Repos
at VstsSyncMigrator.Engine.TestPlansAndSuitesMigrationContext.ProcessTestPlan(ITestPlan sourcePlan) in D:\Repos\azure-devops-mi
at VstsSyncMigrator.Engine.TestPlansAndSuitesMigrationContext.InternalExecute() in D:\Repos\azure-devops-migration-tools-latest
at MigrationTools._EngineV1.Processors.MigrationProcessorBase.Execute() in D:\Repos\azure-devops-migration-tools-latest\src\Mig
[14:39:30 ERR] [vLocal] TestPlansAndSuitesMigrationContext The Processor MigrationEngine entered the failed state...stopping run
Beta Was this translation helpful? Give feedback.
All reactions