diff options
Diffstat (limited to 'tests/plugins/loading')
-rw-r--r-- | tests/plugins/loading/plugins/elements/deprecated/deprecated.py | 21 | ||||
-rw-r--r-- | tests/plugins/loading/plugins/sources/deprecated/deprecated.py | 34 |
2 files changed, 55 insertions, 0 deletions
diff --git a/tests/plugins/loading/plugins/elements/deprecated/deprecated.py b/tests/plugins/loading/plugins/elements/deprecated/deprecated.py new file mode 100644 index 000000000..7184710bc --- /dev/null +++ b/tests/plugins/loading/plugins/elements/deprecated/deprecated.py @@ -0,0 +1,21 @@ +from buildstream import Element + + +class Deprecated(Element): + BST_MIN_VERSION = "2.0" + BST_PLUGIN_DEPRECATED = True + BST_PLUGIN_DEPRECATION_MESSAGE = "Here is some detail." + + def configure(self, node): + pass + + def preflight(self): + pass + + def get_unique_key(self): + return {} + + +# Plugin entry point +def setup(): + return Deprecated diff --git a/tests/plugins/loading/plugins/sources/deprecated/deprecated.py b/tests/plugins/loading/plugins/sources/deprecated/deprecated.py new file mode 100644 index 000000000..6203eb2fa --- /dev/null +++ b/tests/plugins/loading/plugins/sources/deprecated/deprecated.py @@ -0,0 +1,34 @@ +from buildstream import Source + + +class Deprecated(Source): + BST_MIN_VERSION = "2.0" + BST_PLUGIN_DEPRECATED = True + BST_PLUGIN_DEPRECATION_MESSAGE = "Here is some detail." + + def configure(self, node): + pass + + def preflight(self): + pass + + def get_unique_key(self): + return {} + + def load_ref(self, node): + pass + + def get_ref(self): + return {} + + def set_ref(self, ref, node): + pass + + def is_cached(self): + return False + + +# Plugin entry point +def setup(): + + return Deprecated |