Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAOS-6753 test: Reenable skipped test: delete_objects.py #5171

Merged
merged 13 commits into from
Apr 9, 2021
18 changes: 4 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,8 @@ def test_rebuild_delete_objects(self):
Use Cases:
foo

:avocado: tags=all,large,full_regression,rebuild,rebuilddeleteobject
:avocado: tags=all,hw,large,full_regression
:avocado: tags=rebuild,rebuilddeleteobject
"""
self.punch_type = "object"
self.execute_rebuild_test()
Expand All @@ -107,7 +96,8 @@ def test_rebuild_delete_records(self):
Use Cases:
foo

:avocado: tags=all,large,full_regression,rebuild,rebuilddeleterecord
:avocado: tags=all,hw,large,full_regression
:avocado: tags=rebuild,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