Skip to content

Commit

Permalink
The repo.saltproject.io index.html file changed it's contents. Fix …
Browse files Browse the repository at this point in the history
…tests.

Signed-off-by: Pedro Algarvio <[email protected]>
(cherry picked from commit 672f658)
  • Loading branch information
s0undt3ch authored and agraul committed Feb 12, 2024
1 parent 6789525 commit 279a461
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/integration/modules/test_cp.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ def test_get_url_https(self, tgt):
self.run_function("cp.get_url", ["https://repo.saltproject.io/index.html", tgt])
with salt.utils.files.fopen(tgt, "r") as instructions:
data = salt.utils.stringutils.to_unicode(instructions.read())
self.assertIn("Bootstrap", data)
self.assertIn("Debian", data)
self.assertIn("Windows", data)
self.assertIn("Salt Project", data)
self.assertIn("Package", data)
self.assertIn("Repo", data)
self.assertNotIn("AYBABTU", data)

@pytest.mark.slow_test
Expand All @@ -250,9 +250,9 @@ def test_get_url_https_dest_empty(self):

with salt.utils.files.fopen(ret, "r") as instructions:
data = salt.utils.stringutils.to_unicode(instructions.read())
self.assertIn("Bootstrap", data)
self.assertIn("Debian", data)
self.assertIn("Windows", data)
self.assertIn("Salt Project", data)
self.assertIn("Package", data)
self.assertIn("Repo", data)
self.assertNotIn("AYBABTU", data)

@pytest.mark.slow_test
Expand All @@ -273,9 +273,9 @@ def test_get_url_https_no_dest(self):
time.sleep(sleep)
if ret.find("HTTP 599") != -1:
raise Exception("https://repo.saltproject.io/index.html returned 599 error")
self.assertIn("Bootstrap", ret)
self.assertIn("Debian", ret)
self.assertIn("Windows", ret)
self.assertIn("Salt Project", ret)
self.assertIn("Package", ret)
self.assertIn("Repo", ret)
self.assertNotIn("AYBABTU", ret)

@pytest.mark.slow_test
Expand Down Expand Up @@ -346,9 +346,9 @@ def test_get_file_str_https(self):
"""
src = "https://repo.saltproject.io/index.html"
ret = self.run_function("cp.get_file_str", [src])
self.assertIn("Bootstrap", ret)
self.assertIn("Debian", ret)
self.assertIn("Windows", ret)
self.assertIn("Salt Project", ret)
self.assertIn("Package", ret)
self.assertIn("Repo", ret)
self.assertNotIn("AYBABTU", ret)

@pytest.mark.slow_test
Expand Down

0 comments on commit 279a461

Please sign in to comment.