File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
tests/SourceFlow.Cloud.AWS.Tests/Integration Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -208,11 +208,7 @@ public async Task MessageAttributes_ShouldSupportAllDataTypes()
208208 DataType = "String" ,
209209 StringValue = "Test string value with unicode: 你好世界"
210210 } ,
211- [ "EmptyString" ] = new MessageAttributeValue
212- {
213- DataType = "String" ,
214- StringValue = ""
215- } ,
211+ // Note: SQS rejects empty string attribute values — omitting EmptyString test
216212 [ "ShortString" ] = new MessageAttributeValue
217213 {
218214 DataType = "String" ,
@@ -282,12 +278,7 @@ public async Task MessageAttributes_ShouldSupportAllDataTypes()
282278 // Verify string attributes
283279 Assert . Equal ( "String" , message . MessageAttributes [ "StringAttribute" ] . DataType ) ;
284280 Assert . Equal ( "Test string value with unicode: 你好世界" , message . MessageAttributes [ "StringAttribute" ] . StringValue ) ;
285- // Empty string attributes may be stripped by some SQS implementations (including LocalStack)
286- if ( message . MessageAttributes . ContainsKey ( "EmptyString" ) )
287- {
288- Assert . Equal ( "String" , message . MessageAttributes [ "EmptyString" ] . DataType ) ;
289- Assert . Equal ( "" , message . MessageAttributes [ "EmptyString" ] . StringValue ) ;
290- }
281+ // Note: SQS rejects empty string attribute values, so EmptyString is not tested here
291282
292283 // Verify number attributes
293284 Assert . Equal ( "Number" , message . MessageAttributes [ "IntegerAttribute" ] . DataType ) ;
You can’t perform that action at this time.
0 commit comments