Skip to content

Commit

Permalink
Extend PowerShell module tests (#1504)
Browse files Browse the repository at this point in the history
  • Loading branch information
RassK authored Oct 26, 2022
1 parent 03cc269 commit 0e19ef8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,16 @@ jobs:
Invoke-WebRequest -Uri $module_url -OutFile $dl_path
Import-Module $dl_path
Install-OpenTelemetryCore
$install_dir = Get-OpenTelemetryInstallDirectory
Register-OpenTelemetryForCurrentSession -OTelServiceName "MyServiceDisplayName"
dotnet help
If (-not (Test-Path $log_path)) { throw "Log file does not exist. Instrumentation test failed." }
Remove-Item $log_path
Unregister-OpenTelemetryForCurrentSession
dotnet help
If (Test-Path $log_path) { throw "Log file exists. Instrumentation unregister failed." }
Uninstall-OpenTelemetryCore
If (Test-Path $install_dir) { throw "Core files exist. Core uninstall failed." }
shell-scripts:
strategy:
Expand Down

0 comments on commit 0e19ef8

Please sign in to comment.