perf: use stable sha256 cache keys for summarizer requests
This commit is contained in:
@@ -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)!);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user