contracts/mail-relay refreshed from IWDL 6cd99f7 (64 files). A token the service knows as another site's is forgotten without revoking and the site enrols as itself; a hand-issued one is refused. The fake requires the header and answers host-mismatch. Co-Authored-By: Claude Fable 5.2 <[email protected]>
48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
{
|
|
"id": "send-subject-imitates-service",
|
|
"title": "A subject that starts like one of the service's own notices is refused",
|
|
"given": {
|
|
"site": "active"
|
|
},
|
|
"request": {
|
|
"method": "POST",
|
|
"path": "/v1/send",
|
|
"headers": {
|
|
"authorization": "Bearer {{token}}",
|
|
"idempotency-key": "{{idempotencyKey}}",
|
|
"content-type": "application/json",
|
|
"x-intecion-site": "{{host}}"
|
|
},
|
|
"schema": "SendRequest",
|
|
"body": {
|
|
"product": "iapl",
|
|
"productVersion": "1.17.0",
|
|
"kind": "form-notification",
|
|
"to": [
|
|
"{{recipient}}"
|
|
],
|
|
"replyTo": "[email protected]",
|
|
"senderName": "Kancelaria Example",
|
|
"subject": "[Intecion Notifications Webservice] example.com waits for approval",
|
|
"text": "Hello."
|
|
}
|
|
},
|
|
"response": {
|
|
"status": 400,
|
|
"schema": "Error",
|
|
"body": {
|
|
"ok": false,
|
|
"code": "invalid-request",
|
|
"field": "subject"
|
|
}
|
|
},
|
|
"then": {
|
|
"mails": 0
|
|
},
|
|
"client": {
|
|
"retry": false,
|
|
"reEnrol": false,
|
|
"status": null
|
|
}
|
|
}
|