diff --git a/services/acl/Acl.IntegrationTests/OpenZaakGatewayIntegrationTests.cs b/services/acl/Acl.IntegrationTests/OpenZaakGatewayIntegrationTests.cs index 1a7a87a..4dbd24b 100644 --- a/services/acl/Acl.IntegrationTests/OpenZaakGatewayIntegrationTests.cs +++ b/services/acl/Acl.IntegrationTests/OpenZaakGatewayIntegrationTests.cs @@ -118,6 +118,9 @@ public sealed class OpenZaakGatewayIntegrationTests(OpenZaakFixture stack) Assert.Equal("diploma.pdf", doc.GetProperty("bestandsnaam").GetString()); Assert.Equal(informatieobjecttype.ToString(), doc.GetProperty("informatieobjecttype").GetString()); Assert.Equal(content.Length, doc.GetProperty("bestandsomvang").GetInt32()); + // indicatieGebruiksrecht is recorded as "no restrictions"; left null, OpenZaak would refuse to + // close the zaak this document is related to (the S-10b regression that broke the e2e flow). + Assert.False(doc.GetProperty("indicatiegebruiksrecht").GetBoolean()); // ...and it is related to the zaak (a zaakinformatieobject links the two). var relations = await stack.GetJsonAsync(new Uri(stack.BaseUrl, diff --git a/services/acl/Acl.Tests/OpenZaakGatewayTests.cs b/services/acl/Acl.Tests/OpenZaakGatewayTests.cs index e5974b1..a66a3fe 100644 --- a/services/acl/Acl.Tests/OpenZaakGatewayTests.cs +++ b/services/acl/Acl.Tests/OpenZaakGatewayTests.cs @@ -489,6 +489,9 @@ public class OpenZaakGatewayTests Assert.Contains("\"formaat\":\"application/pdf\"", create.Body); Assert.Contains("\"vertrouwelijkheidaanduiding\":\"openbaar\"", create.Body); Assert.Contains("\"status\":\"definitief\"", create.Body); + // indicatieGebruiksrecht must be set explicitly (false = no usage restrictions); left null, + // OpenZaak refuses to close the zaak this document is related to ("indicatiegebruiksrecht-unset"). + Assert.Contains("\"indicatiegebruiksrecht\":false", create.Body); // The file content is base64-encoded into `inhoud`, with its byte length in `bestandsomvang`. Assert.Contains($"\"inhoud\":\"{Convert.ToBase64String([10, 20, 30])}\"", create.Body); Assert.Contains("\"bestandsomvang\":3", create.Body);