Fix for Full/Log/Differential backup #5370 (#811)

* fixing the order of setting backup properties so that they are correctly propogated to actual action

* Adding a backup type specific test and enabling 'few' old ones which seem to work consistentenly

* Adding finally block, close connection and name change as per PR comments
This commit is contained in:
udeeshagautam
2019-05-14 17:00:21 -07:00
committed by GitHub
parent c86f43618c
commit db70f421ae
2 changed files with 219 additions and 113 deletions

View File

@@ -172,11 +172,12 @@ namespace Microsoft.SqlTools.ServiceLayer.DisasterRecovery
/// </summary>
public override void Execute()
{
// set the operation properties before using them to create backup obejct
this.SetBackupProps();
this.backup = new Backup();
this.backup.Database = this.backupInfo.DatabaseName;
this.backup.Action = this.backupActionType;
this.backup.Incremental = this.isBackupIncremental;
this.SetBackupProps();
try
{