summaryrefslogtreecommitdiff
path: root/tests/sourcecache/push.py
diff options
context:
space:
mode:
authorRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2019-06-24 15:56:31 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-08 10:40:28 +0000
commitbb2cf18be0aef7d6e394a0c6ff6d83eac737c60b (patch)
tree2b9714484fe27645211efaa37065220465cf3b79 /tests/sourcecache/push.py
parentd493682609f8f96ed127f4083bad42fa2fabb250 (diff)
downloadbuildstream-bb2cf18be0aef7d6e394a0c6ff6d83eac737c60b.tar.gz
Source cache uses new proto methods
This changes the location of source refs from `cache/cas/refs` to `cache/sources_protos` and fixes tests that looked in the old reference place. Source cache now uses the new protocol buffer and grpc methods defined, for storing locally, and pushing and pulling to remotes. Part of #1038
Diffstat (limited to 'tests/sourcecache/push.py')
-rw-r--r--tests/sourcecache/push.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sourcecache/push.py b/tests/sourcecache/push.py
index 6282b6e60..23f5f1ca1 100644
--- a/tests/sourcecache/push.py
+++ b/tests/sourcecache/push.py
@@ -95,7 +95,7 @@ def test_source_push(cli, tmpdir, datafiles):
assert sourcecache.contains(source)
# check that's the remote CAS now has it
- digest = share.cas.resolve_ref(source._get_source_name())
+ digest = sourcecache.export(source)._get_digest()
assert share.has_object(digest)