Skip to content

Commit

Permalink
add Microsoft.Internal.AntiSSRF.dll (#3742)
Browse files Browse the repository at this point in the history
Co-authored-by: freddydk <[email protected]>
  • Loading branch information
freddydk and freddydk authored Oct 30, 2024
1 parent 93ac2eb commit 6368e20
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion AppHandling/PsTestFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
[string] $clientContextScriptPath = $null
)

$antiSSRFdll = Join-Path ([System.IO.Path]::GetDirectoryName($clientDllPath)) 'Microsoft.Internal.AntiSSRF.dll'

# Load DLL's
Add-type -Path $clientDllPath
Add-type -Path $newtonSoftDllPath
if (Test-Path $antiSSRFdll) {
Add-Type -Path $antiSSRFdll
}
Add-type -Path $clientDllPath

if (!($clientContextScriptPath)) {
$clientContextScriptPath = Join-Path $PSScriptRoot "ClientContext.ps1"
Expand Down
4 changes: 4 additions & 0 deletions AppHandling/Run-ConnectionTestToNavContainer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ try {
$clientDllPath = "C:\Test Assemblies\Microsoft.Dynamics.Framework.UI.Client.dll"
if (!(Test-Path $myClientDllPath)) {
Copy-Item -Path $clientDllPath -Destination $myClientDllPath
$antiSSRFdll = Join-Path ([System.IO.Path]::GetDirectoryName($clientDllPath)) 'Microsoft.Internal.AntiSSRF.dll'
if (Test-Path $antiSSRFdll) {
Copy-Item -Path $antiSSRFdll -Destination ([System.IO.Path]::GetDirectoryName($myClientDllPath))
}
}
} -argumentList $newtonSoftDllPath, $clientDllPath

Expand Down
4 changes: 4 additions & 0 deletions AppHandling/Run-TestsInNavContainer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ try {
$clientDllPath = "C:\Test Assemblies\Microsoft.Dynamics.Framework.UI.Client.dll"
if (!(Test-Path $myClientDllPath)) {
Copy-Item -Path $clientDllPath -Destination $myClientDllPath
$antiSSRFdll = Join-Path ([System.IO.Path]::GetDirectoryName($clientDllPath)) 'Microsoft.Internal.AntiSSRF.dll'
if (Test-Path $antiSSRFdll) {
Copy-Item -Path $antiSSRFdll -Destination ([System.IO.Path]::GetDirectoryName($myClientDllPath))
}
}
} -argumentList $newtonSoftDllPath, $clientDllPath
}
Expand Down
4 changes: 4 additions & 0 deletions HelperFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,10 @@ Function CreatePsTestToolFolder {
if (!(Test-Path $myClientDllPath)) {
$clientDllPath = "C:\Test Assemblies\Microsoft.Dynamics.Framework.UI.Client.dll"
Copy-Item -Path $clientDllPath -Destination $myClientDllPath
$antiSSRFdll = Join-Path ([System.IO.Path]::GetDirectoryName($clientDllPath)) 'Microsoft.Internal.AntiSSRF.dll'
if (Test-Path $antiSSRFdll) {
Copy-Item -Path $antiSSRFdll -Destination ([System.IO.Path]::GetDirectoryName($myClientDllPath))
}
}
} -argumentList (Get-BcContainerPath -containerName $containerName -Path $newtonSoftDllPath), (Get-BcContainerPath -containerName $containerName -Path $clientDllPath)
}
Expand Down

0 comments on commit 6368e20

Please sign in to comment.