diff --git a/docker/docker-compose.rx-mission.yml b/docker/docker-compose.rx-mission.yml new file mode 100644 index 0000000000..da77af2d96 --- /dev/null +++ b/docker/docker-compose.rx-mission.yml @@ -0,0 +1,15 @@ +version: '3.8' + +name: rx-mission + +services: + flask_app: + build: ./rx-mission + ports: + - "80:80" + volumes: + - ./rx-mission/:/app/ + +networks: + open-forms-dev: + name: open-forms-dev diff --git a/docker/open-zaak/fixtures/open_zaak_fixtures.json b/docker/open-zaak/fixtures/open_zaak_fixtures.json index 349f20cd29..a6052675ec 100644 --- a/docker/open-zaak/fixtures/open_zaak_fixtures.json +++ b/docker/open-zaak/fixtures/open_zaak_fixtures.json @@ -17,11 +17,18 @@ "secret": "test_secret_key" } }, +{ + "model": "config.featureflags", + "pk": 1, + "fields": { + "allow_unpublished_typen": true + } +}, { "model": "catalogi.catalogus", "pk": 1, "fields": { - "_etag": "e1d589174bfd280d29dbce6ab0450e18", + "_etag": "ef26c6f8e32dd9cd50809442b635bb26", "naam": "Test catalog", "uuid": "bd58635c-793e-446d-a7e0-460d7b04829d", "domein": "TEST", @@ -108,6 +115,22 @@ "statustype": null } }, +{ + "model": "catalogi.eigenschap", + "pk": 4, + "fields": { + "_etag": "588430a1d4a69b9470231c498f96ea2a", + "datum_begin_geldigheid": null, + "datum_einde_geldigheid": null, + "uuid": "3a094e33-7a20-4018-bd60-3c15d06a1555", + "eigenschapnaam": "a property name", + "definitie": "a definition", + "specificatie_van_eigenschap": 1, + "toelichting": "", + "zaaktype": 5, + "statustype": null + } +}, { "model": "catalogi.informatieobjecttype", "pk": 1, @@ -154,7 +177,7 @@ "model": "catalogi.informatieobjecttype", "pk": 3, "fields": { - "_etag": "9b92accfbfdb5c0d2c8d040a5825abfd", + "_etag": "6185cc7af26276b5562929eea87cb2cc", "datum_begin_geldigheid": "2024-03-19", "datum_einde_geldigheid": "2024-07-10", "concept": false, @@ -302,6 +325,19 @@ "statustype": null } }, +{ + "model": "catalogi.zaaktypeinformatieobjecttype", + "pk": 4, + "fields": { + "_etag": "ca748511ae63aec4a6bad264b394af3f", + "uuid": "eb78b6f6-0721-442d-b97a-074c66b5953c", + "zaaktype": 5, + "informatieobjecttype": 3, + "volgnummer": 1, + "richting": "inkomend", + "statustype": null + } +}, { "model": "catalogi.resultaattype", "pk": 1, @@ -362,6 +398,36 @@ "zaakobjecttypen": [] } }, +{ + "model": "catalogi.resultaattype", + "pk": 4, + "fields": { + "_etag": "61528e205cb91999e1fff62165c9e620", + "datum_begin_geldigheid": null, + "datum_einde_geldigheid": null, + "uuid": "e84e6028-c52a-420b-a098-d10897395c52", + "zaaktype": 5, + "omschrijving": "Geslaagd", + "resultaattypeomschrijving": "https://selectielijst.openzaak.nl/api/v1/resultaattypeomschrijvingen/43ac0469-e0c0-4985-a6ce-8ec285d2df47", + "omschrijving_generiek": "Vastgesteld", + "selectielijstklasse": "https://selectielijst.openzaak.nl/api/v1/resultaten/afa30940-855b-4a7e-aa21-9e15a8078814", + "archiefnominatie": "vernietigen", + "archiefactietermijn": "P10Y", + "brondatum_archiefprocedure_afleidingswijze": "afgehandeld", + "brondatum_archiefprocedure_datumkenmerk": "", + "brondatum_archiefprocedure_einddatum_bekend": false, + "brondatum_archiefprocedure_objecttype": "", + "brondatum_archiefprocedure_registratie": "", + "brondatum_archiefprocedure_procestermijn": "P0D", + "toelichting": "", + "procesobjectaard": "", + "indicatie_specifiek": null, + "procestermijn": null, + "informatieobjecttypen": [], + "besluittypen": [], + "zaakobjecttypen": [] + } +}, { "model": "catalogi.roltype", "pk": 1, @@ -414,6 +480,32 @@ "zaaktype": 3 } }, +{ + "model": "catalogi.roltype", + "pk": 7, + "fields": { + "_etag": "becf13f6816136b448a03c8cc7484f80", + "datum_begin_geldigheid": null, + "datum_einde_geldigheid": null, + "uuid": "bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8", + "omschrijving": "Initiator", + "omschrijving_generiek": "initiator", + "zaaktype": 5 + } +}, +{ + "model": "catalogi.roltype", + "pk": 8, + "fields": { + "_etag": "c370045099a0d44ef4459a2596739ce0", + "datum_begin_geldigheid": null, + "datum_einde_geldigheid": null, + "uuid": "d44d68c2-1e06-461e-9657-adf174a922fb", + "omschrijving": "Baliemedewerker", + "omschrijving_generiek": "klantcontacter", + "zaaktype": 5 + } +}, { "model": "catalogi.statustype", "pk": 1, @@ -436,7 +528,7 @@ "model": "catalogi.statustype", "pk": 2, "fields": { - "_etag": "431dc899b7400782cfb86f5cc2fa0236", + "_etag": "360e002e252b85e8d064d9c28f2984a0", "datum_begin_geldigheid": null, "datum_einde_geldigheid": null, "uuid": "1de05b57-a938-47e4-b808-f129c6406b60", @@ -486,13 +578,49 @@ "toelichting": null } }, +{ + "model": "catalogi.statustype", + "pk": 7, + "fields": { + "_etag": "8a46302bb4a487f8abe164ccfbcd9052", + "datum_begin_geldigheid": null, + "datum_einde_geldigheid": null, + "uuid": "018ec0c2-50d0-4225-a5bb-5ad7c48d6f2b", + "zaaktype": 5, + "statustype_omschrijving": "Afgerond", + "statustype_omschrijving_generiek": "", + "statustypevolgnummer": 2, + "doorlooptijd": null, + "informeren": false, + "statustekst": "", + "toelichting": null + } +}, +{ + "model": "catalogi.statustype", + "pk": 8, + "fields": { + "_etag": "e34511d093b82feb1fde24f2da13d330", + "datum_begin_geldigheid": null, + "datum_einde_geldigheid": null, + "uuid": "2937ee1d-9ea1-4048-b642-5a4dfd51fb47", + "zaaktype": 5, + "statustype_omschrijving": "Ontvangen", + "statustype_omschrijving_generiek": "", + "statustypevolgnummer": 1, + "doorlooptijd": null, + "informeren": false, + "statustekst": "", + "toelichting": null + } +}, { "model": "catalogi.zaaktype", "pk": 1, "fields": { - "_etag": "4b7814375796d28f29fea94ee27127b8", + "_etag": "49244222344d1a50479929320e8702ca", "datum_begin_geldigheid": "2024-03-26", - "datum_einde_geldigheid": null, + "datum_einde_geldigheid": "2024-10-29", "concept": false, "uuid": "1f41885e-23fc-4462-bbc8-80be4ae484dc", "identificatie": "ZT-001", @@ -625,10 +753,49 @@ } }, { - "model": "config.featureflags", - "pk": 1, + "model": "catalogi.zaaktype", + "pk": 5, "fields": { - "allow_unpublished_typen": true + "_etag": "fde03886a89d769c02e66a24fb47e991", + "datum_begin_geldigheid": "2024-10-31", + "datum_einde_geldigheid": null, + "concept": false, + "uuid": "f609b6fe-449a-46dc-a0af-de55dc5f6774", + "identificatie": "ZT-001", + "zaaktype_omschrijving": "Test", + "zaaktype_omschrijving_generiek": "", + "vertrouwelijkheidaanduiding": "intern", + "doel": "testen", + "aanleiding": "integratietests", + "toelichting": "", + "indicatie_intern_of_extern": "intern", + "handeling_initiator": "Formulier indienen", + "onderwerp": "Testformulier", + "handeling_behandelaar": "Controleren", + "doorlooptijd_behandeling": "P1D", + "servicenorm_behandeling": "P0D", + "opschorting_en_aanhouding_mogelijk": false, + "verlenging_mogelijk": false, + "verlengingstermijn": null, + "trefwoorden": "[]", + "publicatie_indicatie": false, + "publicatietekst": "", + "verantwoordingsrelatie": "[]", + "versiedatum": "2024-10-31", + "verantwoordelijke": "Ontwikkelaar", + "producten_of_diensten": "[\"http://localhost/product/1234abcd-12ab-34cd-56ef-12345abcde10\"]", + "selectielijst_procestype": "https://selectielijst.openzaak.nl/api/v1/procestypen/aa8aa2fd-b9c6-4e34-9a6c-58a677f60ea0", + "selectielijst_procestype_jaar": 2020, + "referentieproces_naam": "Testen", + "referentieproces_link": "", + "broncatalogus_url": "", + "broncatalogus_domein": "", + "broncatalogus_rsin": "", + "bronzaaktype_url": "", + "bronzaaktype_identificatie": "", + "bronzaaktype_omschrijving": "", + "catalogus": 1, + "deelzaaktypen": [] } } ] diff --git a/docker/rx-mission/Dockerfile b/docker/rx-mission/Dockerfile new file mode 100644 index 0000000000..56d713f353 --- /dev/null +++ b/docker/rx-mission/Dockerfile @@ -0,0 +1,17 @@ +# Use the official Python image from the Docker Hub +FROM python:3.12-slim + +# Set the working directory +WORKDIR /app + +# Copy the current directory contents into the container at /app +COPY . /app + +# Install the dependencies +RUN pip install Flask + +# Make port 80 available to the world outside this container +EXPOSE 80 + +# Run app.py when the container launches +CMD ["python", "app.py"] diff --git a/docker/rx-mission/app.py b/docker/rx-mission/app.py new file mode 100644 index 0000000000..a86f5348cd --- /dev/null +++ b/docker/rx-mission/app.py @@ -0,0 +1,23 @@ +import json + +from flask import Flask, jsonify + +app = Flask(__name__) +products = {} + + +@app.route("/product/", methods=["GET"]) +def handle_request(product_uuid): + if product_uuid not in products: + return jsonify({"message": "Product not found"}), 404 + + product = products[product_uuid] + return jsonify(product) + + +if __name__ == "__main__": + with open("./fixtures/rx-mission-products.json", encoding="utf-8") as json_file: + parsed_json = json.load(json_file) + products = {product["id"]: product for product in parsed_json["products"]} + + app.run(host="0.0.0.0", port=80, debug=True) diff --git a/docker/rx-mission/fixtures/rx-mission-products.json b/docker/rx-mission/fixtures/rx-mission-products.json new file mode 100644 index 0000000000..541e6397b6 --- /dev/null +++ b/docker/rx-mission/fixtures/rx-mission-products.json @@ -0,0 +1,572 @@ +{ + "products": [ + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde0a", + "id": "1234abcd-12ab-34cd-56ef-12345abcde0a", + "code": "RX-0", + "description": "Informatieplicht incident", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde1a", + "id": "1234abcd-12ab-34cd-56ef-12345abcde1a", + "code": "RX-1", + "description": "Advies vergunning", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde2a", + "id": "1234abcd-12ab-34cd-56ef-12345abcde2a", + "code": "RX-2", + "description": "Verkennen en begeleiden initiatief", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde3a", + "id": "1234abcd-12ab-34cd-56ef-12345abcde3a", + "code": "RX-3", + "description": "Klacht", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde4a", + "id": "1234abcd-12ab-34cd-56ef-12345abcde4a", + "code": "RX-4", + "description": "Zienswijze", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde5a", + "id": "1234abcd-12ab-34cd-56ef-12345abcde5a", + "code": "RX-5", + "description": "Beroep", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde6a", + "id": "1234abcd-12ab-34cd-56ef-12345abcde6a", + "code": "RX-6", + "description": "Strijdigheid Besluit bouwwerken leefomgeving (BBL)", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde7a", + "id": "1234abcd-12ab-34cd-56ef-12345abcde7a", + "code": "RX-7", + "description": "Informatieplicht starten of wijzigen milieu-belastende-activiteit", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde8a", + "id": "1234abcd-12ab-34cd-56ef-12345abcde8a", + "code": "RX-8", + "description": "Periodieke controle", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde9a", + "id": "1234abcd-12ab-34cd-56ef-12345abcde9a", + "code": "RX-9", + "description": "Hercontrole", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde10", + "id": "1234abcd-12ab-34cd-56ef-12345abcde10", + "code": "RX-10", + "description": "Advies vergunning met instemming", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde11", + "id": "1234abcd-12ab-34cd-56ef-12345abcde11", + "code": "RX-11", + "description": "Evenementenmelding", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde12", + "id": "1234abcd-12ab-34cd-56ef-12345abcde12", + "code": "RX-12", + "description": "Advies", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde13", + "id": "1234abcd-12ab-34cd-56ef-12345abcde13", + "code": "RX-13", + "description": "Informatieplicht ongewone voorvallen", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde14", + "id": "1234abcd-12ab-34cd-56ef-12345abcde14", + "code": "RX-14", + "description": "Kansspelvergunning", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde15", + "id": "1234abcd-12ab-34cd-56ef-12345abcde15", + "code": "RX-15", + "description": "Intrekken dwangsom", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde16", + "id": "1234abcd-12ab-34cd-56ef-12345abcde16", + "code": "RX-16", + "description": "Vooroverleg", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde17", + "id": "1234abcd-12ab-34cd-56ef-12345abcde17", + "code": "RX-17", + "description": "Melding brandveilig gebruik", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde18", + "id": "1234abcd-12ab-34cd-56ef-12345abcde18", + "code": "RX-18", + "description": "Toepassen bestuursdwang", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde19", + "id": "1234abcd-12ab-34cd-56ef-12345abcde19", + "code": "RX-19", + "description": "Bestuursdwangcontrole", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde20", + "id": "1234abcd-12ab-34cd-56ef-12345abcde20", + "code": "RX-20", + "description": "Drank- en horecamelding", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde21", + "id": "1234abcd-12ab-34cd-56ef-12345abcde21", + "code": "RX-21", + "description": "Drank- en horecavergunning", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde22", + "id": "1234abcd-12ab-34cd-56ef-12345abcde22", + "code": "RX-22", + "description": "Klachtcontrole", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde23", + "id": "1234abcd-12ab-34cd-56ef-12345abcde23", + "code": "RX-23", + "description": "Bibob onderzoek", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde24", + "id": "1234abcd-12ab-34cd-56ef-12345abcde24", + "code": "RX-24", + "description": "Participatietraject", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde25", + "id": "1234abcd-12ab-34cd-56ef-12345abcde25", + "code": "RX-25", + "description": "WKB-50 Informatieplicht beƫindiging bouwwerkzaamheden", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde26", + "id": "1234abcd-12ab-34cd-56ef-12345abcde26", + "code": "RX-26", + "description": "Themacontrole", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde27", + "id": "1234abcd-12ab-34cd-56ef-12345abcde27", + "code": "RX-27", + "description": "Voorlopige voorziening", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde28", + "id": "1234abcd-12ab-34cd-56ef-12345abcde28", + "code": "RX-28", + "description": "Intrekken Omgevingsvergunning", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde29", + "id": "1234abcd-12ab-34cd-56ef-12345abcde29", + "code": "RX-29", + "description": "WKB-20 Informatieplicht start bouw", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde30", + "id": "1234abcd-12ab-34cd-56ef-12345abcde30", + "code": "RX-30", + "description": "Advies melding", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde31", + "id": "1234abcd-12ab-34cd-56ef-12345abcde31", + "code": "RX-31", + "description": "Bezwaarschriftprocedure", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde32", + "id": "1234abcd-12ab-34cd-56ef-12345abcde32", + "code": "RX-32", + "description": "APV-melding", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde33", + "id": "1234abcd-12ab-34cd-56ef-12345abcde33", + "code": "RX-33", + "description": "Gedoogcontrole", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde34", + "id": "1234abcd-12ab-34cd-56ef-12345abcde34", + "code": "RX-34", + "description": "Advies informatiebericht", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde35", + "id": "1234abcd-12ab-34cd-56ef-12345abcde35", + "code": "RX-35", + "description": "Revisievergunning (ambtshalve)", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde36", + "id": "1234abcd-12ab-34cd-56ef-12345abcde36", + "code": "RX-36", + "description": "Melding MBA", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde37", + "id": "1234abcd-12ab-34cd-56ef-12345abcde37", + "code": "RX-37", + "description": "Melding Omgevingswet", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde38", + "id": "1234abcd-12ab-34cd-56ef-12345abcde38", + "code": "RX-38", + "description": "Last onder dwangsom", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde39", + "id": "1234abcd-12ab-34cd-56ef-12345abcde39", + "code": "RX-39", + "description": "Sloopmelding", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde40", + "id": "1234abcd-12ab-34cd-56ef-12345abcde40", + "code": "RX-40", + "description": "Voornemen last onder bestuursdwang", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde41", + "id": "1234abcd-12ab-34cd-56ef-12345abcde41", + "code": "RX-41", + "description": "Bouwmelding Wkb (risicobeoordeling en borgingsplan)", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde42", + "id": "1234abcd-12ab-34cd-56ef-12345abcde42", + "code": "RX-42", + "description": "Dwangsomcontrole", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde43", + "id": "1234abcd-12ab-34cd-56ef-12345abcde43", + "code": "RX-43", + "description": "Gedogen", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde44", + "id": "1234abcd-12ab-34cd-56ef-12345abcde44", + "code": "RX-44", + "description": "Last onder bestuursdwang", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde45", + "id": "1234abcd-12ab-34cd-56ef-12345abcde45", + "code": "RX-45", + "description": "APV-ontheffing", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde46", + "id": "1234abcd-12ab-34cd-56ef-12345abcde46", + "code": "RX-46", + "description": "Gereed melding Wkb (dossier bevoegd gezag)", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde47", + "id": "1234abcd-12ab-34cd-56ef-12345abcde47", + "code": "RX-47", + "description": "Wijzigen Omgevingsvergunning (ambtshalve)", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde48", + "id": "1234abcd-12ab-34cd-56ef-12345abcde48", + "code": "RX-48", + "description": "Kansspelmelding", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde49", + "id": "1234abcd-12ab-34cd-56ef-12345abcde49", + "code": "RX-49", + "description": "Hoger beroep", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde50", + "id": "1234abcd-12ab-34cd-56ef-12345abcde50", + "code": "RX-50", + "description": "Drank- en horecaontheffing", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde51", + "id": "1234abcd-12ab-34cd-56ef-12345abcde51", + "code": "RX-51", + "description": "Nagekomen stukken", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde52", + "id": "1234abcd-12ab-34cd-56ef-12345abcde52", + "code": "RX-52", + "description": "Voorval", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde53", + "id": "1234abcd-12ab-34cd-56ef-12345abcde53", + "code": "RX-53", + "description": "Bestuurlijke strafbeschikking", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde54", + "id": "1234abcd-12ab-34cd-56ef-12345abcde54", + "code": "RX-54", + "description": "Actualisatieonderzoek", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde55", + "id": "1234abcd-12ab-34cd-56ef-12345abcde55", + "code": "RX-55", + "description": "Ad hoc controle", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde56", + "id": "1234abcd-12ab-34cd-56ef-12345abcde56", + "code": "RX-56", + "description": "Innen dwangsom", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde57", + "id": "1234abcd-12ab-34cd-56ef-12345abcde57", + "code": "RX-57", + "description": "Beoordelen document informatieplicht", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde58", + "id": "1234abcd-12ab-34cd-56ef-12345abcde58", + "code": "RX-58", + "description": "Evenementenvergunning", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde59", + "id": "1234abcd-12ab-34cd-56ef-12345abcde59", + "code": "RX-59", + "description": "Melding bodemsanering", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde60", + "id": "1234abcd-12ab-34cd-56ef-12345abcde60", + "code": "RX-60", + "description": "Omgevingsvergunning", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde61", + "id": "1234abcd-12ab-34cd-56ef-12345abcde61", + "code": "RX-61", + "description": "Nadeelcompensatieverzoek", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde62", + "id": "1234abcd-12ab-34cd-56ef-12345abcde62", + "code": "RX-62", + "description": "Doorgeven strafrechtpartner", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde63", + "id": "1234abcd-12ab-34cd-56ef-12345abcde63", + "code": "RX-63", + "description": "Bestuurlijke boete", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde64", + "id": "1234abcd-12ab-34cd-56ef-12345abcde64", + "code": "RX-64", + "description": "WKB-30-Informatieplicht afwijking bouwbesluit/Wkb", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde65", + "id": "1234abcd-12ab-34cd-56ef-12345abcde65", + "code": "RX-65", + "description": "Voornemen last onder dwangsom", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde66", + "id": "1234abcd-12ab-34cd-56ef-12345abcde66", + "code": "RX-66", + "description": "APV-vergunning", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde67", + "id": "1234abcd-12ab-34cd-56ef-12345abcde67", + "code": "RX-67", + "description": "Melding toepassing bouwstoffen", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde68", + "id": "1234abcd-12ab-34cd-56ef-12345abcde68", + "code": "RX-68", + "description": "Opleveringscontrole", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde69", + "id": "1234abcd-12ab-34cd-56ef-12345abcde69", + "code": "RX-69", + "description": "Intrekken Omgevingsvergunning (ambtshalve)", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + }, + { + "url": "https://example.com/product/1234abcd-12ab-34cd-56ef-12345abcde70", + "id": "1234abcd-12ab-34cd-56ef-12345abcde70", + "code": "RX-70", + "description": "Handhavingsverzoek", + "streeftermijn": "P0D", + "uiterlijkeTermijn": "P0D" + } + ] +} diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/files/vcr_cassettes/GetProductsListViewTests/GetProductsListViewTests.test_fetch_products_by_case_type.yaml b/src/openforms/registrations/contrib/zgw_apis/tests/files/vcr_cassettes/GetProductsListViewTests/GetProductsListViewTests.test_fetch_products_by_case_type.yaml new file mode 100644 index 0000000000..8dd1f3aafc --- /dev/null +++ b/src/openforms/registrations/contrib/zgw_apis/tests/files/vcr_cassettes/GetProductsListViewTests/GetProductsListViewTests.test_fetch_products_by_case_type.yaml @@ -0,0 +1,83 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Authorization: + - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0X2NsaWVudF9pZCIsImlhdCI6MTczMDM5MDQwMCwiY2xpZW50X2lkIjoidGVzdF9jbGllbnRfaWQiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.oODonAK5RayuHVCDxPTAPXPPceRsFjhdHh0piNtOJbk + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.2 + method: GET + uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=VRSN + response: + body: + string: '{"count":0,"next":null,"previous":null,"results":[]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '52' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Authorization: + - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0X2NsaWVudF9pZCIsImlhdCI6MTczMDM5MDQwMCwiY2xpZW50X2lkIjoidGVzdF9jbGllbnRfaWQiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.oODonAK5RayuHVCDxPTAPXPPceRsFjhdHh0piNtOJbk + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.2 + method: GET + uri: http://localhost:8003/catalogi/api/v1/zaaktypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2Fbd58635c-793e-446d-a7e0-460d7b04829d&identificatie=ZT-001&datumGeldigheid=2024-10-31 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","identificatie":"ZT-001","omschrijving":"Test","omschrijvingGeneriek":"","vertrouwelijkheidaanduiding":"intern","doel":"testen","aanleiding":"integratietests","toelichting":"","indicatieInternOfExtern":"intern","handelingInitiator":"Formulier + indienen","onderwerp":"Testformulier","handelingBehandelaar":"Controleren","doorlooptijd":"P1D","servicenorm":null,"opschortingEnAanhoudingMogelijk":false,"verlengingMogelijk":false,"verlengingstermijn":null,"trefwoorden":[],"publicatieIndicatie":false,"publicatietekst":"","verantwoordingsrelatie":[],"productenOfDiensten":["http://localhost/product/1234abcd-12ab-34cd-56ef-12345abcde10"],"selectielijstProcestype":"https://selectielijst.openzaak.nl/api/v1/procestypen/aa8aa2fd-b9c6-4e34-9a6c-58a677f60ea0","referentieproces":{"naam":"Testen","link":""},"concept":false,"verantwoordelijke":"Ontwikkelaar","beginGeldigheid":"2024-10-31","eindeGeldigheid":null,"versiedatum":"2024-10-31","beginObject":"2023-01-01","eindeObject":null,"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","statustypen":["http://localhost:8003/catalogi/api/v1/statustypen/018ec0c2-50d0-4225-a5bb-5ad7c48d6f2b","http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47"],"resultaattypen":["http://localhost:8003/catalogi/api/v1/resultaattypen/e84e6028-c52a-420b-a098-d10897395c52"],"eigenschappen":["http://localhost:8003/catalogi/api/v1/eigenschappen/3a094e33-7a20-4018-bd60-3c15d06a1555"],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7"],"roltypen":["http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","http://localhost:8003/catalogi/api/v1/roltypen/d44d68c2-1e06-461e-9657-adf174a922fb"],"besluittypen":[],"deelzaaktypen":[],"gerelateerdeZaaktypen":[],"zaakobjecttypen":[]}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '2033' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +version: 1 diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/files/vcr_cassettes/GetProductsListViewTests/GetProductsListViewTests.test_find_case_types_deduplicates_versions.yaml b/src/openforms/registrations/contrib/zgw_apis/tests/files/vcr_cassettes/GetProductsListViewTests/GetProductsListViewTests.test_find_case_types_deduplicates_versions.yaml new file mode 100644 index 0000000000..8dd1f3aafc --- /dev/null +++ b/src/openforms/registrations/contrib/zgw_apis/tests/files/vcr_cassettes/GetProductsListViewTests/GetProductsListViewTests.test_find_case_types_deduplicates_versions.yaml @@ -0,0 +1,83 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Authorization: + - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0X2NsaWVudF9pZCIsImlhdCI6MTczMDM5MDQwMCwiY2xpZW50X2lkIjoidGVzdF9jbGllbnRfaWQiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.oODonAK5RayuHVCDxPTAPXPPceRsFjhdHh0piNtOJbk + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.2 + method: GET + uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=VRSN + response: + body: + string: '{"count":0,"next":null,"previous":null,"results":[]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '52' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Authorization: + - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0X2NsaWVudF9pZCIsImlhdCI6MTczMDM5MDQwMCwiY2xpZW50X2lkIjoidGVzdF9jbGllbnRfaWQiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.oODonAK5RayuHVCDxPTAPXPPceRsFjhdHh0piNtOJbk + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.2 + method: GET + uri: http://localhost:8003/catalogi/api/v1/zaaktypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2Fbd58635c-793e-446d-a7e0-460d7b04829d&identificatie=ZT-001&datumGeldigheid=2024-10-31 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","identificatie":"ZT-001","omschrijving":"Test","omschrijvingGeneriek":"","vertrouwelijkheidaanduiding":"intern","doel":"testen","aanleiding":"integratietests","toelichting":"","indicatieInternOfExtern":"intern","handelingInitiator":"Formulier + indienen","onderwerp":"Testformulier","handelingBehandelaar":"Controleren","doorlooptijd":"P1D","servicenorm":null,"opschortingEnAanhoudingMogelijk":false,"verlengingMogelijk":false,"verlengingstermijn":null,"trefwoorden":[],"publicatieIndicatie":false,"publicatietekst":"","verantwoordingsrelatie":[],"productenOfDiensten":["http://localhost/product/1234abcd-12ab-34cd-56ef-12345abcde10"],"selectielijstProcestype":"https://selectielijst.openzaak.nl/api/v1/procestypen/aa8aa2fd-b9c6-4e34-9a6c-58a677f60ea0","referentieproces":{"naam":"Testen","link":""},"concept":false,"verantwoordelijke":"Ontwikkelaar","beginGeldigheid":"2024-10-31","eindeGeldigheid":null,"versiedatum":"2024-10-31","beginObject":"2023-01-01","eindeObject":null,"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","statustypen":["http://localhost:8003/catalogi/api/v1/statustypen/018ec0c2-50d0-4225-a5bb-5ad7c48d6f2b","http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47"],"resultaattypen":["http://localhost:8003/catalogi/api/v1/resultaattypen/e84e6028-c52a-420b-a098-d10897395c52"],"eigenschappen":["http://localhost:8003/catalogi/api/v1/eigenschappen/3a094e33-7a20-4018-bd60-3c15d06a1555"],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7"],"roltypen":["http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","http://localhost:8003/catalogi/api/v1/roltypen/d44d68c2-1e06-461e-9657-adf174a922fb"],"besluittypen":[],"deelzaaktypen":[],"gerelateerdeZaaktypen":[],"zaakobjecttypen":[]}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '2033' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +version: 1 diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/files/vcr_cassettes/ZGWBackendVCRTests/ZGWBackendVCRTests.test_create_zaak_with_case_identification_reference_and_product.yaml b/src/openforms/registrations/contrib/zgw_apis/tests/files/vcr_cassettes/ZGWBackendVCRTests/ZGWBackendVCRTests.test_create_zaak_with_case_identification_reference_and_product.yaml new file mode 100644 index 0000000000..e10a3d86da --- /dev/null +++ b/src/openforms/registrations/contrib/zgw_apis/tests/files/vcr_cassettes/ZGWBackendVCRTests/ZGWBackendVCRTests.test_create_zaak_with_case_identification_reference_and_product.yaml @@ -0,0 +1,194 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Authorization: + - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0X2NsaWVudF9pZCIsImlhdCI6MTczMjEwODAwNiwiY2xpZW50X2lkIjoidGVzdF9jbGllbnRfaWQiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.pZHlIr4P8BT4Tr3lHk3Ci61It5N4ladXIDKTlyoVfU4 + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.2 + method: GET + uri: http://localhost:8003/catalogi/api/v1/catalogussen?domein=TEST&rsin=000000000 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","domein":"TEST","rsin":"000000000","contactpersoonBeheerNaam":"Test + name","contactpersoonBeheerTelefoonnummer":"","contactpersoonBeheerEmailadres":"","zaaktypen":["http://localhost:8003/catalogi/api/v1/zaaktypen/1f41885e-23fc-4462-bbc8-80be4ae484dc","http://localhost:8003/catalogi/api/v1/zaaktypen/b79d9c2f-5ec4-4e23-bb66-ec6dd959a400","http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774"],"besluittypen":[],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/7a474713-0833-402a-8441-e467c08ac55b","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/b2d83b94-9b9b-4e80-a82f-73ff993c62f3","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","http://localhost:8003/catalogi/api/v1/informatieobjecttypen/29b63e5c-3835-4f68-8fad-f2aea9ae6b71"],"naam":"Test + catalog","versie":"","begindatumVersie":null}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '1072' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate, br + Authorization: + - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0X2NsaWVudF9pZCIsImlhdCI6MTczMjEwODAwNiwiY2xpZW50X2lkIjoidGVzdF9jbGllbnRfaWQiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.pZHlIr4P8BT4Tr3lHk3Ci61It5N4ladXIDKTlyoVfU4 + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.2 + method: GET + uri: http://localhost:8003/catalogi/api/v1/zaaktypen?catalogus=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fcatalogussen%2Fbd58635c-793e-446d-a7e0-460d7b04829d&identificatie=ZT-001&datumGeldigheid=2024-11-01 + response: + body: + string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","identificatie":"ZT-001","omschrijving":"Test","omschrijvingGeneriek":"","vertrouwelijkheidaanduiding":"intern","doel":"testen","aanleiding":"integratietests","toelichting":"","indicatieInternOfExtern":"intern","handelingInitiator":"Formulier + indienen","onderwerp":"Testformulier","handelingBehandelaar":"Controleren","doorlooptijd":"P1D","servicenorm":null,"opschortingEnAanhoudingMogelijk":false,"verlengingMogelijk":false,"verlengingstermijn":null,"trefwoorden":[],"publicatieIndicatie":false,"publicatietekst":"","verantwoordingsrelatie":[],"productenOfDiensten":["http://localhost/product/1234abcd-12ab-34cd-56ef-12345abcde10"],"selectielijstProcestype":"https://selectielijst.openzaak.nl/api/v1/procestypen/aa8aa2fd-b9c6-4e34-9a6c-58a677f60ea0","referentieproces":{"naam":"Testen","link":""},"concept":false,"verantwoordelijke":"Ontwikkelaar","beginGeldigheid":"2024-10-31","eindeGeldigheid":null,"versiedatum":"2024-10-31","beginObject":"2023-01-01","eindeObject":null,"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d","statustypen":["http://localhost:8003/catalogi/api/v1/statustypen/018ec0c2-50d0-4225-a5bb-5ad7c48d6f2b","http://localhost:8003/catalogi/api/v1/statustypen/2937ee1d-9ea1-4048-b642-5a4dfd51fb47"],"resultaattypen":["http://localhost:8003/catalogi/api/v1/resultaattypen/e84e6028-c52a-420b-a098-d10897395c52"],"eigenschappen":["http://localhost:8003/catalogi/api/v1/eigenschappen/3a094e33-7a20-4018-bd60-3c15d06a1555"],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7"],"roltypen":["http://localhost:8003/catalogi/api/v1/roltypen/bd37e337-e0fd-4e11-a6ed-45a71e1c7aa8","http://localhost:8003/catalogi/api/v1/roltypen/d44d68c2-1e06-461e-9657-adf174a922fb"],"besluittypen":[],"deelzaaktypen":[],"gerelateerdeZaaktypen":[],"zaakobjecttypen":[]}]}' + headers: + API-version: + - 1.3.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Length: + - '2033' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Referrer-Policy: + - same-origin + Vary: + - Accept, origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +- request: + body: '{"zaaktype": "http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774", + "bronorganisatie": "000000000", "verantwoordelijkeOrganisatie": "000000000", + "registratiedatum": "2024-11-20", "startdatum": "2024-11-20", "productenOfDiensten": + ["http://localhost/product/1234abcd-12ab-34cd-56ef-12345abcde10"], "omschrijving": + "Form 000", "toelichting": "Aangemaakt door Open Formulieren", "betalingsindicatie": + "nvt"}' + headers: + Accept: + - '*/*' + Accept-Crs: + - EPSG:4326 + Accept-Encoding: + - gzip, deflate, br + Authorization: + - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0X2NsaWVudF9pZCIsImlhdCI6MTczMjEwODAwNiwiY2xpZW50X2lkIjoidGVzdF9jbGllbnRfaWQiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.pZHlIr4P8BT4Tr3lHk3Ci61It5N4ladXIDKTlyoVfU4 + Connection: + - keep-alive + Content-Crs: + - EPSG:4326 + Content-Length: + - '437' + Content-Type: + - application/json + User-Agent: + - python-requests/2.32.2 + method: POST + uri: http://localhost:8003/zaken/api/v1/zaken + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/zaken/067ef050-d895-406c-b3f5-59863892908c","uuid":"067ef050-d895-406c-b3f5-59863892908c","identificatie":"ZAAK-2024-0000000014","bronorganisatie":"000000000","omschrijving":"Form + 000","toelichting":"Aangemaakt door Open Formulieren","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","registratiedatum":"2024-11-20","verantwoordelijkeOrganisatie":"000000000","startdatum":"2024-11-20","einddatum":null,"einddatumGepland":null,"uiterlijkeEinddatumAfdoening":null,"publicatiedatum":null,"communicatiekanaal":"","communicatiekanaalNaam":"","productenOfDiensten":["http://localhost/product/1234abcd-12ab-34cd-56ef-12345abcde10"],"vertrouwelijkheidaanduiding":"intern","betalingsindicatie":"nvt","betalingsindicatieWeergave":"Er + is geen sprake van te betalen, met de zaak gemoeide, kosten.","laatsteBetaaldatum":null,"zaakgeometrie":null,"verlenging":null,"opschorting":{"indicatie":false,"reden":""},"selectielijstklasse":"","hoofdzaak":null,"deelzaken":[],"relevanteAndereZaken":[],"eigenschappen":[],"rollen":[],"status":null,"zaakinformatieobjecten":[],"zaakobjecten":[],"kenmerken":[],"archiefnominatie":null,"archiefstatus":"nog_te_archiveren","archiefactiedatum":null,"resultaat":null,"opdrachtgevendeOrganisatie":"","processobjectaard":"","startdatumBewaartermijn":null,"processobject":{"datumkenmerk":"","identificatie":"","objecttype":"","registratie":""}}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, POST, HEAD, OPTIONS + Content-Crs: + - EPSG:4326 + Content-Length: + - '1452' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + Location: + - http://localhost:8003/zaken/api/v1/zaken/067ef050-d895-406c-b3f5-59863892908c + Referrer-Policy: + - same-origin + Vary: + - origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Crs: + - EPSG:4326 + Accept-Encoding: + - gzip, deflate, br + Authorization: + - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0X2NsaWVudF9pZCIsImlhdCI6MTczMjEwODAwNiwiY2xpZW50X2lkIjoidGVzdF9jbGllbnRfaWQiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.pZHlIr4P8BT4Tr3lHk3Ci61It5N4ladXIDKTlyoVfU4 + Connection: + - keep-alive + Content-Crs: + - EPSG:4326 + User-Agent: + - python-requests/2.32.2 + method: GET + uri: http://localhost:8003/zaken/api/v1/zaken/067ef050-d895-406c-b3f5-59863892908c + response: + body: + string: '{"url":"http://localhost:8003/zaken/api/v1/zaken/067ef050-d895-406c-b3f5-59863892908c","uuid":"067ef050-d895-406c-b3f5-59863892908c","identificatie":"ZAAK-2024-0000000014","bronorganisatie":"000000000","omschrijving":"Form + 000","toelichting":"Aangemaakt door Open Formulieren","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774","registratiedatum":"2024-11-20","verantwoordelijkeOrganisatie":"000000000","startdatum":"2024-11-20","einddatum":null,"einddatumGepland":null,"uiterlijkeEinddatumAfdoening":null,"publicatiedatum":null,"communicatiekanaal":"","communicatiekanaalNaam":"","productenOfDiensten":["http://localhost/product/1234abcd-12ab-34cd-56ef-12345abcde10"],"vertrouwelijkheidaanduiding":"intern","betalingsindicatie":"nvt","betalingsindicatieWeergave":"Er + is geen sprake van te betalen, met de zaak gemoeide, kosten.","laatsteBetaaldatum":null,"zaakgeometrie":null,"verlenging":null,"opschorting":{"indicatie":false,"reden":""},"selectielijstklasse":"","hoofdzaak":null,"deelzaken":[],"relevanteAndereZaken":[],"eigenschappen":[],"rollen":[],"status":null,"zaakinformatieobjecten":[],"zaakobjecten":[],"kenmerken":[],"archiefnominatie":null,"archiefstatus":"nog_te_archiveren","archiefactiedatum":null,"resultaat":null,"opdrachtgevendeOrganisatie":"","processobjectaard":"","startdatumBewaartermijn":null,"processobject":{"datumkenmerk":"","identificatie":"","objecttype":"","registratie":""}}' + headers: + API-version: + - 1.5.1 + Allow: + - GET, PUT, PATCH, DELETE, HEAD, OPTIONS + Content-Crs: + - EPSG:4326 + Content-Length: + - '1452' + Content-Type: + - application/json + Cross-Origin-Opener-Policy: + - same-origin + ETag: + - '"caad4f655235604cf6a6e8a2f29ed5c1"' + Referrer-Policy: + - same-origin + Vary: + - origin + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + status: + code: 200 + message: OK +version: 1 diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/test_api_endpoints.py b/src/openforms/registrations/contrib/zgw_apis/tests/test_api_endpoints.py index 9e41f90cbe..59609ffd70 100644 --- a/src/openforms/registrations/contrib/zgw_apis/tests/test_api_endpoints.py +++ b/src/openforms/registrations/contrib/zgw_apis/tests/test_api_endpoints.py @@ -1,5 +1,6 @@ from pathlib import Path +from freezegun import freeze_time from rest_framework import status from rest_framework.reverse import reverse_lazy from rest_framework.test import APITestCase @@ -265,3 +266,83 @@ def test_retrieve_filter_by_catalogus(self): data = response.json() self.assertEqual(len(data), 3) + + +class GetProductsListViewTests(OFVCRMixin, APITestCase): + VCR_TEST_FILES = TEST_FILES + endpoint = reverse_lazy("api:zgw_apis:product-list") + + @classmethod + def setUpTestData(cls): + super().setUpTestData() + + cls.zgw_api_group = ZGWApiGroupConfigFactory.create( + for_test_docker_compose=True + ) + + def test_must_be_logged_in_as_admin(self): + user = UserFactory.create() + self.client.force_login(user) + + response = self.client.get(self.endpoint) + + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) + + def test_invalid_filters(self): + user = StaffUserFactory.create() + self.client.force_login(user) + + response = self.client.get( + self.endpoint, + { + "zgw_api_group": "INVALID", + "catalogue_url": "not-a-url", + "case_type_identification": "INVALID", + }, + ) + + self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) + + def test_missing_filters(self): + user = StaffUserFactory.create() + self.client.force_login(user) + + response = self.client.get(self.endpoint) + + self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) + invalid_param_names = { + item["name"] for item in response.json()["invalidParams"] + } + self.assertEqual( + invalid_param_names, + {"zgwApiGroup", "catalogueUrl", "caseTypeIdentification"}, + ) + + @freeze_time("2024-10-31T18:00:00+02:00") + def test_fetch_products_by_case_type(self): + user = StaffUserFactory.create() + self.client.force_login(user) + + response = self.client.get( + self.endpoint, + { + "zgw_api_group": self.zgw_api_group.pk, + "catalogue_url": ( + "http://localhost:8003/catalogi/api/v1/" + "catalogussen/bd58635c-793e-446d-a7e0-460d7b04829d" + ), + "case_type_identification": "ZT-001", + }, + ) + + self.assertEqual(response.status_code, status.HTTP_200_OK) + results = response.json() + self.assertEqual(len(results), 1) + + expected_products = [ + { + "url": "http://localhost/product/1234abcd-12ab-34cd-56ef-12345abcde10", + "description": "", + } + ] + self.assertEqual(results, expected_products) diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/test_backend.py b/src/openforms/registrations/contrib/zgw_apis/tests/test_backend.py index 1ef36e6d5b..00979657d3 100644 --- a/src/openforms/registrations/contrib/zgw_apis/tests/test_backend.py +++ b/src/openforms/registrations/contrib/zgw_apis/tests/test_backend.py @@ -248,6 +248,7 @@ def test_submission_with_zgw_backend_with_natuurlijk_persoon_initiator(self, m): "zaak_vertrouwelijkheidaanduiding": "openbaar", "doc_vertrouwelijkheidaanduiding": "openbaar", "objects_api_group": None, + "product_url": "", } self.install_mocks(m) @@ -471,6 +472,7 @@ def test_submission_with_zgw_backend_with_vestiging_and_kvk_initiator(self, m): "zaak_vertrouwelijkheidaanduiding": "openbaar", "doc_vertrouwelijkheidaanduiding": "openbaar", "objects_api_group": None, + "product_url": "", } self.install_mocks(m) @@ -680,6 +682,7 @@ def test_submission_with_zgw_backend_with_kvk_only_initiator(self, m): "zaak_vertrouwelijkheidaanduiding": "openbaar", "doc_vertrouwelijkheidaanduiding": "openbaar", "objects_api_group": None, + "product_url": "", } self.install_mocks(m) @@ -759,6 +762,7 @@ def test_submission_with_zgw_backend_with_vestiging_initiator_kvk_only(self, m): "zaak_vertrouwelijkheidaanduiding": "openbaar", "doc_vertrouwelijkheidaanduiding": "openbaar", "objects_api_group": None, + "product_url": "", } self.install_mocks(m) @@ -969,6 +973,7 @@ def test_submission_with_registrator(self, m): "doc_vertrouwelijkheidaanduiding": "openbaar", "medewerker_roltype": "Some description", "objects_api_group": None, + "product_url": "", } self.install_mocks(m) m.get( @@ -1042,6 +1047,7 @@ def test_submission_with_product(self, m): "zaaktype": "https://catalogi.nl/api/v1/zaaktypen/1", "informatieobjecttype": "https://catalogi.nl/api/v1/informatieobjecttypen/1", "product_url": "https://example.com", + "objects_api_group": None, } self.install_mocks(m) @@ -1093,6 +1099,7 @@ def test_submission_roltype_initiator_not_found(self, m): "zaak_vertrouwelijkheidaanduiding": "openbaar", "doc_vertrouwelijkheidaanduiding": "openbaar", "objects_api_group": None, + "product_url": "", } self.install_mocks(m) roltypen_url = furl("https://catalogus.nl/api/v1/roltypen").set( @@ -1167,6 +1174,7 @@ def test_register_and_update_paid_product(self, m): "zaak_vertrouwelijkheidaanduiding": "openbaar", "doc_vertrouwelijkheidaanduiding": "openbaar", "objects_api_group": None, + "product_url": "", } self.install_mocks(m) m.patch( @@ -1252,6 +1260,7 @@ def test_submission_with_zgw_backend_override_fields(self, m): "organisatie_rsin": "000000000", "zaak_vertrouwelijkheidaanduiding": "openbaar", "objects_api_group": None, + "product_url": "", } SubmissionFileAttachmentFactory.create( submission_step=SubmissionStep.objects.first(), @@ -1360,6 +1369,7 @@ def test_zgw_backend_default_author(self, m): "zaaktype": "https://catalogi.nl/api/v1/zaaktypen/1", "informatieobjecttype": "https://catalogi.nl/api/v1/informatieobjecttypen/1", "objects_api_group": None, + "product_url": "", } self.install_mocks(m) @@ -1433,6 +1443,7 @@ def test_zgw_backend_document_ontvangstdatum(self, m): "zaaktype": "https://catalogi.nl/api/v1/zaaktypen/1", "informatieobjecttype": "https://catalogi.nl/api/v1/informatieobjecttypen/1", "objects_api_group": None, + "product_url": "", } self.install_mocks(m) @@ -1487,6 +1498,7 @@ def test_zgw_backend_defaults_empty_string(self, m): "informatieobjecttype": "https://catalogi.nl/api/v1/informatieobjecttypen/1", "auteur": "", "objects_api_group": None, + "product_url": "", } self.install_mocks(m) @@ -1522,6 +1534,7 @@ def test_zgw_backend_unspecified_zaakvertrouwelijkheidaanduiding(self, m): "auteur": "", "zaak_vertrouwelijkheidaanduiding": "", # type: ignore "objects_api_group": None, + "product_url": "", } self.install_mocks(m) plugin = ZGWRegistration("zgw") @@ -1582,6 +1595,7 @@ def test_document_size_argument_present(self, m): "organisatie_rsin": "000000000", "zaak_vertrouwelijkheidaanduiding": "openbaar", "objects_api_group": None, + "product_url": "", } SubmissionFileAttachmentFactory.create( submission_step=SubmissionStep.objects.first(), @@ -1796,6 +1810,7 @@ def get_create_json_for_zaakobject(req, ctx): "objects_api_group": objects_api_group, "objecttype": "https://objecttypen.nl/api/v1/objecttypes/2", "objecttype_version": 1, + "product_url": "", } self.install_mocks(m) @@ -1910,6 +1925,7 @@ def test_submission_with_multiple_eigenschappen_creation(self, m): {"component_key": "textField2", "eigenschap": "second property"}, ], "objects_api_group": None, + "product_url": "", } self.install_mocks(m) @@ -2116,6 +2132,7 @@ def test_submission_with_nested_component_columns_and_eigenschap(self, m): {"component_key": "textField3.blah", "eigenschap": "third property"}, ], "objects_api_group": None, + "product_url": "", } self.install_mocks(m) @@ -2339,6 +2356,7 @@ def test_zgw_backend_zaak_omschrijving(self, m): "auteur": "", "zaak_vertrouwelijkheidaanduiding": "", # type: ignore "objects_api_group": None, + "product_url": "", } self.install_mocks(m) plugin = ZGWRegistration("zgw") @@ -2365,6 +2383,7 @@ def test_zgw_backend_zaak_omschrijving(self, m): "auteur": "", "zaak_vertrouwelijkheidaanduiding": "", # type: ignore "objects_api_group": None, + "product_url": "", } self.install_mocks(m) plugin = ZGWRegistration("zgw") @@ -2424,6 +2443,7 @@ def test_create_zaak_with_case_identification_reference(self): "http://localhost:8003/catalogi/api/v1/" "informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7" ), + "product_url": "", "medewerker_roltype": "Baliemedewerker", "property_mappings": [ { @@ -2487,6 +2507,56 @@ def test_create_zaak_with_case_identification_reference(self): "7f1887e8-bf22-47e7-ae52-ed6848d7e70e", ) + def test_create_zaak_with_case_identification_reference_and_product(self): + submission = SubmissionFactory.from_components( + [ + { + "type": "textfield", + "key": "someText", + "label": "Some text", + } + ], + submitted_data={ + "someText": "Foo", + }, + bsn="123456782", + completed=True, + # Pin to a known case type version + completed_on=datetime(2024, 11, 1, 15, 30, 0).replace(tzinfo=timezone.utc), + ) + options: RegistrationOptions = { + "zgw_api_group": self.zgw_group, + "catalogue": { + "domain": "TEST", + "rsin": "000000000", + }, + "case_type_identification": "ZT-001", + "zaaktype": "", + "informatieobjecttype": ( + "http://localhost:8003/catalogi/api/v1/" + "informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7" + ), + "product_url": "http://localhost/product/1234abcd-12ab-34cd-56ef-12345abcde10", + "objects_api_group": None, + } + plugin = ZGWRegistration("zgw") + + result = plugin.pre_register_submission(submission, options) + + assert result.data is not None + zaak_url = result.data["zaak"]["url"] + with get_zaken_client(self.zgw_group) as client: + zaak_data = client.get(zaak_url, headers=CRS_HEADERS).json() + + self.assertEqual( + zaak_data["zaaktype"], + "http://localhost:8003/catalogi/api/v1/zaaktypen/f609b6fe-449a-46dc-a0af-de55dc5f6774", + ) + self.assertEqual( + zaak_data["productenOfDiensten"], + ["http://localhost/product/1234abcd-12ab-34cd-56ef-12345abcde10"], + ) + @enable_feature_flag("ZGW_APIS_INCLUDE_DRAFTS") def test_allow_registration_with_unpublished_case_types(self): zgw_group = ZGWApiGroupConfigFactory.create( @@ -2519,6 +2589,7 @@ def test_allow_registration_with_unpublished_case_types(self): "http://localhost:8003/catalogi/api/v1/" "informatieobjecttypen/3628d25f-f491-4375-a752-39d16bf2dd59" ), + "product_url": "", "objects_api_group": None, } plugin = ZGWRegistration("zgw") diff --git a/src/openforms/registrations/contrib/zgw_apis/tests/test_zgw_api_config.py b/src/openforms/registrations/contrib/zgw_apis/tests/test_zgw_api_config.py index 38f67cd9ca..8d51036c55 100644 --- a/src/openforms/registrations/contrib/zgw_apis/tests/test_zgw_api_config.py +++ b/src/openforms/registrations/contrib/zgw_apis/tests/test_zgw_api_config.py @@ -325,6 +325,7 @@ def test_the_right_api_is_used(self, m): "zaaktype": "https://catalogi-2.nl/api/v1/zaaktypen/1", "informatieobjecttype": "https://catalogi-2.nl/api/v1/informatieobjecttypen/1", "objects_api_group": None, + "product_url": "", } self.install_mocks(m) @@ -364,6 +365,7 @@ def test_per_form_overwrites(self, m): "zaak_vertrouwelijkheidaanduiding": VertrouwelijkheidsAanduidingen.confidentieel, # type: ignore "doc_vertrouwelijkheidaanduiding": VertrouwelijkheidsAanduidingen.geheim, # type: ignore "objects_api_group": None, + "product_url": "", } self.install_mocks(m) @@ -455,6 +457,7 @@ def test_uses_field_overwrites_for_documents(self, m): "zaak_vertrouwelijkheidaanduiding": VertrouwelijkheidsAanduidingen.confidentieel, # type: ignore "doc_vertrouwelijkheidaanduiding": VertrouwelijkheidsAanduidingen.geheim, # type: ignore "objects_api_group": None, + "product_url": "", } self.install_mocks(m) diff --git a/src/openforms/submissions/tests/test_on_completion_retry_chain.py b/src/openforms/submissions/tests/test_on_completion_retry_chain.py index 73f1953014..e8c4964e49 100644 --- a/src/openforms/submissions/tests/test_on_completion_retry_chain.py +++ b/src/openforms/submissions/tests/test_on_completion_retry_chain.py @@ -248,6 +248,7 @@ def test_backend_registration_succeeds(self, mock_update_payment): "zaaktype": "https://catalogi.nl/api/v1/zaaktypen/1", "informatieobjecttype": "https://catalogi.nl/api/v1/informatieobjecttypen/1", "objects_api_group": None, + "product_url": "http://example.com", }, # registration failed, so an internal reference was created public_registration_reference="OF-1234", @@ -283,6 +284,7 @@ def test_backend_registration_succeeds(self, mock_update_payment): "zaaktype": "https://catalogi.nl/api/v1/zaaktypen/1", "informatieobjecttype": "https://catalogi.nl/api/v1/informatieobjecttypen/1", "objects_api_group": None, + "product_url": "http://example.com", }, ) self.assertNotEqual(submission.last_register_date, original_register_date)