Skip to content

Commit 58f4484

Browse files
committed
Use broadcom.com instead of repo.saltproject.io for test_cp
1 parent 650ddea commit 58f4484

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

tests/integration/modules/test_cp.py

+9-21
Original file line numberDiff line numberDiff line change
@@ -231,28 +231,22 @@ def test_get_url_https(self, tgt):
231231
"""
232232
cp.get_url with https:// source given
233233
"""
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])
235235
with salt.utils.files.fopen(tgt, "r") as instructions:
236236
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)
240238
self.assertNotIn("AYBABTU", data)
241239

242240
@pytest.mark.slow_test
243241
def test_get_url_https_dest_empty(self):
244242
"""
245243
cp.get_url with https:// source given and destination omitted.
246244
"""
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"])
250246

251247
with salt.utils.files.fopen(ret, "r") as instructions:
252248
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)
256250
self.assertNotIn("AYBABTU", data)
257251

258252
@pytest.mark.slow_test
@@ -265,17 +259,13 @@ def test_get_url_https_no_dest(self):
265259
sleep = 5
266260
tgt = None
267261
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])
271263
if ret.find("HTTP 599") == -1:
272264
break
273265
time.sleep(sleep)
274266
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)
279269
self.assertNotIn("AYBABTU", ret)
280270

281271
@pytest.mark.slow_test
@@ -344,11 +334,9 @@ def test_get_file_str_https(self):
344334
"""
345335
cp.get_file_str with https:// source given
346336
"""
347-
src = "https://repo.saltproject.io/index.html"
337+
src = "https://www.broadcom.com"
348338
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)
352340
self.assertNotIn("AYBABTU", ret)
353341

354342
@pytest.mark.slow_test

0 commit comments

Comments
 (0)