fix: Set Kusto wait strategy encoding to UTF-8#1567
fix: Set Kusto wait strategy encoding to UTF-8#1567HofmeisterAn merged 2 commits intotestcontainers:developfrom
Conversation
The Kusto wait strategy uses the default encoding. For .NET Framework, this resolves to Windows-1252, which causes the Kusto emulator to return a 415 Media Type not Supported error. In .NET Core, it is UTF-8. This allows .NET Framework tests to run by setting the encoding to always be UTF-8.
✅ Deploy Preview for testcontainers-dotnet ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Summary by CodeRabbit
WalkthroughThe Kusto emulator HTTP request encoding was changed from the platform default (Encoding.Default) to UTF-8 for the JSON payload used in POST requests; the JSON content itself and all other logic remain unchanged. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
HofmeisterAn
left a comment
There was a problem hiding this comment.
Thanks! That's something we should update across the whole repo.
What does this PR do?
The Kusto wait strategy uses the default encoding. For .NET Framework, this resolves to Windows-1252, which causes the Kusto emulator to return a 415 Media Type not Supported error. In .NET Core, it is UTF-8.
This allows .NET Framework tests to run by setting the encoding to always be UTF-8.
Why is it important?
Required to use Testcontainers in a .NET Framework app. Otherwise, the Testcontainer waits forever.