Skip to content
Snippets Groups Projects
Commit 6f684d25 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-4095 dev: Add smocker scripts

parent b18d6d71
No related branches found
No related tags found
1 merge request!13Ozg 4095 abrufen stage test
Pipeline #1631 passed
#!/bin/bash
YAML_MOCK_FILE=${1:-receive-one.yaml}
JSON_BODY=$(yq -j . < "$YAML_MOCK_FILE")
curl -v --json "$JSON_BODY" localhost:8081/mocks
curl localhost:8081/mocks
\ No newline at end of file
#!/bin/bash
set -e
NAMESPACE=${NAMESPACE:-by-ozg4094-dev}
SMOCKER_POD=$(kubectl get pods -n "$NAMESPACE" | grep -E ^smocker | cut -d' ' -f1)
exec kubectl port-forward "$SMOCKER_POD" 8080:8080 8081:8081
\ No newline at end of file
- request:
method: GET
path: /MessageExchange/v1/Receive
context:
times: 1
response:
status: 200
headers:
Content-Type: application/json
body: >
{
"messages":[{
"guid":"2cec3eac-66d2-4de0-bc6b-652b8e985ceb",
"attachments":[]
}]
}
- request:
method: GET
path: /MessageExchange/v1/Receive/2cec3eac-66d2-4de0-bc6b-652b8e985ceb
context:
times: 1
response:
status: 200
headers:
Content-Type: application/json
body: >
{
"sequencenumber":"00000000-0000-0000-0000-000000000000",
"subject":"AW: Test Subject",
"body":"Hier eine eine Antwort ohne Anhang.",
"displayName":"Sandy Smockia",
"originSender":"technischer Absender",
"replyAction":"Replypossible",
"eidasLevel":"Low",
"isObligatory":false,
"isHtml":false,
"files":[],
"guid":"2cec3eac-66d2-4de0-bc6b-652b8e985ceb",
"messageBox":"00000000-0000-0000-0000-000000000000",
"senderDisplayName":null,
"recipientDisplayName":null,
"responseTime":"2023-07-17T14:59:32.4802955+02:00"
}
- request:
method: DELETE
path: /MessageExchange/v1/Delete/2cec3eac-66d2-4de0-bc6b-652b8e985ceb
context:
times: 1
response:
status: 200
headers:
Content-Type: application/json
body: >
{
"messageId": "2cec3eac-66d2-4de0-bc6b-652b8e985ceb"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment