apm-agent-dotnet icon indicating copy to clipboard operation
apm-agent-dotnet copied to clipboard

Tests with AzureCredentialsFact are skipped on Windows

Open gregkalapos opened this issue 2 years ago • 0 comments

Follow up from https://github.com/elastic/apm-agent-dotnet/pull/1702#pullrequestreview-976588383.

Current situation:

  • Tests with AzureCredentialsFact run on Linux
  • Those don't run on Windows
  • The skip reason on Windows is: Azure credentials not available. If running locally, run 'az login' to login
  • AzureCredentials.cs does the parsing of the credentials which seem to end up with Unauthenticated
  • AzureCredentials.cs uses console log and the logging is limited

TODO:

  • Ultimately run tests with AzureCredentialsFact on Windows as well
  • And in order to diagnose:
    • Use XUnit logger to better log collection in CI instead of console logs
    • Extend logging in AzureCredentials.cs

gregkalapos avatar May 18 '22 09:05 gregkalapos