From 8930b009c5849abf2a552c94bd370260db828da9 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Wed, 8 Nov 2023 15:38:20 +0100 Subject: [PATCH] OZG-4461 rollout smocker --- .../src/fixtures/argocd/by-ea-dev.yaml | 48 ++++++++++++++++++- .../src/fixtures/argocd/by-main-dev.yaml | 46 +++++++++++++++++- 2 files changed, 91 insertions(+), 3 deletions(-) diff --git a/goofy-client/apps/goofy-e2e/src/fixtures/argocd/by-ea-dev.yaml b/goofy-client/apps/goofy-e2e/src/fixtures/argocd/by-ea-dev.yaml index 0a7bac13ba..3596a5fbf6 100644 --- a/goofy-client/apps/goofy-e2e/src/fixtures/argocd/by-ea-dev.yaml +++ b/goofy-client/apps/goofy-e2e/src/fixtures/argocd/by-ea-dev.yaml @@ -28,7 +28,23 @@ pluto: enabled: true password: "Test3456!" replicaCount: 1 - + ozgcloud: + processors: + - address: http://smocker:8080/externe-processor-success + name: always-success + forms: + - formId: Erstattung_ERFOLG + formEngineName: FormSolutions + - formId: Erstattung_ERFOLG + formEngineName: AFM + - address: http://smocker:8080/externe-processor-failure + name: always-failure + forms: + - formId: Erstattung_FAIL + formEngineName: FormSolutions + - formId: Erstattung_FAIL + formEngineName: AFM + user_manager: kop: keycloak: @@ -53,4 +69,32 @@ user_manager: ingress: use_staging_cert: true - className: openshift-default \ No newline at end of file + className: openshift-default + +smocker: + enabled: true + + mocks: + - request: + method: POST + path: /externe-processor-success + response: + status: 200 + headers: + Content-Type: application/json + body: > + { + "action": "CREATE_AKTENNOTIZ", + "body": { + "headline": "Eine neue Notiz", + "severity": "INFO", + "text": "Alles fein" + } + } + - request: + method: POST + path: /externe-processor-failure + response: + status: 500 + headers: + body: "Da ist etwas schiefgelaufen" \ No newline at end of file diff --git a/goofy-client/apps/goofy-e2e/src/fixtures/argocd/by-main-dev.yaml b/goofy-client/apps/goofy-e2e/src/fixtures/argocd/by-main-dev.yaml index bd69db0457..15a55cb8aa 100644 --- a/goofy-client/apps/goofy-e2e/src/fixtures/argocd/by-main-dev.yaml +++ b/goofy-client/apps/goofy-e2e/src/fixtures/argocd/by-main-dev.yaml @@ -24,6 +24,22 @@ pluto: enabled: true password: "Test3456!" replicaCount: 1 + ozgcloud: + processors: + - address: http://smocker:8080/externe-processor-success + name: always-success + forms: + - formId: Erstattung_ERFOLG + formEngineName: FormSolutions + - formId: Erstattung_ERFOLG + formEngineName: AFM + - address: http://smocker:8080/externe-processor-failure + name: always-failure + forms: + - formId: Erstattung_FAIL + formEngineName: FormSolutions + - formId: Erstattung_FAIL + formEngineName: AFM user_manager: kop: @@ -49,4 +65,32 @@ user_manager: ingress: use_staging_cert: true - className: openshift-default \ No newline at end of file + className: openshift-default + +smocker: + enabled: true + + mocks: + - request: + method: POST + path: /externe-processor-success + response: + status: 200 + headers: + Content-Type: application/json + body: > + { + "action": "CREATE_AKTENNOTIZ", + "body": { + "headline": "Eine neue Notiz", + "severity": "INFO", + "text": "Alles fein" + } + } + - request: + method: POST + path: /externe-processor-failure + response: + status: 500 + headers: + body: "Da ist etwas schiefgelaufen" \ No newline at end of file -- GitLab