From b9b06786357e458425192972014881d29a7ff91e Mon Sep 17 00:00:00 2001 From: Jakub Smolar Date: Fri, 10 Nov 2023 13:49:14 +0100 Subject: [PATCH] Extend OpenShiftObject class with LifecycleObject --- testsuite/objects/__init__.py | 2 +- testsuite/openshift/objects/__init__.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/testsuite/objects/__init__.py b/testsuite/objects/__init__.py index 063e5f68..5728834f 100644 --- a/testsuite/objects/__init__.py +++ b/testsuite/objects/__init__.py @@ -151,7 +151,7 @@ def delete(self): class Authorino(LifecycleObject): - """Authorino instance""" + """Authorino interface""" @abc.abstractmethod def wait_for_ready(self): diff --git a/testsuite/openshift/objects/__init__.py b/testsuite/openshift/objects/__init__.py index 9314ef82..2e827394 100644 --- a/testsuite/openshift/objects/__init__.py +++ b/testsuite/openshift/objects/__init__.py @@ -3,6 +3,8 @@ from openshift import APIObject +from testsuite.objects import LifecycleObject + def modify(func): """Wraps method of a subclass of OpenShiftObject to use modify_and_apply when the object @@ -28,7 +30,7 @@ def _wrap(self, *args, **kwargs): return _wrap -class OpenShiftObject(APIObject): +class OpenShiftObject(APIObject, LifecycleObject): """Custom APIObjects which tracks if the object was already committed to the server or not""" def __init__(self, dict_to_model=None, string_to_model=None, context=None):