From 8d16f0305801540e6e6577307edcf5fa1da3bab2 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Tue, 3 Sep 2013 16:27:19 +0530 Subject: [PATCH] marvin_refactor: base classes for entity and factory CloudStackEntity : represents the base entity. This is a placeholder for future use. Right now it only implements version info CloudStackBaseFactory: overloads AbstractFactory to provide custom hooks for CloudStackEntity creation. The current creators for cloudstack entities are any api actions that begin as create, deploy or register Signed-off-by: Prasanna Santhanam --- tools/marvin/marvin/base/CloudStackEntity.py | 2 +- tools/marvin/marvin/factory/CloudStackBaseFactory.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/marvin/marvin/base/CloudStackEntity.py b/tools/marvin/marvin/base/CloudStackEntity.py index 879506ca193..b7091de44d5 100644 --- a/tools/marvin/marvin/base/CloudStackEntity.py +++ b/tools/marvin/marvin/base/CloudStackEntity.py @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -cloudstack_version = "4.1.0" +cloudstack_version = "4.2.0" class CloudStackEntity(object): diff --git a/tools/marvin/marvin/factory/CloudStackBaseFactory.py b/tools/marvin/marvin/factory/CloudStackBaseFactory.py index c4a7c77ae02..4b33a52f6f4 100644 --- a/tools/marvin/marvin/factory/CloudStackBaseFactory.py +++ b/tools/marvin/marvin/factory/CloudStackBaseFactory.py @@ -18,7 +18,7 @@ import factory import inspect -CREATORS = ["create", "deploy"] +CREATORS = ["create", "deploy", "register"] class CloudStackBaseFactory(factory.Factory):