File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
tests/sentry/api/endpoints Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 55
66from sentry .api .api_owners import ApiOwner
77from sentry .api .api_publish_status import ApiPublishStatus
8- from sentry .api .base import Endpoint , all_silo_endpoint
8+ from sentry .api .base import Endpoint , control_silo_endpoint
99from sentry .api .serializers .rest_framework .base import CamelSnakeSerializer
1010from sentry .demo_mode .utils import is_demo_mode_enabled
1111from sentry .utils .marketo_client import MarketoClient
@@ -17,8 +17,7 @@ class EmailCaptureSerializer(CamelSnakeSerializer):
1717 email = serializers .EmailField (required = True )
1818
1919
20- # TODO(cells): This endpoint is moving to control
21- @all_silo_endpoint
20+ @control_silo_endpoint
2221class EmailCaptureEndpoint (Endpoint ):
2322 publish_status = {
2423 "POST" : ApiPublishStatus .PRIVATE ,
Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ const patterns: RegExp[] = [
153153 new RegExp ( '^api/0/wizard/[^/]+/$' ) ,
154154 new RegExp ( '^api/0/internal/beacon/$' ) ,
155155 new RegExp ( '^api/0/internal/integration-proxy/$' ) ,
156+ new RegExp ( '^api/0/internal/demo/email-capture/$' ) ,
156157 new RegExp ( '^api/0/internal/notifications/registered-templates/$' ) ,
157158 new RegExp ( '^api/0/uptime-ips/$' ) ,
158159 new RegExp ( '^api/0/tempest-ips/$' ) ,
Original file line number Diff line number Diff line change 44
55from sentry .testutils .cases import APITestCase
66from sentry .testutils .helpers .options import override_options
7+ from sentry .testutils .silo import control_silo_test
78from sentry .utils .marketo_client import MarketoClient
89
910
11+ @control_silo_test
1012class EmailCaptureTest (APITestCase ):
1113 def setUp (self ) -> None :
1214 super ().setUp ()
You can’t perform that action at this time.
0 commit comments