webhook: matrix access_token helper text
This commit is contained in:
parent
5d45545ca1
commit
99830a40a1
5 changed files with 22 additions and 17 deletions
|
@ -227,19 +227,19 @@ func TestWebhookForms(t *testing.T) {
|
|||
}))
|
||||
|
||||
t.Run("matrix/required", testWebhookForms("matrix", session, map[string]string{
|
||||
"homeserver_url": "https://matrix.example.com",
|
||||
"room_id": "123",
|
||||
"authorization_header": "Bearer 123456",
|
||||
"homeserver_url": "https://matrix.example.com",
|
||||
"access_token": "123456",
|
||||
"room_id": "123",
|
||||
}, map[string]string{
|
||||
"authorization_header": "",
|
||||
"access_token": "",
|
||||
}))
|
||||
t.Run("matrix/optional", testWebhookForms("matrix", session, map[string]string{
|
||||
"homeserver_url": "https://matrix.example.com",
|
||||
"access_token": "123456",
|
||||
"room_id": "123",
|
||||
"message_type": "1", // m.text
|
||||
|
||||
"branch_filter": "matrix/*",
|
||||
"authorization_header": "Bearer 123456",
|
||||
"branch_filter": "matrix/*",
|
||||
}))
|
||||
|
||||
t.Run("wechatwork/required", testWebhookForms("wechatwork", session, map[string]string{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue