-
Notifications
You must be signed in to change notification settings - Fork 225
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
SqlDatabaseDefaultLocation: When changing the Backup file path second test run fails #1307
Labels
bug
The issue is a bug.
Comments
johlju
added
bug
The issue is a bug.
in progress
The issue is being actively worked on by someone.
labels
Mar 17, 2019
johlju
added a commit
to johlju/SqlServerDsc
that referenced
this issue
Mar 17, 2019
- No longer does the Test-TargetResource fail on the second test run when the backup file path was changed, and the path was ending with a backslash (issue dsccommunity#1307).
johlju
added a commit
to johlju/SqlServerDsc
that referenced
this issue
Mar 17, 2019
- No longer does the Test-TargetResource fail on the second test run when the backup file path was changed, and the path was ending with a backslash (issue dsccommunity#1307).
9 tasks
johlju
added a commit
that referenced
this issue
Mar 20, 2019
- Changes to SqlServerDsc - Added new resources. - SqlRSSetup - Added helper module DscResource.Common from the repository DscResource.Template. - Moved all helper functions from SqlServerDscHelper.psm1 to DscResource.Common. - Renamed Test-SqlDscParameterState to Test-DscParameterState. - Added helper module DscResource.LocalizationHelper from the repository DscResource.Template, this replaces the helper module CommonResourceHelper.psm1. - Cleaned up unit tests, mostly around loading cmdlet stubs and loading classes stubs, but also some tests that were using some odd variants. - Fix all integration tests according to issue [PowerShell/DscResource.Template#14](PowerShell/DscResource.Template#14). - Changes to SqlSetup - Moved some resource specific helper functions to the new helper module DscResource.Common so they can be shared with the new resource SqlRSSetup. - Improved verbose messages in Test-TargetResource function to more clearly tell if features are already installed or not. - Refactored unit tests for the functions Test-TargetResource and Set-TargetResource to improve testing speed. - Modified the Test-TargetResource and Set-TargetResource to not be case-sensitive when comparing feature names. *This was handled correctly in real-world scenarios, but failed when running the unit tests (and testing casing).* - Changes to SqlDatabaseDefaultLocation - No longer does the Test-TargetResource fail on the second test run when the backup file path was changed, and the path was ending with a backslash (issue #1307).
kwirkykat
removed
the
in progress
The issue is being actively worked on by someone.
label
Mar 20, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Details of the scenario you tried and the problem that is occurring
When changing the backup file path to a path that ends with a backslash, the second test run fails because the path returned does not have the backslash.
For example:
Verbose logs showing the problem
https://ci.appveyor.com/project/johlju/sqlserverdsc/builds/23134148/job/63encldpywgofimq?fullLog=true
Suggested solution to the issue
Remove the backslash from the path before using it, both for
Test-TargetResource
andSet-TargetResource
.The DSC configuration that is used to reproduce the issue (as detailed as possible)
SQL Server edition and version the target node is running
2016 and 2017
SQL Server PowerShell modules present on the target node
n/a
The operating system the target node is running
n/a
Version and build of PowerShell the target node is running
n/a
Version of the DSC module that was used ('dev' if using current dev branch)
Dev
The text was updated successfully, but these errors were encountered: