You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 899cdc30c | Update-SqlPermission - Remove unnecessary SqlConnectionObject.Close() calls (#10291) | DONE | Materialized SMO enumerations to avoid open DataReader conflicts and added a unit regression test. |
$script:lastRestore.StopBeforeMarkName| Should -Be "lsn:20000000024300001"
169
+
$script:lastRestore.StopAtMarkName| Should -BeNullOrEmpty
170
+
Should -Invoke Stop-Function-Times 0
171
+
}
172
+
173
+
It "Should reject invalid StopAtLsn values" {
174
+
Mock Stop-Function {
175
+
throw$Message
176
+
}
177
+
178
+
{ Invoke-DbaAdvancedRestore-BackupHistory $script:backupHistory-SqlInstance "sql1"-OutputScriptOnly -StopAtLsn "bad-lsn" } | Should -Throw "*StopAtLsn must be a numeric restore LSN or a colon-delimited value*"
0 commit comments