Skip to content

Commit

Permalink
[#281] Add tier-out test for object with 'select' in name
Browse files Browse the repository at this point in the history
  • Loading branch information
alanking committed Jan 31, 2025
1 parent 6ace9f2 commit 9fe63fc
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion packaging/test_plugin_unified_storage_tiering.py
Original file line number Diff line number Diff line change
Expand Up @@ -2372,7 +2372,8 @@ def object_created_on_tiering_resource_tiers_out_test_impl(
invoke_storage_tiering_rule(admin_session)

# Wait until the object migrates to the next tier.
lib.delayAssert(lambda: lib.replica_exists_on_resource(admin_session, logical_path, self.tier0) == False)
lib.delayAssert(
lambda: lib.replica_exists_on_resource(admin_session, logical_path, self.tier0) == False)
lib.delayAssert(lambda: lib.replica_exists_on_resource(admin_session, logical_path, self.tier1))

# Ensure that nothing is scheduled in the delay queue. The tiering rule should have completed. If
Expand Down Expand Up @@ -2449,6 +2450,21 @@ def test_touch_created_data_tiers_out__issue_266(self):
self.object_created_on_tiering_resource_tiers_out_test_impl(
self.object_path, self.user1.assert_icommand, ["itouch", "-R", self.tier0, self.object_path], "STDOUT")

def test_data_object_with_select_in_name_tiers_out__issue_281(self):
data_name = "select"
logical_path = "/".join([self.user1.session_collection, data_name])
try:
self.object_created_on_tiering_resource_tiers_out_test_impl(
logical_path,
self.user1.assert_icommand,
["istream", "-R", self.tier0, "write", data_name],
"STDOUT",
input="tier this data")

finally:
self.user1.assert_icommand(["ils", "-L", logical_path], "STDOUT")
self.user1.run_icommand(["irm", "-f", logical_path])


class test_accessing_object_for_write_updates_access_time(unittest.TestCase):
@classmethod
Expand Down

0 comments on commit 9fe63fc

Please sign in to comment.