-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Fix wrong database name on existing database error for New-AzSqlDatabaseSecondary #12421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -172,7 +172,7 @@ protected override IEnumerable<AzureReplicationLinkModel> GetEntity() | |
|
|
||
| // The database already exists | ||
| throw new PSArgumentException( | ||
| string.Format(Resources.DatabaseNameExists, this.DatabaseName, this.PartnerServerName), | ||
| string.Format(Resources.DatabaseNameExists, GetEffectivePartnerDatabaseName(this.DatabaseName, this.PartnerDatabaseName), this.PartnerServerName), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for fixing this! |
||
| "DatabaseName"); | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the only negative test? In case we add more negative tests, can we be more specific like TestNegative-CreateNamedSecondaryAlreadyExists or something similar to indicate the test scenario?