Commit 4a257eda authored by Benjamin Blanc's avatar Benjamin Blanc Committed by Cédric de Saint Martin

gitclone: test: fix value option in test_using_download_cache_if_git_fails

parent 92d180bc
...@@ -48,8 +48,7 @@ class GitCloneNonInformativeTests(unittest.TestCase): ...@@ -48,8 +48,7 @@ class GitCloneNonInformativeTests(unittest.TestCase):
} }
} }
default_options = { default_options = {
'repository': GIT_REPOSITORY, 'repository': GIT_REPOSITORY
'forbid-download-cache': 'true',
} }
default_options.update(**options) default_options.update(**options)
return Recipe(bo, 'test', default_options) return Recipe(bo, 'test', default_options)
...@@ -57,7 +56,7 @@ class GitCloneNonInformativeTests(unittest.TestCase): ...@@ -57,7 +56,7 @@ class GitCloneNonInformativeTests(unittest.TestCase):
def test_using_download_cache_if_git_fails(self): def test_using_download_cache_if_git_fails(self):
from slapos.recipe.gitclone import GIT_CLONE_ERROR_MESSAGE, \ from slapos.recipe.gitclone import GIT_CLONE_ERROR_MESSAGE, \
GIT_CLONE_CACHE_ERROR_MESSAGE GIT_CLONE_CACHE_ERROR_MESSAGE
recipe = self.makeGitCloneRecipe({"forbid-download-cache": "false", recipe = self.makeGitCloneRecipe({"use-cache": "true",
"repository": BAD_GIT_REPOSITORY}) "repository": BAD_GIT_REPOSITORY})
os.chdir(self.dir) os.chdir(self.dir)
try: try:
...@@ -70,8 +69,7 @@ class GitCloneNonInformativeTests(unittest.TestCase): ...@@ -70,8 +69,7 @@ class GitCloneNonInformativeTests(unittest.TestCase):
def test_not_using_download_cache_if_forbidden(self): def test_not_using_download_cache_if_forbidden(self):
from slapos.recipe.gitclone import GIT_CLONE_ERROR_MESSAGE, \ from slapos.recipe.gitclone import GIT_CLONE_ERROR_MESSAGE, \
GIT_CLONE_ERROR_MESSAGE GIT_CLONE_ERROR_MESSAGE
recipe = self.makeGitCloneRecipe({"forbid-download-cache": "true", recipe = self.makeGitCloneRecipe({"repository": BAD_GIT_REPOSITORY})
"repository": BAD_GIT_REPOSITORY})
os.chdir(self.dir) os.chdir(self.dir)
try: try:
recipe.install() recipe.install()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment