@@ -231,28 +231,22 @@ def test_get_url_https(self, tgt):
231
231
"""
232
232
cp.get_url with https:// source given
233
233
"""
234
- self .run_function ("cp.get_url" , ["https://repo.saltproject.io/index.html " , tgt ])
234
+ self .run_function ("cp.get_url" , ["https://www.broadcom.com " , tgt ])
235
235
with salt .utils .files .fopen (tgt , "r" ) as instructions :
236
236
data = salt .utils .stringutils .to_unicode (instructions .read ())
237
- self .assertIn ("Salt Project" , data )
238
- self .assertIn ("Package" , data )
239
- self .assertIn ("Repo" , data )
237
+ self .assertIn ("Broadcom Inc. is a global technology leader" , data )
240
238
self .assertNotIn ("AYBABTU" , data )
241
239
242
240
@pytest .mark .slow_test
243
241
def test_get_url_https_dest_empty (self ):
244
242
"""
245
243
cp.get_url with https:// source given and destination omitted.
246
244
"""
247
- ret = self .run_function (
248
- "cp.get_url" , ["https://repo.saltproject.io/index.html" ]
249
- )
245
+ ret = self .run_function ("cp.get_url" , ["https://www.broadcom.com" ])
250
246
251
247
with salt .utils .files .fopen (ret , "r" ) as instructions :
252
248
data = salt .utils .stringutils .to_unicode (instructions .read ())
253
- self .assertIn ("Salt Project" , data )
254
- self .assertIn ("Package" , data )
255
- self .assertIn ("Repo" , data )
249
+ self .assertIn ("Broadcom Inc. is a global technology leader" , data )
256
250
self .assertNotIn ("AYBABTU" , data )
257
251
258
252
@pytest .mark .slow_test
@@ -265,17 +259,13 @@ def test_get_url_https_no_dest(self):
265
259
sleep = 5
266
260
tgt = None
267
261
while time .time () - start <= timeout :
268
- ret = self .run_function (
269
- "cp.get_url" , ["https://repo.saltproject.io/index.html" , tgt ]
270
- )
262
+ ret = self .run_function ("cp.get_url" , ["https://www.broadcom.com" , tgt ])
271
263
if ret .find ("HTTP 599" ) == - 1 :
272
264
break
273
265
time .sleep (sleep )
274
266
if ret .find ("HTTP 599" ) != - 1 :
275
- raise Exception ("https://repo.saltproject.io/index.html returned 599 error" )
276
- self .assertIn ("Salt Project" , ret )
277
- self .assertIn ("Package" , ret )
278
- self .assertIn ("Repo" , ret )
267
+ raise Exception ("https://www.broadcom.com returned 599 error" )
268
+ self .assertIn ("Broadcom Inc. is a global technology leader" , ret )
279
269
self .assertNotIn ("AYBABTU" , ret )
280
270
281
271
@pytest .mark .slow_test
@@ -344,11 +334,9 @@ def test_get_file_str_https(self):
344
334
"""
345
335
cp.get_file_str with https:// source given
346
336
"""
347
- src = "https://repo.saltproject.io/index.html "
337
+ src = "https://www.broadcom.com "
348
338
ret = self .run_function ("cp.get_file_str" , [src ])
349
- self .assertIn ("Salt Project" , ret )
350
- self .assertIn ("Package" , ret )
351
- self .assertIn ("Repo" , ret )
339
+ self .assertIn ("Broadcom Inc. is a global technology leader" , ret )
352
340
self .assertNotIn ("AYBABTU" , ret )
353
341
354
342
@pytest .mark .slow_test
0 commit comments