Record architecture B corrections and measurement tooling

This commit is contained in:
Steffen committed 2026-11-23 00:01:07 +01:00
1 parent 097d156c18
commit 6ea20b2365
78 files changed
+45820 -67

No files matched your search

@@ -16,6 +16,9 @@ public sealed class ProvisioningTests
Installation.Prepare(plan, "localhost", 5443, root, null, null, null);
using var json = JsonDocument.Parse(File.ReadAllText(Path.Combine(plan, "installation.json"))); var password = json.RootElement.GetProperty("CertificatePassword").GetString();
using var cert = X509CertificateLoader.LoadPkcs12FromFile(Path.Combine(plan, "application.pfx"), password); Assert.True(cert.HasPrivateKey);
var settings = json.RootElement.GetProperty("Settings");
foreach (var removedPolicy in new[] { "Resources:MaxConcurrentRequests", "Resources:MaxConcurrentAssessments", "Resources:RequestDeadlineSeconds", "Resources:MaxPoolSize" })
Assert.False(settings.TryGetProperty(removedPolicy, out _));
Assert.Equal(3, json.RootElement.GetProperty("Accounts").GetArrayLength()); Assert.DoesNotContain("Service-Key", json.RootElement.GetRawText());
if (OperatingSystem.IsLinux()) Assert.Equal(UnixFileMode.UserRead | UnixFileMode.UserWrite, File.GetUnixFileMode(Path.Combine(plan, "installation.json")));
Assert.Throws<InvalidOperationException>(() => Installation.Prepare(plan, "localhost", 5443, root, null, null, null));