Skip to content

Commit

Permalink
📝Slack test : update Readme with new Oauth Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
zbendhiba committed Mar 14, 2022
1 parent f9e5fd6 commit 4534a8b
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion integration-tests/slack/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,32 @@ By default the Slack integration tests use WireMock to stub the API interactions

To run the `camel-quarkus-Slack` integration tests against the real API, you must first create a Slack account and workspace https://slack.com/get-started#/create.

Then configure Slack custom configurations for 'Incoming Webhooks' & the 'Slack API Tester' on your workspace.
Create a channel named `test-channel`.

You’ll need to create a Slack app and use it on your workspace.

Use the 'User OAuth Token' as token for the producer abd consumer endpoints. Set the corresponding scopes for Bot Token:

* `channels:history`
* `groups:history`
* `im:history`
* `mpim:history`
* `channels:read`
* `groups:read`
* `im:read`
* `mpim:read`
* `chat:write`
Install your app for the channel `test-channel`.

Add an `Incoming Webhook` for you app.

Invite the bot in the channel `test-channel`.

[source]
----
/invite @BOT_NAME
----

Next set the following environment variables:

Expand Down

0 comments on commit 4534a8b

Please sign in to comment.