summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2019-01-18 16:19:54 +0000
committerJames Ennis <james.ennis@codethink.com>2019-02-13 09:35:45 +0000
commit9b140fa00ce98d2902c9cfef2eb6fd550b6cdeef (patch)
treebad5493667ea9ab700ea510867238ade6e0e4b6b /tests
parent6de65306882ebbbcb0cb791cc123645b0a756069 (diff)
downloadbuildstream-9b140fa00ce98d2902c9cfef2eb6fd550b6cdeef.tar.gz
element.py: Lift ArtifactCache.get_artifact_fullname() to here
This commit removes the method ArtifactCache.get_artifact_fullname() and replaces it with Element.get_artifact_name() Given a key, we are now able to construct the full name of any of an element's artifacts.
Diffstat (limited to 'tests')
-rw-r--r--tests/artifactcache/pull.py2
-rw-r--r--tests/artifactcache/push.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/artifactcache/pull.py b/tests/artifactcache/pull.py
index edd5a93ba..4ab35f066 100644
--- a/tests/artifactcache/pull.py
+++ b/tests/artifactcache/pull.py
@@ -211,7 +211,7 @@ def test_pull_tree(cli, tmpdir, datafiles):
assert artifactcache.contains(element, element_key)
# Retrieve the Directory object from the cached artifact
- artifact_ref = artifactcache.get_artifact_fullname(element, element_key)
+ artifact_ref = element.get_artifact_name(element_key)
artifact_digest = cas.resolve_ref(artifact_ref)
queue = multiprocessing.Queue()
diff --git a/tests/artifactcache/push.py b/tests/artifactcache/push.py
index ed2a140e7..3b2e1be09 100644
--- a/tests/artifactcache/push.py
+++ b/tests/artifactcache/push.py
@@ -190,7 +190,7 @@ def test_push_directory(cli, tmpdir, datafiles):
assert artifactcache.has_push_remotes(element=element)
# Recreate the CasBasedDirectory object from the cached artifact
- artifact_ref = artifactcache.get_artifact_fullname(element, element_key)
+ artifact_ref = element.get_artifact_name(element_key)
artifact_digest = cas.resolve_ref(artifact_ref)
queue = multiprocessing.Queue()