summaryrefslogtreecommitdiffstats
path: root/api4/webhook_test.go
Commit message (Collapse)AuthorAgeFilesLines
* add megacheck as makefile target (#9288)Daniel Schalla2018-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Fix code issues in channel_test.go Fix Channel Test Issues detected by Megacheck Fix API Emoji Test Issues detected by Megacheck Fixed API Issues Reported by Megacheck Fixed App issues reported by megacheck Remaining fixes removed test added by mistake from old HEAD gofmt Store Fixes simplified returns Fix test for multi member channel delete revert to delete unused function
* added the custom icon and username for the outgoing webhook and its response ↵Pradeep Murugesan2018-07-251-1/+1
| | | | | | | | | | | | (#9141) * 8272 added the username and icon as part of the model and persisted the same * 8272 added the custome icon and name when set to the web hook response * 8272 changed the infinte loop to timeout after 5 seconds * 8272 fixed review comments
* Refactor context out of API packages (#8755)Joram Wilander2018-05-141-45/+0
| | | | | | | | | | | | * Refactor context out of API packages * Update function names per feedback * Move webhook handlers to web and fix web tests * Move more webhook tests out of api package * Fix static handler
* MM-10232, MM-10259: Improve error handling from invalid json (#8668)Jesse Hallam2018-04-261-3/+7
| | | | | | | | | | | | | | * MM-10232: improve error handling from malformed slash command responses Switch to json.Unmarshal, which doesn't obscure JSON parse failures like json.Decode. The latter is primarily designed for streams of JSON, not necessarily unmarshalling just a single object. * rework HumanizedJsonError to expose Line and Character discretely * MM-10259: pinpoint line and character where json config error occurs * tweak HumanizeJsonError to accept err first
* XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-061-20/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | * XYZ-13: Update Permission and Role structs to new design. * XYZ-10: Role store. * XYZ-9/XYZ-44: Roles API endpoints and WebSocket message. * XYZ-8: Switch server permissions checks to store backed roles. * XYZ-58: Proper validation of roles where required. * XYZ-11/XYZ-55: Migration to store backed roles from policy config. * XYZ-37: Update unit tests to work with database roles. * XYZ-56: Remove the "guest" role. * Changes to SetDefaultRolesFromConfig. * Short-circuit the store if nothing has changed. * Address first round of review comments. * Address second round of review comments.
* [PLT-8173] Strip the post_ prefix on incoming webhook overrides. (#8019)Jesse Hallam2018-01-031-8/+8
|
* [PLT-8173] Add username and profile picture to webhook set up pages (#8002)Jesse Hallam2018-01-021-0/+61
|
* Role refactor (#7867)Chris2017-11-211-20/+0
| | | | | | | | * role refactor * add missing file * fix web test
* Reduce cfg boilerplate (#7689)Chris2017-10-231-77/+0
| | | | | | | | | | | | * reduce cfg boilerplate * fix compile error * user test fix * another test fix * simplify diagnostics / testing
* Reduce utils.Cfg references (#7650)Chris2017-10-181-82/+82
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* PLT-7718 Patch for files (#7564)Joram Wilander2017-10-041-5/+1
| | | | | | | | | | * Patch for files * Fix merge * Fix tests * Fix another test
* Don't use global app for api / api4 tests (#7528)Chris2017-10-021-15/+17
| | | | | | | | | | | | | | * don't use global app for api / api4 tests * put sleep back. we're gonna have to do some goroutine wrangling * fix oauth test config assumptions * jobs package, i'm comin' for you next * app test fix * try increasing sleep a little
* Invalidate webhook cache after updating webhook (#7430)Joram Wilander2017-09-141-0/+5
|
* Renaming repoChristopher Speller2017-09-061-2/+2
|
* app type transition (#7167)Chris2017-09-061-2/+1
|
* webhook merge fix (#7250)Chris2017-08-171-1/+1
|
* PLT-1649: add response_url support for custom slash commands (#6739)Chris2017-08-161-0/+40
| | | | | | | | | | * add response_url support for custom slash commands * pr suggestions * pr update / suggestion * test fix
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * PLT-5860 Updated copyright date in about modal * PLT-5860 Updated copyright notice in JSX files * PLT-5860 Updated copyright notice in go files * Fixed misc copyright dates * Fixed component snapshots
* add implementation for endpoint DELETE outgoing webhook for apiv4 (#5828)Carlos Tadeu Panato Junior2017-03-231-0/+62
|
* add implementation to get outgoing webhook for apiv4 (#5827)Carlos Tadeu Panato Junior2017-03-231-0/+39
|
* implement PUT /hooks/outgoing/{hook_id} - update outgoing hook (#5793)Carlos Tadeu Panato Junior2017-03-211-0/+167
|
* [APIV4] POST /hooks/outgoing/{hook_id}/regen_token - regentoken endpoint ↵Carlos Tadeu Panato Junior2017-03-201-0/+41
| | | | for apiV4 (#5783)
* Implement update IncomingHook for apiV4 (#5762)Carlos Tadeu Panato Junior2017-03-151-0/+166
|
* Implement GET and POST /hooks/outgoing endpoints for APIv4 (#5645)Joram Wilander2017-03-131-0/+162
|
* Adding functionality to get & delete incoming webhooks (#5648)Poornima2017-03-111-0/+108
|
* Implement create and get incoming webhook endpoints for APIv4 (#5407)Joram Wilander2017-02-211-0/+150
* Implement POST /hooks/incoming endpoint for APIv4 * Implement GET /hooks/incoming endpoint for APIv4 * Updates per feedback