2121DEFAULT_REPLICATION_RESULT = dict (
2222 source_replication_status = None ,
2323 source_has_hide_marker = False ,
24- source_has_sse_c_enabled = False ,
24+ source_encryption_mode = EncryptionMode . NONE ,
2525 source_has_large_metadata = False ,
2626 source_has_file_retention = False ,
2727 source_has_legal_hold = False ,
@@ -60,7 +60,8 @@ def test_iter_pairs(source_bucket, destination_bucket, test_file, monitor):
6060def test_scan_source (source_bucket , test_file , monitor ):
6161 # upload various types of files to source and get a report
6262 files = [
63- source_bucket .upload_local_file (test_file , 'folder/test-1.txt' ),
63+ source_bucket .upload_local_file (test_file , 'folder/test-1-1.txt' ),
64+ source_bucket .upload_local_file (test_file , 'folder/test-1-2.txt' ),
6465 source_bucket .upload_local_file (test_file , 'folder/test-2.txt' , encryption = SSE_B2_AES ),
6566 source_bucket .upload_local_file (test_file ,
6667 'not-in-folder.txt' ), # monitor should ignore this
@@ -95,14 +96,21 @@ def test_scan_source(source_bucket, test_file, monitor):
9596 assert report .counter_by_status [ReplicationScanResult (
9697 ** {
9798 ** DEFAULT_REPLICATION_RESULT ,
98- 'source_has_sse_c_enabled' : True ,
99+ 'source_encryption_mode' : EncryptionMode .SSE_B2 ,
100+ }
101+ )] == 1
102+
103+ assert report .counter_by_status [ReplicationScanResult (
104+ ** {
105+ ** DEFAULT_REPLICATION_RESULT ,
106+ 'source_encryption_mode' : EncryptionMode .SSE_C ,
99107 }
100108 )] == 2
101109
102110 assert report .counter_by_status [ReplicationScanResult (
103111 ** {
104112 ** DEFAULT_REPLICATION_RESULT ,
105- 'source_has_sse_c_enabled ' : True ,
113+ 'source_encryption_mode ' : EncryptionMode . SSE_C ,
106114 'source_has_file_retention' : True ,
107115 }
108116 )] == 1
@@ -117,7 +125,7 @@ def test_scan_source(source_bucket, test_file, monitor):
117125 assert report .counter_by_status [ReplicationScanResult (
118126 ** {
119127 ** DEFAULT_REPLICATION_RESULT ,
120- 'source_has_sse_c_enabled ' : True ,
128+ 'source_encryption_mode ' : EncryptionMode . SSE_C ,
121129 'source_has_large_metadata' : True ,
122130 }
123131 )] == 1
@@ -187,7 +195,7 @@ def test_scan_source_and_destination(
187195 ** DEFAULT_REPLICATION_RESULT ,
188196 'source_replication_status' : None ,
189197 'source_has_hide_marker' : None ,
190- 'source_has_sse_c_enabled ' : None ,
198+ 'source_encryption_mode ' : None ,
191199 'source_has_large_metadata' : None ,
192200 'source_has_file_retention' : None ,
193201 'source_has_legal_hold' : None ,
0 commit comments