File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,15 @@ Describe "Testing $Server Backup solution" {
69
69
}
70
70
}
71
71
72
+ if ($Share.StartsWith (' \\' ) -eq $False )
73
+ {
74
+ $UNC = $Share.Replace (' :' , ' $' )
75
+ $Root = ' \\' + $ServerName + ' \' + $UNC + ' \' + $Folder
76
+ }
77
+ else
78
+ {
72
79
$Root = $Share + ' \' + $Folder
80
+ }
73
81
74
82
Context " New Backup Jobs on $server " {
75
83
It " Agent should be running" {
@@ -105,7 +113,7 @@ Describe "Testing $Server Backup solution" {
105
113
}
106
114
}# foreach jobs
107
115
} # end context new backup jobs
108
- Context " Other Maintenance Jobs on $Instance " {
116
+ Context " Other Maintenance Jobs on $Server " {
109
117
$Jobs = $Jobs.Where {($_.Name -eq ' DatabaseIntegrityCheck - SYSTEM_DATABASES' ) -or ($_.Name -eq ' DatabaseIntegrityCheck - USER_DATABASES' ) -or ($_.Name -eq ' IndexOptimize - USER_DATABASES' )}
110
118
foreach ($job in $Jobs )
111
119
{
@@ -128,7 +136,7 @@ Describe "Testing $Server Backup solution" {
128
136
}# foreach jobs
129
137
130
138
} # end context other maintenanace jobs
131
- Context " OLA cleanup jobs on $Instance " {
139
+ Context " OLA cleanup jobs on $Server " {
132
140
$Jobs = $Jobs.Where {($_.Name -eq ' Output File Cleanup' ) -or ($_.Name -eq ' CommandLog Cleanup' ) -or ($_.Name -eq ' sp_delete_backuphistory' ) -or ($_.Name -eq ' sp_purge_jobhistory' )}
133
141
foreach ($job in $Jobs )
134
142
{
You can’t perform that action at this time.
0 commit comments