perf: use stable sha256 cache keys for summarizer requests

This commit is contained in:
cesnimda
2026-03-22 14:01:55 +01:00
parent dfc8521ae3
commit 4ccfd6d055
3 changed files with 36 additions and 1 deletions
@@ -1,5 +1,6 @@
using System.Reflection;
using JobTrackerApi.Controllers;
using JobTrackerApi.Services;
using Xunit;
namespace JobTrackerApi.Tests;
@@ -20,4 +21,12 @@ public sealed class AttachmentsControllerTests
Assert.Contains(".png", values);
Assert.DoesNotContain(".exe", values);
}
[Fact]
public void Max_file_size_limit_is_10_mb()
{
var field = typeof(AttachmentsController).GetField("MaxFileSizeBytes", BindingFlags.NonPublic | BindingFlags.Static);
Assert.NotNull(field);
Assert.Equal(10 * 1024 * 1024, (long)field!.GetValue(null)!);
}
}