From 1d445110dba6681afc47ff3ea44157667e5fd9ca Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 31 Jul 2019 14:25:21 +0800 Subject: [PATCH] test/python: remove test for brag/client ceph-brag is now take replaced by telemetry. and it was removed in cf97b5c1 . so no need to keep its test. Signed-off-by: Kefu Chai --- src/test/python/brag-client/.gitignore | 1 - src/test/python/brag-client/setup.py | 31 ------------------- .../brag-client/tests/test_ceph_brag.py | 10 ------ src/test/python/brag-client/tox.ini | 16 ---------- 4 files changed, 58 deletions(-) delete mode 100644 src/test/python/brag-client/.gitignore delete mode 100644 src/test/python/brag-client/setup.py delete mode 100644 src/test/python/brag-client/tests/test_ceph_brag.py delete mode 100644 src/test/python/brag-client/tox.ini diff --git a/src/test/python/brag-client/.gitignore b/src/test/python/brag-client/.gitignore deleted file mode 100644 index 18ca10aac1f..00000000000 --- a/src/test/python/brag-client/.gitignore +++ /dev/null @@ -1 +0,0 @@ -ceph_brag.py diff --git a/src/test/python/brag-client/setup.py b/src/test/python/brag-client/setup.py deleted file mode 100644 index 7f2bc7a208c..00000000000 --- a/src/test/python/brag-client/setup.py +++ /dev/null @@ -1,31 +0,0 @@ -import os -from setuptools import setup, find_packages - -# link ceph-brag client 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, 'brag/client/ceph-brag') - - -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_brag.py') - -setup( - name='ceph_brag', - version='0.1', - description='', - author='', - author_email='', - install_requires=[ - "requests", - ], - zip_safe=False, - packages=find_packages(), - #packages=find_packages(exclude=['ez_setup']) -) diff --git a/src/test/python/brag-client/tests/test_ceph_brag.py b/src/test/python/brag-client/tests/test_ceph_brag.py deleted file mode 100644 index 2a584f5a7b6..00000000000 --- a/src/test/python/brag-client/tests/test_ceph_brag.py +++ /dev/null @@ -1,10 +0,0 @@ -import ceph_brag - -# This file tests nothing (yet) except for being able to import ceph_brag -# 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 TestCephBrag(object): - - def test_basic(self): - assert True diff --git a/src/test/python/brag-client/tox.ini b/src/test/python/brag-client/tox.ini deleted file mode 100644 index c94e0d2fa1c..00000000000 --- a/src/test/python/brag-client/tox.ini +++ /dev/null @@ -1,16 +0,0 @@ -[tox] -envlist = py26, py27, flake8 -skipsdist=True - -[testenv] -deps= - pytest - -commands= - python setup.py develop - py.test -v - -[testenv:flake8] -deps= - flake8 -commands=flake8 --select=F ceph_brag.py -- 2.39.5