@@ -44,7 +44,7 @@ def connect_debug():
4444 secret ,
4545 location = 'us-east' ,
4646 timeout = 30 ,
47- base_url = 'http ://qa- api.getstream.io /api/' ,
47+ base_url = 'https ://qa.stream-io- api.com /api/' ,
4848 # base_url='http://localhost-api.getstream.io:8000/api/',
4949 )
5050
@@ -174,7 +174,7 @@ def test_heroku(self):
174174 self .assertEqual (client .app_id , '1' )
175175
176176 def test_heroku_no_location (self ):
177- url = 'https://bvt88g4kvc63:twc5ywfste5bm2ngqkzs7ukxk3pn96yweghjrxcmcrarnt3j4dqj3tucbhym5wfd@getstream.io /?app_id=669'
177+ url = 'https://bvt88g4kvc63:twc5ywfste5bm2ngqkzs7ukxk3pn96yweghjrxcmcrarnt3j4dqj3tucbhym5wfd@stream-io-api.com /?app_id=669'
178178 os .environ ['STREAM_URL' ] = url
179179 client = stream .connect ()
180180 self .assertEqual (client .api_key , 'bvt88g4kvc63' )
@@ -187,9 +187,9 @@ def test_heroku_no_location(self):
187187 client .base_url , 'http://localhost:8000/api/' )
188188 else :
189189 self .assertEqual (
190- client .base_url , 'https://api.getstream.io /api/' )
190+ client .base_url , 'https://api.stream-io-api.com /api/' )
191191
192- def test_heroku_location (self ):
192+ def test_heroku_location_compat (self ):
193193 url = 'https://ahj2ndz7gsan:gthc2t9gh7pzq52f6cky8w4r4up9dr6rju9w3fjgmkv6cdvvav2ufe5fv7e2r9qy@us-east.getstream.io/?app_id=1'
194194 os .environ ['STREAM_URL' ] = url
195195 client = stream .connect ()
@@ -202,7 +202,23 @@ def test_heroku_location(self):
202202 client .base_url , 'http://localhost:8000/api/' )
203203 else :
204204 self .assertEqual (
205- client .base_url , 'https://us-east-api.getstream.io/api/' )
205+ client .base_url , 'https://us-east-api.stream-io-api.com/api/' )
206+ self .assertEqual (client .app_id , '1' )
207+
208+ def test_heroku_location (self ):
209+ url = 'https://ahj2ndz7gsan:gthc2t9gh7pzq52f6cky8w4r4up9dr6rju9w3fjgmkv6cdvvav2ufe5fv7e2r9qy@us-east.stream-io-api.com/?app_id=1'
210+ os .environ ['STREAM_URL' ] = url
211+ client = stream .connect ()
212+ self .assertEqual (client .api_key , 'ahj2ndz7gsan' )
213+ self .assertEqual (
214+ client .api_secret , 'gthc2t9gh7pzq52f6cky8w4r4up9dr6rju9w3fjgmkv6cdvvav2ufe5fv7e2r9qy' )
215+
216+ if self .local_tests :
217+ self .assertEqual (
218+ client .base_url , 'http://localhost:8000/api/' )
219+ else :
220+ self .assertEqual (
221+ client .base_url , 'https://us-east-api.stream-io-api.com/api/' )
206222 self .assertEqual (client .app_id , '1' )
207223
208224 def test_heroku_overwrite (self ):
@@ -216,7 +232,7 @@ def test_heroku_overwrite(self):
216232 def test_location_support (self ):
217233 client = stream .connect ('a' , 'b' , 'c' , location = 'us-east' )
218234
219- full_location = 'https://us-east-api.getstream.io /api/'
235+ full_location = 'https://us-east-api.stream-io-api.com /api/'
220236 if self .local_tests :
221237 full_location = 'http://localhost:8000/api/'
222238
0 commit comments