diff --git a/packaging/resource_suite_s3_nocache.py b/packaging/resource_suite_s3_nocache.py index a6a1062..0d52814 100644 --- a/packaging/resource_suite_s3_nocache.py +++ b/packaging/resource_suite_s3_nocache.py @@ -2940,6 +2940,10 @@ def test_resource_updated_from_consistent_to_decoupled(self): # update the resource to detached mode self.admin.run_icommand(f'iadmin modresc {resource_name} context {s3_context_decoupled}') + # get and verify the file contents + self.user1.assert_icommand(f'iget -f {file1} {retrieved_file}') + self.assertTrue(filecmp.cmp(file1, retrieved_file)) # confirm retrieved is correct with file2 + # overwrite file1 with file2 self.user1.assert_icommand(f'iput -f -R {resource_name} {file2} {file1}') @@ -2995,6 +2999,10 @@ def test_resource_updated_from_decoupled_to_consistent(self): # update the resource to detached mode self.admin.run_icommand(f'iadmin modresc {resource_name} context {s3_context_consistent}') + # get and verify the file contents + self.user1.assert_icommand(f'iget -f {file1} {retrieved_file}') + self.assertTrue(filecmp.cmp(file1, retrieved_file)) # confirm retrieved is correct with file2 + # overwrite file1 with file2 self.user1.assert_icommand(f'iput -f -R {resource_name} {file2} {file1}')