]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/python: remove test for ceph cli
authorKefu Chai <kchai@redhat.com>
Wed, 31 Jul 2019 06:29:24 +0000 (14:29 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 31 Jul 2019 06:29:27 +0000 (14:29 +0800)
we have abundant test for exercising `ceph` cli, like

qa/standalone/mon/misc.sh.

and `test_ceph.py` does not test any functionality of this python script
other than importing it, which basically runs it through python's syntax
check.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/python/.gitignore [deleted file]
src/test/python/ceph/.gitignore [deleted file]
src/test/python/ceph/setup.py [deleted file]
src/test/python/ceph/tests/test_ceph.py [deleted file]
src/test/python/ceph/tox.ini [deleted file]

diff --git a/src/test/python/.gitignore b/src/test/python/.gitignore
deleted file mode 100644 (file)
index f24cd99..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-*.py[co]
-
-# Packages
-*.egg
-*.egg-info
-dist
-build
-eggs
-parts
-bin
-var
-sdist
-develop-eggs
-.installed.cfg
-
-# Installer logs
-pip-log.txt
-
-# Unit test / coverage reports
-.coverage
-.tox
-
-#Translations
-*.mo
-
-#Mr Developer
-.mr.developer.cfg
diff --git a/src/test/python/ceph/.gitignore b/src/test/python/ceph/.gitignore
deleted file mode 100644 (file)
index 88c7fe6..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-# this is a generated file used for testing and symlinked and should be ignored
-# as paths are absolute to the test machine
-ceph.py
diff --git a/src/test/python/ceph/setup.py b/src/test/python/ceph/setup.py
deleted file mode 100644 (file)
index 90dbb59..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-import os
-from setuptools import setup, find_packages
-
-# link ceph script here so we can "install" it
-current_dir = os.path.abspath(os.path.dirname(__file__))
-src_dir = os.path.dirname(os.path.dirname(os.path.dirname(current_dir)))
-script_path = os.path.join(src_dir, 'ceph.in')
-
-
-def link_target(source, destination):
-    if not os.path.exists(destination):
-        try:
-            os.symlink(source, destination)
-        except (IOError, OSError) as error:
-            print('Ignoring linking of target: %s' % str(error))
-
-link_target(script_path, 'ceph.py')
-
-setup(
-    name='ceph',
-    version='0.1',
-    description='',
-    author='',
-    author_email='',
-    zip_safe=False,
-    packages=find_packages(),
-)
diff --git a/src/test/python/ceph/tests/test_ceph.py b/src/test/python/ceph/tests/test_ceph.py
deleted file mode 100644 (file)
index d26493e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-import ceph
-
-# This file tests nothing (yet) except for being able to import ceph
-# correctly and thus ensuring somewhat that it will work under different Python
-# versions. You must write unittests here so that code has adequate coverage.
-
-class TestCeph(object):
-
-    def test_basic(self):
-        assert True
diff --git a/src/test/python/ceph/tox.ini b/src/test/python/ceph/tox.ini
deleted file mode 100644 (file)
index 6f28f57..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-[tox]
-envlist = py26, py27, flake8
-skipsdist=True
-
-[testenv]
-deps=
-  pytest
-setenv =
-    PYTHONPATH = {toxinidir}/../../../pybind
-
-commands=
-  python setup.py develop
-  py.test -v
-
-[testenv:flake8]
-deps=
-  flake8
-commands=flake8 --select=F ceph.py