Skip to content

Commit 0b0218d

Browse files
authored
use myusername when running tests using Windows Auth (#3387)
Fixes #3371 Co-authored-by: freddydk <[email protected]>
1 parent 563d572 commit 0b0218d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AppHandling/Run-TestsInNavContainer.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ try {
186186
}
187187

188188
if ($clientServicesCredentialType -eq "Windows" -and "$CompanyName" -eq "") {
189-
$myName = "\$($credential.UserName.SubString($credential.UserName.IndexOf('\')+1))"
189+
$myName = $myUserName.SubString($myUserName.IndexOf('\')+1)
190190
Get-BcContainerBcUser -containerName $containerName | Where-Object { $_.UserName.EndsWith("\$MyName", [System.StringComparison]::InvariantCultureIgnoreCase) -or $_.UserName -eq $myName } | % {
191191
$companyName = $_.Company
192192
}

ReleaseNotes.txt

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Fix error in Get-BcContainerAppInfo in NextMajor
77
Check-BcContainerHelperPermissions didn't work on PS7
88
Issue #3379 Adding -installCertificateOnHost to New-BcContainer didn't work when running PS7 (silently failed)
99
Issue #3376 Regression - Download-Artifacts stopped downloading pre-requisites
10+
Issue 3371 Unable to get companyname from Windows Users when running tests
1011

1112
6.0.6
1213
Include Microsoft_Business Foundation Test Libraries.app when importing test libraries (and tests)

0 commit comments

Comments
 (0)