Fix Backup/Restore parameters defaulting to wrong DeviceType (#1490)

This commit is contained in:
Charles Gagnon
2022-05-12 13:34:49 -07:00
committed by GitHub
parent 2b48331115
commit 7787a6af7b
3 changed files with 39 additions and 38 deletions

View File

@@ -153,7 +153,7 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.DisasterRecovery
OwnerUri = testDb.ConnectionString,
SelectedBackupSets = selectedBackupSets,
SourceDatabaseName = sourceDbName,
DeviceType = (int)DeviceType.Url
DeviceType = DeviceType.Url
};
request.Options[RestoreOptionsHelper.ReadHeaderFromMedia] = string.IsNullOrEmpty(backUpFilePath);