Skip to content

Conversation

@marcominerva
Copy link
Contributor

Modified EnsureDevelopmentEnvironment to check DOTNET_ENVIRONMENT if ASPNETCORE_ENVIRONMENT is not set, and updated exception message. Updated SensitiveDataLoggerTests.cs to distinguish between environment variables. Added new test methods for different environments. Renamed existing test methods for clarity. Updated Dispose method to clear both environment variables.

Motivation and Context (Why the change? What's the scenario?)

See https://github.com/microsoft/kernel-memory/issues/851

Modified EnsureDevelopmentEnvironment to check DOTNET_ENVIRONMENT if ASPNETCORE_ENVIRONMENT is not set, and updated exception message. Updated SensitiveDataLoggerTests.cs to distinguish between environment variables. Added new test methods for different environments. Renamed existing test methods for clarity. Updated Dispose method to clear both environment variables.
@marcominerva marcominerva requested a review from dluc as a code owner October 28, 2024 16:00
dluc and others added 2 commits October 28, 2024 16:24
…LoggerTests.cs


Added tests also for the opposite scenario
@dluc dluc force-pushed the dotnet_environment branch from fe3e0ca to 5d303ef Compare October 28, 2024 23:37
@dluc dluc merged commit b91b417 into microsoft:main Oct 28, 2024
6 checks passed
@marcominerva marcominerva deleted the dotnet_environment branch October 29, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants