Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions eng/pipelines/templates/jobs/ci.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ jobs:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
PackageInfoDirectory: $(Build.ArtifactStagingDirectory)/PackageInfo

- pwsh: |
Write-Host "##vso[task.setvariable variable=Logging__LogLevel__Default]Debug"
displayName: 'Enable Verbose Logging'
condition: eq(variables['System.Debug'], 'true')

- ${{ if eq(parameters.TestProxy, true) }}:
- template: /eng/common/testproxy/test-proxy-standalone-tool.yml

Expand Down Expand Up @@ -96,3 +101,14 @@ jobs:
cat $(Build.SourcesDirectory)/test-proxy.log
displayName: 'Dump Test Proxy logs'
condition: and(succeededOrFailed(), eq(variables['System.Debug'], 'true'))

- pwsh: |
try {
$response = Invoke-WebRequest -Uri 'http://localhost:5000/Audit/Logs' -UseBasicParsing -ErrorAction Stop
Write-Host $response.Content
} catch {
Write-Host "Failed to retrieve Test Proxy Audit Logs from http://localhost:5000/Audit/Logs"
Write-Host $_
}
displayName: 'Dump Test Proxy Audit Logs'
condition: and(succeededOrFailed(), eq(variables['System.Debug'], 'true'))
5 changes: 5 additions & 0 deletions eng/pipelines/templates/jobs/live.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ jobs:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
PackageInfoDirectory: $(Build.ArtifactStagingDirectory)/PackageInfo

- pwsh: |
Write-Host "##vso[task.setvariable variable=Logging__LogLevel__Default]Debug"
displayName: 'Enable Verbose Logging'
condition: eq(variables['System.Debug'], 'true')

- ${{ if parameters.UseFederatedAuth }}:
- task: AzurePowerShell@5
displayName: "Test Packages - Federated Auth"
Expand Down
Loading