@@ -44,7 +44,7 @@ def connect_debug():
44
44
secret ,
45
45
location = 'us-east' ,
46
46
timeout = 30 ,
47
- base_url = 'http ://qa- api.getstream.io /api/' ,
47
+ base_url = 'https ://qa.stream-io- api.com /api/' ,
48
48
# base_url='http://localhost-api.getstream.io:8000/api/',
49
49
)
50
50
@@ -174,7 +174,7 @@ def test_heroku(self):
174
174
self .assertEqual (client .app_id , '1' )
175
175
176
176
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'
178
178
os .environ ['STREAM_URL' ] = url
179
179
client = stream .connect ()
180
180
self .assertEqual (client .api_key , 'bvt88g4kvc63' )
@@ -187,9 +187,9 @@ def test_heroku_no_location(self):
187
187
client .base_url , 'http://localhost:8000/api/' )
188
188
else :
189
189
self .assertEqual (
190
- client .base_url , 'https://api.getstream.io /api/' )
190
+ client .base_url , 'https://api.stream-io-api.com /api/' )
191
191
192
- def test_heroku_location (self ):
192
+ def test_heroku_location_compat (self ):
193
193
url = 'https://ahj2ndz7gsan:gthc2t9gh7pzq52f6cky8w4r4up9dr6rju9w3fjgmkv6cdvvav2ufe5fv7e2r9qy@us-east.getstream.io/?app_id=1'
194
194
os .environ ['STREAM_URL' ] = url
195
195
client = stream .connect ()
@@ -202,7 +202,23 @@ def test_heroku_location(self):
202
202
client .base_url , 'http://localhost:8000/api/' )
203
203
else :
204
204
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/' )
206
222
self .assertEqual (client .app_id , '1' )
207
223
208
224
def test_heroku_overwrite (self ):
@@ -216,7 +232,7 @@ def test_heroku_overwrite(self):
216
232
def test_location_support (self ):
217
233
client = stream .connect ('a' , 'b' , 'c' , location = 'us-east' )
218
234
219
- full_location = 'https://us-east-api.getstream.io /api/'
235
+ full_location = 'https://us-east-api.stream-io-api.com /api/'
220
236
if self .local_tests :
221
237
full_location = 'http://localhost:8000/api/'
222
238
0 commit comments