log = logging.getLogger(__name__)
-def long_running(f):
+def for_teuthology(f):
"""
- Decorator that adds an "is_long_running" attribute to the wrapped function
+ Decorator that adds an "is_for_teuthology" attribute to the wrapped function
"""
- f.is_long_running = True
+ f.is_for_teuthology = True
return f
from textwrap import dedent
from unittest import SkipTest
from tasks.cephfs.fuse_mount import FuseMount
-from tasks.cephfs.cephfs_test_case import CephFSTestCase, long_running
+from tasks.cephfs.cephfs_test_case import CephFSTestCase, for_teuthology
class TestCapFlush(CephFSTestCase):
- @long_running
+ @for_teuthology
def test_replay_create(self):
"""
MDS starts to handle client caps when it enters clientreplay stage.
from teuthology.contextutil import MaxWhileTries
from teuthology.exceptions import CommandFailedError
from teuthology.orchestra.run import wait
-from tasks.cephfs.cephfs_test_case import CephFSTestCase, long_running
+from tasks.cephfs.cephfs_test_case import CephFSTestCase, for_teuthology
DAMAGED_ON_START = "damaged_on_start"
DAMAGED_ON_LS = "damaged_on_ls"
mds_map = self.fs.get_mds_map()
return rank in mds_map['damaged']
- @long_running #459s
+ @for_teuthology #459s
def test_object_deletion(self):
"""
That the MDS has a clean 'damaged' response to loss of any single metadata object
from collections import namedtuple
from teuthology.orchestra.run import CommandFailedError
-from tasks.cephfs.cephfs_test_case import CephFSTestCase, long_running
+from tasks.cephfs.cephfs_test_case import CephFSTestCase, for_teuthology
log = logging.getLogger(__name__)
keys = self._dirfrag_keys(frag_obj_id)
self.assertListEqual(sorted(keys), sorted(["%s_head" % f for f in file_names]))
- @long_running
+ @for_teuthology
def test_parallel_execution(self):
self._rebuild_metadata(ManyFilesWorkload(self.fs, self.mount_a, 25), workers=7)
from teuthology.orchestra.run import CommandFailedError
from tasks.cephfs.filesystem import ObjectNotFound, ROOT_INO
-from tasks.cephfs.cephfs_test_case import CephFSTestCase, long_running
+from tasks.cephfs.cephfs_test_case import CephFSTestCase, for_teuthology
from tasks.workunit import task as workunit
log = logging.getLogger(__name__)
# Check that we can do metadata ops in the recovered directory
self.mount_a.run_shell(["touch", "subdir/subsubdir/subsubdirfile"])
- @long_running # 308s
+ @for_teuthology # 308s
def test_reset(self):
"""
That after forcibly modifying the backing store, we can get back into
"result": 0}}
)
- @long_running # Hack: "long running" because .sh doesn't work outside teuth
+ @for_teuthology # Hack: "for_teuthology" because .sh doesn't work outside teuth
def test_journal_smoke(self):
workunit(self.ctx, {
'clients': {
from textwrap import dedent
import gevent
from teuthology.orchestra.run import CommandFailedError
-from tasks.cephfs.cephfs_test_case import CephFSTestCase, long_running
+from tasks.cephfs.cephfs_test_case import CephFSTestCase, for_teuthology
log = logging.getLogger(__name__)
# Range of different file sizes used in throttle test's workload
throttle_workload_size_range = 16
- @long_running
+ @for_teuthology
def test_ops_throttle(self):
self._test_throttling(self.OPS_THROTTLE)
- @long_running
+ @for_teuthology
def test_files_throttle(self):
self._test_throttling(self.FILES_THROTTLE)
drop_test = False
- if hasattr(fn, 'is_long_running') and getattr(fn, 'is_long_running') is True:
+ if hasattr(fn, 'is_for_teuthology') and getattr(fn, 'is_for_teuthology') is True:
drop_test = True
log.warn("Dropping test because long running: ".format(method.id()))
if not is_named:
victims.append((case, method))
- log.info("Disabling {0} tests because of is_long_running or needs_trimming".format(len(victims)))
+ log.info("Disabling {0} tests because of is_for_teuthology or needs_trimming".format(len(victims)))
for s, method in victims:
s._tests.remove(method)