Skip to content

Commit

Permalink
Fix: Crawl Impact Rules do use the Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannappel, Christoph committed Dec 23, 2024
1 parent 77b6899 commit e887b19
Showing 1 changed file with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ try
InModuleScope -ModuleName $script:DSCResourceFullName -ScriptBlock {
Describe -Name $Global:SPDscHelper.DescribeHeader -Fixture {
BeforeAll {
Invoke-Command -ScriptBlock $Global:SPDscHelper.InitializeScript -NoNewScope
Invoke-Command -Scriptblock $Global:SPDscHelper.InitializeScript -NoNewScope

# Initialize tests
$getTypeFullName = "Microsoft.Office.Server.Search.Administration.SearchServiceApplication"
Expand All @@ -61,16 +61,16 @@ try
Mock -CommandName Get-SPServiceApplication -MockWith {
return @(
New-Object -TypeName "Object" |
Add-Member -MemberType ScriptMethod `
-Name GetType `
-Value {
New-Object -TypeName "Object" |
Add-Member -MemberType NoteProperty `
-Name FullName `
-Value $getTypeFullName `
-PassThru
} `
-PassThru -Force)
Add-Member -MemberType ScriptMethod `
-Name GetType `
-Value {
New-Object -TypeName "Object" |
Add-Member -MemberType NoteProperty `
-Name FullName `
-Value $getTypeFullName `
-PassThru
} `
-PassThru -Force)
}

function Add-SPDscEvent
Expand Down Expand Up @@ -101,7 +101,7 @@ try
BeforeAll {
$testParams = @{
ServiceAppName = "Search Service Application"
Name = "http://site.sharepoint.com"
Name = "site.sharepoint.com"
RequestLimit = 8
Ensure = "Present"
}
Expand Down Expand Up @@ -135,7 +135,7 @@ try
BeforeAll {
$testParams = @{
ServiceAppName = "Search Service Application"
Name = "http://site.sharepoint.com"
Name = "site.sharepoint.com"
RequestLimit = 8
Ensure = "Present"
}
Expand Down Expand Up @@ -174,7 +174,7 @@ try
BeforeAll {
$testParams = @{
ServiceAppName = "Search Service Application"
Name = "http://site.sharepoint.com"
Name = "site.sharepoint.com"
Ensure = "Absent"
}

Expand Down Expand Up @@ -211,7 +211,7 @@ try
BeforeAll {
$testParams = @{
ServiceAppName = "Search Service Application"
Name = "http://site.sharepoint.com"
Name = "site.sharepoint.com"
Ensure = "Absent"
}

Expand Down Expand Up @@ -244,7 +244,7 @@ try
BeforeAll {
$testParams = @{
ServiceAppName = "Search Service Application"
Name = "http://site.sharepoint.com"
Name = "site.sharepoint.com"
Ensure = "Absent"
}

Expand All @@ -271,7 +271,7 @@ try
BeforeAll {
$testParams = @{
ServiceAppName = "Search Service Application"
Name = "http://site.sharepoint.com"
Name = "site.sharepoint.com"
RequestLimit = 8
WaitTime = 60
Ensure = "Present"
Expand All @@ -290,7 +290,7 @@ try
BeforeAll {
$testParams = @{
ServiceAppName = "Search Service Application"
Name = "http://site.sharepoint.com"
Name = "site.sharepoint.com"
WaitTime = 300
Ensure = "Present"
}
Expand Down Expand Up @@ -324,7 +324,7 @@ try
BeforeAll {
$testParams = @{
ServiceAppName = "Search Service Application"
Name = "http://site.sharepoint.com"
Name = "site.sharepoint.com"
WaitTime = 300
Ensure = "Present"
}
Expand Down

0 comments on commit e887b19

Please sign in to comment.