Skip to content

Commit

Permalink
Merge pull request #1447 from ChristophHannappel/fix/SPSearchCrawlerI…
Browse files Browse the repository at this point in the history
…mpactRuleSetMethod

SPSearchCrawlerImpactRule: Set-TargetRessource uses SearchServiceApplicationPipeBind instead of SearchServicePipeBind
  • Loading branch information
ykuijs authored Jan 28, 2025
2 parents 9407431 + 17c547b commit f808805
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- SPSearchCrawlerImpactRule
- Resource threw an error on the Set-TargetResource Function because the `SPEnterpriseSearchSiteHitRule`
cmdlet Parameter `SearchService` does not support a Search Service Application Object.

## [5.6.0] - 2025-01-23

### Fixed
Expand All @@ -14,12 +20,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- SPSite
- The Get Method failed to get an existing Site Collection on SharePoint Server
Subscription Edition


- SPSearchCrawlerImpactRule
- Ressource threw an error if the Crawler Impact Rule did not exist when
- Resource threw an error if the Crawler Impact Rule did not exist when
running the Get Method


## [5.5.0] - 2024-04-22

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function Set-TargetResource
$hitRate = $params.RequestLimit
}

$serviceApp = Get-SPEnterpriseSearchServiceApplication -Identity $params.ServiceAppName
$serviceApp = Get-SPEnterpriseSearchServiceApplication -Identity $params.ServiceAppName | Select-Object -ExpandProperty DisplayName
if ($null -eq $serviceApp)
{
$message = "The Search Service Application does not exist."
Expand Down Expand Up @@ -193,7 +193,7 @@ function Set-TargetResource
$behavior = "0"
$hitRate = $params.RequestLimit
}
$serviceApp = Get-SPEnterpriseSearchServiceApplication -Identity $params.ServiceAppName
$serviceApp = Get-SPEnterpriseSearchServiceApplication -Identity $params.ServiceAppName | Select-Object -ExpandProperty DisplayName
if ($null -eq $serviceApp)
{
$message = "The Search Service Application does not exist."
Expand Down Expand Up @@ -223,7 +223,7 @@ function Set-TargetResource
$params = $args[0]
$eventSource = $args[1]

$serviceApp = Get-SPEnterpriseSearchServiceApplication -Identity $params.ServiceAppName
$serviceApp = Get-SPEnterpriseSearchServiceApplication -Identity $params.ServiceAppName | Select-Object -ExpandProperty DisplayName
if ($null -eq $serviceApp)
{
$message = "The Search Service Application does not exist."
Expand Down
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 Down Expand Up @@ -107,7 +107,7 @@ try
}

Mock -CommandName Get-SPEnterpriseSearchServiceApplication -MockWith {
return @{
return [pscustomobject]@{
DisplayName = $testParams.ServiceAppName
}
}
Expand Down Expand Up @@ -141,7 +141,7 @@ try
}

Mock -CommandName Get-SPEnterpriseSearchServiceApplication -MockWith {
return @{
return [pscustomobject]@{
DisplayName = $testParams.ServiceAppName
}
}
Expand Down Expand Up @@ -179,7 +179,7 @@ try
}

Mock -CommandName Get-SPEnterpriseSearchServiceApplication -MockWith {
return @{
return [pscustomobject]@{
DisplayName = $testParams.ServiceAppName
}
}
Expand Down Expand Up @@ -207,7 +207,7 @@ try
}

Mock -CommandName Get-SPEnterpriseSearchServiceApplication -MockWith {
return @{
return [pscustomobject]@{
DisplayName = $testParams.ServiceAppName
}
}
Expand Down Expand Up @@ -287,7 +287,7 @@ try
}

Mock -CommandName Get-SPEnterpriseSearchServiceApplication -MockWith {
return @{
return [pscustomobject]@{
DisplayName = $testParams.ServiceAppName
}
}
Expand Down Expand Up @@ -321,7 +321,7 @@ try
}

Mock -CommandName Get-SPEnterpriseSearchServiceApplication -MockWith {
return @{
return [pscustomobject]@{
DisplayName = $testParams.ServiceAppName
}
}
Expand Down

0 comments on commit f808805

Please sign in to comment.