mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 15:41:22 -07:00
* add discord integration tests
* fix: var name in readme
(cherry picked from commit aa045d2655
)
Co-authored-by: CWollinger <CWollinger@web.de>
This commit is contained in:
parent
41fe6663d9
commit
d04c18ffce
4 changed files with 81 additions and 0 deletions
14
tests/integration/targets/discord/README.md
Normal file
14
tests/integration/targets/discord/README.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
The integration tests can be executed locally:
|
||||
|
||||
1. Create or use an existing discord server
|
||||
2. Open `Server Settings` and navigate to `Integrations` tab
|
||||
3. Click `Create Webhook` to create a new webhook
|
||||
4. Click `Copy Webhook URL` and extract the webhook_id + webhook_token
|
||||
|
||||
Example: https://discord.com/api/webhooks/`webhook_id`/`webhook_token`
|
||||
|
||||
5. Replace the variables `discord_id` and `discord_token` in the var file
|
||||
6. Run the integration test
|
||||
````
|
||||
ansible-test integration -v --color yes discord --allow-unsupported
|
||||
````
|
Loading…
Add table
Add a link
Reference in a new issue