Skip to content

Commit

Permalink
[2161] Modified test case to verify a get immediately after changing …
Browse files Browse the repository at this point in the history
…naming scheme
  • Loading branch information
JustinKyleJames committed Jan 9, 2024
1 parent 3892dc2 commit 77e53d0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packaging/resource_suite_s3_nocache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')

Expand Down Expand Up @@ -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}')

Expand Down

0 comments on commit 77e53d0

Please sign in to comment.