Skip to content

Commit 4f6671b

Browse files
committed
fix versionno
1 parent d4ad167 commit 4f6671b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

e2eTests/scenarios/FederatedCredentials/runtest.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ Test-LogContainsFromRun -repository $repository -runid $run.id -jobName 'Deliver
126126

127127
# Test artifacts generated
128128
$artifacts = gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/$repository/actions/runs/$($run.id)/artifacts | ConvertFrom-Json
129-
@($artifacts.artifacts.Name) -like "Library Apps-main-Apps-*.*.*.0" | Should -Be $true
130-
@($artifacts.artifacts.Name) -like "Main App-main-Apps-*.*.*.0" | Should -Be $true
131-
@($artifacts.artifacts.Name) -like "Main App-main-Dependencies-*.*.*.0" | Should -Be $true
129+
@($artifacts.artifacts.Name) -like "Library Apps-main-Apps-$($newVersion.Major).$($newVersion.Minor).$($newVersion.Build).*" | Should -Be $true
130+
@($artifacts.artifacts.Name) -like "Main App-main-Apps-$($newVersion.Major).$($newVersion.Minor).$($newVersion.Build).*" | Should -Be $true
131+
@($artifacts.artifacts.Name) -like "Main App-main-Dependencies-$($newVersion.Major).$($newVersion.Minor).$($newVersion.Build).*" | Should -Be $true
132132

133133
Write-Host "Download build artifacts"
134134
invoke-gh run download $run.id --repo $repository --dir 'signedApps'
135135

136136
$noOfApps = 0
137-
Get-Item "signedApps/Main App-main-Apps-*.*.*.0/*.app" | ForEach-Object {
137+
Get-Item "signedApps/Main App-main-Apps-$($newVersion.Major).$($newVersion.Minor).$($newVersion.Build).*/*.app" | ForEach-Object {
138138
$appFile = $_.FullName
139139
Write-Host "Check that $appFile was signed"
140140
[System.Text.Encoding]::Ascii.GetString([System.IO.File]::ReadAllBytes($appFile)).indexof('DigiCert Trusted G4 RSA4096 SHA256 TimeStamping CA') | Should -BeGreaterThan -1

0 commit comments

Comments
 (0)