oncall-engine/engine/apps/slack
Vadim Stepanov e7950139f3
Fix flaky Slack test (#1841)
# What this PR does
Fix [flaky
test](https://github.com/grafana/oncall/actions/runs/4821277510/jobs/8586941639#step:5:706)
`test_get_user_groups_filter_by_handle` using `UniqueFaker` on
`SlackUserGroupFactory.handle` to make handles always unique.

Before:

```shell
>>> len(set([SlackUserGroupFactory().handle for _ in range(100)]))
93
```

After:

```shell
>>> len(set([SlackUserGroupFactory().handle for _ in range(100)]))
100
```


## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-04-27 17:41:36 +01:00
..
migrations Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
models Fix insight_logs exceptions (#1757) 2023-04-17 07:16:18 +00:00
representatives Refactor maintenance (#1340) 2023-02-23 07:13:03 +00:00
scenarios Disable mentions when resolution note is created (#1696) 2023-04-04 11:57:38 +08:00
slack_client Add Slack Api error "message_limit_exceeded" to SlackAPIRateLimitException (#1721) 2023-04-11 12:49:19 +02:00
templates/admin World, meet OnCall! 2022-06-03 08:09:47 -06:00
tests Fix flaky Slack test (#1841) 2023-04-27 17:41:36 +01:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
admin.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_group_slack_service.py Cleanup ScenarioStep (#1213) 2023-02-21 20:22:11 +01:00
constants.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
slack_formatter.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
tasks.py Fix ratelimit message: incident -> alert groups (#1481) 2023-03-09 03:37:16 +00:00
urls.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
utils.py Use formatted UTC time for fallback in slack message (#225) 2022-07-18 07:55:05 -06:00
views.py Fix insight_logs exceptions (#1757) 2023-04-17 07:16:18 +00:00