mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
The repo.saltproject.io index.html
file changed it's contents. Fix tests.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
d31a2c8810
commit
672f6586d7
1 changed files with 12 additions and 12 deletions
|
@ -234,9 +234,9 @@ class CPModuleTest(ModuleCase):
|
|||
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
|
||||
|
@ -250,9 +250,9 @@ class CPModuleTest(ModuleCase):
|
|||
|
||||
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
|
||||
|
@ -273,9 +273,9 @@ class CPModuleTest(ModuleCase):
|
|||
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
|
||||
|
@ -346,9 +346,9 @@ class CPModuleTest(ModuleCase):
|
|||
"""
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue