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
Copy file name to clipboardExpand all lines: docs/trackers/features/commit-bug-review-TRACKER.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ Find real bugs (logic errors, null refs, incorrect behavior) and fix them. Skip
74
74
| 232395207 | Set-DbaPrivilege, Get-DbaPrivilege - Add CreateGlobalObjects privilege support (#10235) | DONE | Fixed empty privilege-entry updates so Set-DbaPrivilege still grants rights when secedit exports a blank line; added unit regression test. |
75
75
| 099624061 | Get-DbaDbRestoreHistory - Add BackupStartDate, StopAt, and LastRestorePoint columns (#10249) | DONE | Fixed LastRestorePoint so StopAt is used whenever specified; added unit regression test. |
76
76
| 4f1e56ce4 | New-DbaDbMailAccount, Set-DbaDbMailAccount - Add Port, SSL, and authentication parameters (#10257) | DONE | Added validation to reject conflicting SMTP authentication modes and incomplete credential pairs; added unit regression tests. |
It "Should call Stop-Function when ErrorBrokerConversations is combined with NoRecovery" {
138
+
Mock Stop-Function {
139
+
throw$Message
140
+
}
141
+
142
+
{ Invoke-DbaAdvancedRestore-BackupHistory $script:backupHistory-SqlInstance "sql1"-NoRecovery -ErrorBrokerConversations } | Should -Throw "*ErrorBrokerConversations cannot be specified with Norecovery or Standby as it needs recovery to work*"
143
+
}
144
+
145
+
It "Should prefix OutputScriptOnly with Execute As when ErrorBrokerConversations is specified" {
Compare-Object-ReferenceObject $expectedParameters-DifferenceObject $hasParameters| Should -BeNullOrEmpty
71
71
}
72
72
}
73
+
74
+
InModuleScope dbatools {
75
+
Context "ErrorBrokerConversations validation" {
76
+
BeforeAll {
77
+
functionWrite-Message { }
78
+
}
79
+
80
+
BeforeEach {
81
+
Mock Connect-DbaInstance {
82
+
[PSCustomObject]@{
83
+
DatabaseEngineEdition="SqlServer"
84
+
VersionMajor=16
85
+
ConnectionContext= [PSCustomObject]@{
86
+
StatementTimeout=0
87
+
}
88
+
}
89
+
}
90
+
}
91
+
92
+
It "Should call Stop-Function when ErrorBrokerConversations is combined with NoRecovery" {
93
+
Mock Stop-Function {
94
+
throw$Message
95
+
}
96
+
97
+
{ Restore-DbaDatabase-SqlInstance "sql1"-Path "C:\backups\test.bak"-ErrorBrokerConversations -NoRecovery } | Should -Throw "*ErrorBrokerConversations cannot be specified with Norecovery or Standby as it needs recovery to work*"
0 commit comments