summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTristan van Berkom <tristan@codethink.co.uk>2020-08-24 16:53:06 +0900
committerTristan van Berkom <tristan@codethink.co.uk>2020-09-04 18:22:38 +0900
commit97812cbb7d295cc3d270be9205cbc12313215028 (patch)
tree8f5e2ca4303d43b0d4fbc5f36759bb6194da21f0 /tests
parent85400d162f1cf29e7f4230b18c0a96ec7e814519 (diff)
downloadbuildstream-97812cbb7d295cc3d270be9205cbc12313215028.tar.gz
Element.dependencies() now yields ElementProxy wrappers by default.
This prepares the ground for policing the dependencies which are visible to an Element plugin, such that plugins are only allowed to see the elements in their Scope.BUILD scope, even if they call Element.dependencies() on a dependency. This commit does the following: * Element.dependencies() is now a user facing frontend which yields ElementProxy elements instead of Elements. * Various core codepaths have been updated to call the internal Element._dependencies() codepath which still returns Elements.
Diffstat (limited to 'tests')
-rw-r--r--tests/artifactcache/push.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/artifactcache/push.py b/tests/artifactcache/push.py
index 07f2c2560..87bc3b325 100644
--- a/tests/artifactcache/push.py
+++ b/tests/artifactcache/push.py
@@ -35,7 +35,7 @@ def _push(cli, cache_dir, project_dir, config_file, target):
# Ensure the element's artifact memeber is initialised
# This is duplicated from Pipeline.resolve_elements()
# as this test does not use the cli frontend.
- for e in element.dependencies(Scope.ALL):
+ for e in element._dependencies(Scope.ALL):
e._initialize_state()
# Manually setup the CAS remotes