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

remove database snapshots from Database Status #578

Open
SQLDBAWithABeard opened this Issue Nov 29, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@SQLDBAWithABeard
Copy link
Collaborator

SQLDBAWithABeard commented Nov 29, 2018

Bug Report

General Troubleshooting steps

  • [X ] Verified running the latest release of dbachecks?

  • [X ] Verified errors are not related to permissions?

  • [ X] Can duplicate in new/clean PowerShell session (clean = powershell -NoProfile)?

Steps to Reproduce

dbachecks with expected database status fails for snapshots (which will always be read-only)

@SQLDBAWithABeard

This comment has been minimized.

Copy link
Collaborator

SQLDBAWithABeard commented Nov 29, 2018

$results.Where{$_.Name -notin $ExcludeReadOnly -and $_.IsDatabaseSnapshot -eq $false}}.Readonly | Should -Not -Contain True -Because "We expect that there will be no Read-Only databases except for those specified"

on

https://github.com/sqlcollaborative/dbachecks/blob/development/internal/assertions/Database.Assertions.ps1#L41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment