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 0a7bac13ba55363111aa138ee5592e815b798fbb..3596a5fbf612e8693d5bc219ecce536fa0e69c46 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 bd69db0457d9187ad5b1bef98bdb103d63065a77..15a55cb8aa4a3d3cd61307bd4b9c509636dad3ae 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