diff options
author | Nigel Babu <nigelb@redhat.com> | 2016-12-22 14:28:27 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2017-01-05 13:13:59 -0800 |
commit | c455c6030f1f1678ae66752e5e11ea988d062df4 (patch) | |
tree | 038abadf7759ab4217dee1c2ed7ef3d1261bdbb6 /tests/distaf/tests_d/examples/test_docstring.py | |
parent | 0b9af18eade6583299b88b4e685b02114db7834a (diff) |
tests: Remove tests/distaf
We will not be using it in the future
BUG: 1408131
Change-Id: Idebaaadb06786eebc08969ce0cc15a9df4bd9f42
Signed-off-by: Nigel Babu <nigelb@redhat.com>
Reviewed-on: http://review.gluster.org/16270
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: Raghavendra Talur <rtalur@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/distaf/tests_d/examples/test_docstring.py')
-rw-r--r-- | tests/distaf/tests_d/examples/test_docstring.py | 130 |
1 files changed, 0 insertions, 130 deletions
diff --git a/tests/distaf/tests_d/examples/test_docstring.py b/tests/distaf/tests_d/examples/test_docstring.py deleted file mode 100644 index a939da8da9e..00000000000 --- a/tests/distaf/tests_d/examples/test_docstring.py +++ /dev/null @@ -1,130 +0,0 @@ -# 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 - - -# An example with both doc and config in docstring -@testcase("doc_and_config_test") -class DocAndConfig(GlusterBaseClass): - """ Testing docstring configuration options - This is an example of a basic distaf test with mixed comment and config - Any necessary description doc string text goes here and can include any - plain text normally found in a docstring. - Distaf specific config yaml can be included using the yaml standard - document triple-dash separator below. - --- - runs_on_volumes: [ distributed ] - runs_on_protocol: [ glusterfs ] - reuse_setup: False - tags: - - tag1 - - tag2 - - tag3 - """ - def run(self): - tc.logger.info("Running with doc and config in docstring") - config = self.config_data - tc.logger.debug("Tag 2 is %s" % config["tags"][1]) - tag2 = config["tags"][1] - if tag2 == "tag2": - return True - - return False - - def setup(self): - return True - - def cleanup(self): - return True - - def teardown(self): - return True - - -# An example with only config in docstring -@testcase("config_only_test") -class ConfigOnly(GlusterBaseClass): - """ - runs_on_volumes: [ distributed ] - runs_on_protocol: [ glusterfs, cifs ] - reuse_setup: False - tags: - - tag1 - - tag2 - - tag3 - """ - def run(self): - tc.logger.info("Running with only config in docstring") - config = self.config_data - tc.logger.debug("Tag 2 is %s" % config["tags"][1]) - tag2 = config["tags"][1] - if tag2 == "tag2": - return True - - return False - - def setup(self): - return True - - def cleanup(self): - return True - - def teardown(self): - return True - - -# An example with only doc in docstring -@testcase("doc_only_test") -class DocOnly(GlusterBaseClass): - """ Testing docstring configuration options - This is an example of a basic distaf test with mixed comment and config - Any necessary description doc string text goes here and can include any - plain text normally found in a docstring. - """ - def run(self): - tc.logger.info("Running with only doc in docstring") - return True - - def setup(self): - return True - - def cleanup(self): - return True - - def teardown(self): - return True - - -# An example without a docstring -@testcase("no_docstring_test") -class NoDocstring(GlusterBaseClass): - def run(self): - tc.logger.info("Running with no docstring") - - return True - - def setup(self): - return True - - def cleanup(self): - return True - - def teardown(self): - return True |