Skip to content

Commit cf01bba

Browse files
fanglfangl
authored andcommitted
Update Sync Agent Creation Code and Session Records
1 parent 59a1baf commit cf01bba

File tree

7 files changed

+3824
-1728
lines changed

7 files changed

+3824
-1728
lines changed

src/ResourceManager/Sql/Commands.Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DataSyncTests/TestSyncAgentCreate.json

Lines changed: 620 additions & 245 deletions
Large diffs are not rendered by default.

src/ResourceManager/Sql/Commands.Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DataSyncTests/TestSyncAgentCrud.json

Lines changed: 700 additions & 334 deletions
Large diffs are not rendered by default.

src/ResourceManager/Sql/Commands.Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DataSyncTests/TestSyncAgentKeyCreate.json

Lines changed: 588 additions & 276 deletions
Large diffs are not rendered by default.

src/ResourceManager/Sql/Commands.Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DataSyncTests/TestSyncAgentLinkedDatabaseList.json

Lines changed: 585 additions & 273 deletions
Large diffs are not rendered by default.

src/ResourceManager/Sql/Commands.Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DataSyncTests/TestSyncAgentRemove.json

Lines changed: 620 additions & 317 deletions
Large diffs are not rendered by default.

src/ResourceManager/Sql/Commands.Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DataSyncTests/TestSyncAgentsGetAndList.json

Lines changed: 709 additions & 283 deletions
Large diffs are not rendered by default.

src/ResourceManager/Sql/Commands.Sql/Data Sync/Services/AzureSqlDataSyncAdapter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ internal AzureSqlSyncAgentModel CreateSyncAgent(AzureSqlSyncAgentModel model, st
432432
}
433433
});
434434

435+
// Workaround for Rest API return response value incorrect issue. Remove this line after backend fix is deployed
436+
resp = Communicator.GetSyncAgent(model.ResourceGroupName, model.ServerName, model.SyncAgentName, Util.GenerateTracingId());
435437
return CreateSyncAgentModelFromResponse(model.ResourceGroupName, model.ServerName, resp);
436438
}
437439

0 commit comments

Comments
 (0)