@@ -127,12 +127,6 @@ def test_happiness(self):
127127 '[?occupancy=metrics.publishers]control_sec' ])
128128 assert qs ['v' ][0 ] == '1.1'
129129
130- # Initial apikey validation
131- req = split_backend_requests .get ()
132- assert req .method == 'GET'
133- assert req .path == '/api/segmentChanges/__SOME_INVALID_SEGMENT__?since=-1'
134- assert req .headers ['authorization' ] == 'Bearer some_apikey'
135-
136130 # Initial splits fetch
137131 req = split_backend_requests .get ()
138132 assert req .method == 'GET'
@@ -334,12 +328,6 @@ def test_occupancy_flicker(self):
334328 '[?occupancy=metrics.publishers]control_sec' ])
335329 assert qs ['v' ][0 ] == '1.1'
336330
337- # Initial apikey validation
338- req = split_backend_requests .get ()
339- assert req .method == 'GET'
340- assert req .path == '/api/segmentChanges/__SOME_INVALID_SEGMENT__?since=-1'
341- assert req .headers ['authorization' ] == 'Bearer some_apikey'
342-
343331 # Initial splits fetch
344332 req = split_backend_requests .get ()
345333 assert req .method == 'GET'
@@ -514,12 +502,6 @@ def test_start_without_occupancy(self):
514502 '[?occupancy=metrics.publishers]control_sec' ])
515503 assert qs ['v' ][0 ] == '1.1'
516504
517- # Initial apikey validation
518- req = split_backend_requests .get ()
519- assert req .method == 'GET'
520- assert req .path == '/api/segmentChanges/__SOME_INVALID_SEGMENT__?since=-1'
521- assert req .headers ['authorization' ] == 'Bearer some_apikey'
522-
523505 # Initial splits fetch
524506 req = split_backend_requests .get ()
525507 assert req .method == 'GET'
@@ -704,12 +686,6 @@ def test_streaming_status_changes(self):
704686 '[?occupancy=metrics.publishers]control_sec' ])
705687 assert qs ['v' ][0 ] == '1.1'
706688
707- # Initial apikey validation
708- req = split_backend_requests .get ()
709- assert req .method == 'GET'
710- assert req .path == '/api/segmentChanges/__SOME_INVALID_SEGMENT__?since=-1'
711- assert req .headers ['authorization' ] == 'Bearer some_apikey'
712-
713689 # Initial splits fetch
714690 req = split_backend_requests .get ()
715691 assert req .method == 'GET'
@@ -931,12 +907,6 @@ def test_server_closes_connection(self):
931907 '[?occupancy=metrics.publishers]control_sec' ])
932908 assert qs ['v' ][0 ] == '1.1'
933909
934- # Initial apikey validation
935- req = split_backend_requests .get ()
936- assert req .method == 'GET'
937- assert req .path == '/api/segmentChanges/__SOME_INVALID_SEGMENT__?since=-1'
938- assert req .headers ['authorization' ] == 'Bearer some_apikey'
939-
940910 # Initial splits fetch
941911 req = split_backend_requests .get ()
942912 assert req .method == 'GET'
@@ -1168,12 +1138,6 @@ def test_ably_errors_handling(self):
11681138 '[?occupancy=metrics.publishers]control_sec' ])
11691139 assert qs ['v' ][0 ] == '1.1'
11701140
1171- # Initial apikey validation
1172- req = split_backend_requests .get ()
1173- assert req .method == 'GET'
1174- assert req .path == '/api/segmentChanges/__SOME_INVALID_SEGMENT__?since=-1'
1175- assert req .headers ['authorization' ] == 'Bearer some_apikey'
1176-
11771141 # Initial splits fetch
11781142 req = split_backend_requests .get ()
11791143 assert req .method == 'GET'
0 commit comments