Skip to content

Commit

Permalink
DAOS-6869 tests: Fix large_file_count.py in weekly run (#4744) (#4783)
Browse files Browse the repository at this point in the history
Fix large_file_count.py in weekly run

Signed-off-by: Saurabh Tandan <saurabh.tandan@intel.com>
  • Loading branch information
saurabhtandan authored Mar 4, 2021
1 parent 91243cf commit a79d7c2
Showing 1 changed file with 25 additions and 15 deletions.
40 changes: 25 additions & 15 deletions src/tests/ftest/io/large_file_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import write_host_file

# pylint: disable=attribute-defined-outside-init
class LargeFileCount(MdtestBase, IorTestBase):
"""Test class Description: Runs IOR and MDTEST to create large number
of files.
Expand All @@ -26,14 +27,27 @@ def single_client(self, api):
self.hostlist_clients, self.workdir,
self.hostfile_clients_slots)

def create_cont(self, oclass):
"""Override container create method
Args:
oclass(str): Object class type
"""
# create container
self.container = self.get_container(self.pool, create=False)
self.container.oclass.update(oclass)
self.container.create()

def test_largefilecount(self):
"""Jira ID: DAOS-3845.
Test Description:
Run IOR and MDTEST with 48 clients.
Use Cases:
Run IOR for 5 mints with DFS and POSIX
Run MDTEST to create 25K files with DFS and POSIX
:avocado: tags=all,daosio,hw,large,full_regression,largefilecount
:avocado: tags=all,daosio,full_regression
:avocado: tags=hw,large
:avocado: tags=largefilecount
"""
apis = self.params.get("api", "/run/largefilecount/*")
object_class = self.params.get("object_class", '/run/largefilecount/*')
Expand All @@ -54,15 +68,13 @@ def test_largefilecount(self):
# with single client node
self.single_client(api)

# create container
self.container = self.get_container(self.pool, create=False)
self.container.oclass.update(oclass)
self.container.create()
# create container for mdtest
self.create_cont(oclass)
# run mdtest and ior
self.execute_mdtest()
# container destroy
self.container.destroy()
self.update_ior_cmd_with_pool(oclass=oclass)
# create container for ior
self.create_cont(oclass)
self.update_ior_cmd_with_pool(False)
self.run_ior_with_pool(create_pool=False)
# container destroy
self.container.destroy()
Expand Down Expand Up @@ -99,15 +111,13 @@ def test_largefilecount_rc(self):
# with single client node
self.single_client(api)

# create container
self.container = self.get_container(self.pool, create=False)
self.container.oclass.update(oclass)
self.container.create()
# create container for mdtest
self.create_cont(oclass)
# run mdtest and ior
self.execute_mdtest()
# container destroy
self.container.destroy()
self.update_ior_cmd_with_pool(oclass=oclass)
# create container for ior
self.create_cont(oclass)
self.update_ior_cmd_with_pool(False)
self.run_ior_with_pool(create_pool=False)
# container destroy
self.container.destroy()

0 comments on commit a79d7c2

Please sign in to comment.