Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/discord/README.md

raw
1 <!--
2 Copyright (c) Ansible Project
3 GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 SPDX-License-Identifier: GPL-3.0-or-later
5 -->
6
7 The integration tests can be executed locally:
8
9 1. Create or use an existing discord server
10 2. Open `Server Settings` and navigate to `Integrations` tab
11 3. Click `Create Webhook` to create a new webhook
12 4. Click `Copy Webhook URL` and extract the webhook_id + webhook_token
13
14 Example: https://discord.com/api/webhooks/`webhook_id`/`webhook_token`
15
16 5. Replace the variables `discord_id` and `discord_token` in the var file
17 6. Run the integration test
18 ````
19 ansible-test integration -v --color yes discord --allow-unsupported
20 ````