Skip to content

Commit

Permalink
DAOS-6753 test: Reenable skipped test: delete_objects.py (#5171) (#5389)
Browse files Browse the repository at this point in the history
Reenable skipped test: delete_objects.py

Signed-off-by: Maureen Jean <maureen.jean@intel.com>
  • Loading branch information
mjean308 authored Apr 12, 2021
1 parent 6fbd471 commit 6c91996
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
20 changes: 6 additions & 14 deletions src/tests/ftest/rebuild/delete_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ class RebuildDeleteObjects(RebuildTestBase):
:avocado: recursive
"""

CANCEL_FOR_TICKET = [
[
"DAOS-6751",
"test_method_name", "test_rebuild_delete_records",
"record_qty", 1
],
[
"DAOS-6865",
"rank", 4
],
]

def __init__(self, *args, **kwargs):
"""Initialize a RebuildDeleteObjects object."""
super().__init__(*args, **kwargs)
Expand Down Expand Up @@ -90,7 +78,9 @@ def test_rebuild_delete_objects(self):
Use Cases:
foo
:avocado: tags=all,large,full_regression,rebuild,rebuilddeleteobject
:avocado: tags=all,full_regression
:avocado: tags=large
:avocado: tags=rebuild,delete_objects,rebuilddeleteobject
"""
self.punch_type = "object"
self.execute_rebuild_test()
Expand All @@ -107,7 +97,9 @@ def test_rebuild_delete_records(self):
Use Cases:
foo
:avocado: tags=all,large,full_regression,rebuild,rebuilddeleterecord
:avocado: tags=all,full_regression
:avocado: tags=large
:avocado: tags=rebuild,delete_objects,rebuilddeleterecord
"""
self.punch_type = "record"
self.execute_rebuild_test()
1 change: 1 addition & 0 deletions src/tests/ftest/util/rebuild_test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@


class RebuildTestParams(ObjectWithParameters):
# pylint: disable=too-few-public-methods
"""Class for gathering test parameters."""

def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion src/tests/ftest/util/test_utils_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def read_object(self, container, txn=None):
status = False
continue

expect = "" if record_info["punched"] else record_info["data"]
expect = b"" if record_info["punched"] else record_info["data"]
if actual != expect:
self.log.error(
" Error data mismatch (akey=%s, dkey=%s, punched=%s): "
Expand Down

0 comments on commit 6c91996

Please sign in to comment.