|
11 | 11 | GroupTypeRegistry,
|
12 | 12 | NoiseConfig,
|
13 | 13 | PerformanceGroupTypeDefaults,
|
14 |
| - PerformanceHTTPOverheadGroupType, |
15 | 14 | ProfileJSONDecodeType,
|
16 | 15 | get_group_type_by_slug,
|
17 | 16 | get_group_types_by_category,
|
18 | 17 | )
|
19 | 18 | from sentry.testutils.cases import TestCase
|
| 19 | +from sentry.uptime.grouptype import UptimeDomainCheckFailure |
20 | 20 |
|
21 | 21 |
|
22 | 22 | class BaseGroupTypeTest(TestCase):
|
@@ -159,14 +159,14 @@ class TestGroupType(PerformanceGroupTypeDefaults, GroupType):
|
159 | 159 | class GroupRegistryTest(BaseGroupTypeTest):
|
160 | 160 | def test_get_visible(self) -> None:
|
161 | 161 | registry = GroupTypeRegistry()
|
162 |
| - registry.add(PerformanceHTTPOverheadGroupType) |
| 162 | + registry.add(UptimeDomainCheckFailure) |
163 | 163 | registry.add(ProfileJSONDecodeType)
|
164 | 164 | assert registry.get_visible(self.organization) == []
|
165 |
| - with self.feature(PerformanceHTTPOverheadGroupType.build_visible_feature_name()): |
166 |
| - assert registry.get_visible(self.organization) == [PerformanceHTTPOverheadGroupType] |
| 165 | + with self.feature(UptimeDomainCheckFailure.build_visible_flagpole_feature_name()): |
| 166 | + assert registry.get_visible(self.organization) == [UptimeDomainCheckFailure] |
167 | 167 | registry.add(ErrorGroupType)
|
168 |
| - with self.feature(PerformanceHTTPOverheadGroupType.build_visible_feature_name()): |
| 168 | + with self.feature(UptimeDomainCheckFailure.build_visible_flagpole_feature_name()): |
169 | 169 | assert set(registry.get_visible(self.organization)) == {
|
170 |
| - PerformanceHTTPOverheadGroupType, |
| 170 | + UptimeDomainCheckFailure, |
171 | 171 | ErrorGroupType,
|
172 | 172 | }
|
0 commit comments