summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2019-03-08 17:26:00 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-03-25 11:46:44 +0000
commitf5971afc4c5558453103e54f0e3ac4c18e5bafc4 (patch)
treeb50a40af6291d47ee8b17b3ba5332bf2281c6a47 /tests
parent1ab80a03e6611cbc0e7480ce442717ca07f1a0ab (diff)
downloadbuildstream-f5971afc4c5558453103e54f0e3ac4c18e5bafc4.tar.gz
_basecache.py: Moves has remote methods
Move both `has_push_remotes` and `has_fetch_remotes` from `ArtifactCache`. Part of #440
Diffstat (limited to 'tests')
-rw-r--r--tests/artifactcache/pull.py2
-rw-r--r--tests/artifactcache/push.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/artifactcache/pull.py b/tests/artifactcache/pull.py
index 3e05bcecf..3c10c256c 100644
--- a/tests/artifactcache/pull.py
+++ b/tests/artifactcache/pull.py
@@ -150,7 +150,7 @@ def _test_pull(user_config_file, project_dir, cache_dir,
# Manually setup the CAS remote
cas.setup_remotes(use_config=True)
- if cas.has_push_remotes(element=element):
+ if cas.has_push_remotes(plugin=element):
# Push the element's artifact
if not cas.pull(element, element_key):
queue.put("Pull operation failed")
diff --git a/tests/artifactcache/push.py b/tests/artifactcache/push.py
index 18d6d80bc..69f3fbfbb 100644
--- a/tests/artifactcache/push.py
+++ b/tests/artifactcache/push.py
@@ -125,7 +125,7 @@ def _test_push(user_config_file, project_dir, element_name, element_key, queue):
cas.setup_remotes(use_config=True)
cas.initialize_remotes()
- if cas.has_push_remotes(element=element):
+ if cas.has_push_remotes(plugin=element):
# Push the element's artifact
if not cas.push(element, [element_key]):
queue.put("Push operation failed")
@@ -184,7 +184,7 @@ def test_push_directory(cli, tmpdir, datafiles):
# Manually setup the CAS remote
artifactcache.setup_remotes(use_config=True)
artifactcache.initialize_remotes()
- assert artifactcache.has_push_remotes(element=element)
+ assert artifactcache.has_push_remotes(plugin=element)
# Recreate the CasBasedDirectory object from the cached artifact
artifact_ref = element.get_artifact_name(element_key)