summaryrefslogtreecommitdiff
path: root/tests/elements
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-07-03 18:01:30 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commit8c9f41922ad16f8a031ac612bb35e493e8581380 (patch)
treecebc4afe2d0238033362905a99400d4d2824d7dc /tests/elements
parentd8466183f77c75bbd7ad27c7cbf5e58189945be1 (diff)
downloadbuildstream-8c9f41922ad16f8a031ac612bb35e493e8581380.tar.gz
_yaml: Remove 'node_validate' and replace by 'MappingNode.validate_keys'
- adapt all call sites to use the new API
Diffstat (limited to 'tests/elements')
-rw-r--r--tests/elements/filter/basic/element_plugins/dynamic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/elements/filter/basic/element_plugins/dynamic.py b/tests/elements/filter/basic/element_plugins/dynamic.py
index 1ec7d4dd3..18e52c4b6 100644
--- a/tests/elements/filter/basic/element_plugins/dynamic.py
+++ b/tests/elements/filter/basic/element_plugins/dynamic.py
@@ -4,7 +4,7 @@ from buildstream import Element, Scope
# Copies files from the dependent element but inserts split-rules using dynamic data
class DynamicElement(Element):
def configure(self, node):
- self.node_validate(node, ['split-rules'])
+ node.validate_keys(['split-rules'])
self.split_rules = node.get_mapping('split-rules')
def preflight(self):