summaryrefslogtreecommitdiffstats
path: root/tests/distaf/tests_d
diff options
context:
space:
mode:
authorApeksha D Khakharia <akhakhar@redhat.com>2016-05-24 12:20:59 +0530
committerRaghavendra Talur <rtalur@redhat.com>2016-06-23 05:07:12 -0700
commit6109f0a98f2fd7f7a2ad95c621c492733fe0289f (patch)
tree7c8a885dcc671b5fc248c9d73fe9190b39d2f966 /tests/distaf/tests_d
parentb37c6d9088851b2ef83ce4e28af642892e5fd268 (diff)
distaf: adding libraries to setup CTDB in gluster
Change-Id: Iad3493794cf05262f182334efc8e517e30698e39 BUG: 1339541 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com> Reviewed-on: http://review.gluster.org/14531 Reviewed-by: Vivek Das <vdas@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: ShwethaHPanduranga
Diffstat (limited to 'tests/distaf/tests_d')
-rw-r--r--tests/distaf/tests_d/ctdb_gluster/__init__.py0
-rw-r--r--tests/distaf/tests_d/ctdb_gluster/test_ctdb_gluster_setup.py51
2 files changed, 51 insertions, 0 deletions
diff --git a/tests/distaf/tests_d/ctdb_gluster/__init__.py b/tests/distaf/tests_d/ctdb_gluster/__init__.py
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/tests/distaf/tests_d/ctdb_gluster/__init__.py
diff --git a/tests/distaf/tests_d/ctdb_gluster/test_ctdb_gluster_setup.py b/tests/distaf/tests_d/ctdb_gluster/test_ctdb_gluster_setup.py
new file mode 100644
index 00000000000..90a86489c40
--- /dev/null
+++ b/tests/distaf/tests_d/ctdb_gluster/test_ctdb_gluster_setup.py
@@ -0,0 +1,51 @@
+#!/usr/bin/env python
+# This file is part of DiSTAF
+# Copyright (C) 2015-2016 Red Hat, Inc. <http://www.redhat.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+
+from distaf.util import tc, testcase
+from distaflibs.gluster.gluster_base_class import GlusterBaseClass
+from distaflibs.gluster.ctdb_libs import ctdb_gluster_setup
+
+
+@testcase("test_ctdb_gluster_setup")
+class TestCtdbGlusterSetup(GlusterBaseClass):
+ """
+ Test case to setup CTDB on gluster setup
+ """
+ def __init__(self, config_data):
+ """
+ Initialise the class with the config values
+ """
+ tc.logger.info("Starting testcase for CTDB gluster setup")
+ GlusterBaseClass.__init__(self, config_data)
+
+ def setup(self):
+ """
+ The function to setup the CTDB setup
+ """
+ ret = ctdb_gluster_setup()
+ return ret
+
+ def run(self):
+ return True
+
+ def cleanup(self):
+ """
+ The function to cleanup the test setup
+ """
+ return True