Skip to content

Commit

Permalink
some more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mshivashankar committed Apr 4, 2024
1 parent 05a48d8 commit 103c0fe
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions qa.md
Original file line number Diff line number Diff line change
Expand Up @@ -1396,3 +1396,61 @@ EXPECTED RESPONSE:
}
}
```


## TSM033: Kakka handler

`EMAIL`

```
{"type":"email", "to": ["Shivashankar <[email protected]>"], "from": "[email protected]", "body":{"template":"/Templates/Email/message.md", "params":{"name": "I am testing a template", "error": "None" }}}
{"type":"email", "to": ["Shivashankar <[email protected]>"], "from": "[email protected]", "body":{"template":"/Templates/Export.md", "params":{"name": "I am testing a template", "error": "None" }}}
'Missing from'
{"type":"email", "to": ["Shivashankar <[email protected]>"], "body":{"template":"/Templates/Email/message.md", "params":{"name": "I am testing a template", "error": "None" }}}
'Bad template path'
{"type":"email", "to": ["Shivashankar <[email protected]>"], "body":{"template":"/Templates/Emails/message.md", "params":{"name": "I am testing a template", "error": "None" }}}
'Access non existant template'
{"type":"email", "to": ["Shivashankar <[email protected]>"], "body":{"template":"/Templates/Email/message22.md", "params":{"name": "I am testing a template", "error": "None" }}}
```

`SLACK`

```
{"type":"slack", "body":{"template":"/Templates/Slack/Slack example.txt", "params":{"name": "I am testing a template", "error": "None" }}}
{"type":"slack", "body":{"template":"/Templates/Slack/Slack example.txt", "params":{"name": "I am testing a template", "error": "None" }}}
'Bad template path'
{"type":"slack", "body":{"template":"/Templates/SlackS/message.md", "params":{"name": "I am testing a template", "error": "None" }}}
'Access non existant template'
{"type":"slack", "body":{"template":"/Templates/Slack/message.md2", "params":{"name": "I am testing a template", "error": "None" }}}
```

`MSTEAMS`

```
{"type":"msteams", "body":{"template":"/Templates/MSTeams/Slack example.txt", "params":{"name": "I am testing a template", "error": "None" }}}
{"type":"msteams", "body":{"template":"/Templates/MSTeams/Slack example.txt", "params":{"name": "I am testing a template", "error": "None" }}}
'Bad template path'
{"type":"msteams", "body":{"template":"/Templates/MSTeamss/message.md", "params":{"name": "I am testing a template", "error": "None" }}}
'Access non existant template'
{"type":"msteams", "body":{"template":"/Templates/MSTeams/message.md2", "params":{"name": "I am testing a template", "error": "None" }}}
```


`UNSUPPORTED-TYPE`

```
{"type":"sms", "body":{"template":"/Templates/MSTeams/Slack example.txt", "params":{"name": "I am testing a template", "error": "None" }}}
```

0 comments on commit 103c0fe

Please sign in to comment.