File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed
src/InformaticsGateway/Services/Storage
tests/Integration.Test/StepDefinitions Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,7 @@ await Policy
214
214
} )
215
215
. ExecuteAsync ( async ( ) =>
216
216
{
217
+ storageObjectMetadata . Data . Seek ( 0 , System . IO . SeekOrigin . Begin ) ;
217
218
await _storageService . PutObjectAsync (
218
219
_configuration . Value . Storage . TemporaryStorageBucket ,
219
220
storageObjectMetadata . GetTempStoragPath ( _configuration . Value . Storage . TemporaryStorageRootPath ) ,
Original file line number Diff line number Diff line change @@ -213,9 +213,6 @@ public async Task ThenMessageAreUploadedToStorageService()
213
213
foreach ( var file in request . Payload )
214
214
{
215
215
_outputHelper . WriteLine ( $ "Verifying file => { request . PayloadId } /{ file . Path } ...") ;
216
- var retryCount = 0 ;
217
- var matchFound = false ;
218
- RetryVerifyFileUpload :
219
216
var getObjectArgs = new GetObjectArgs ( )
220
217
. WithBucket ( request . Bucket )
221
218
. WithObject ( $ "{ request . PayloadId } /{ file . Path } ")
@@ -227,24 +224,9 @@ public async Task ThenMessageAreUploadedToStorageService()
227
224
var data = Encoding . UTF8 . GetString ( memoryStream . ToArray ( ) ) ;
228
225
229
226
var hl7Message = new HL7 . Dotnetcore . Message ( data ) ;
230
- hl7Message . ParseMessage ( ) ;
231
-
232
- foreach ( var key in _input . Keys )
233
- {
234
- if ( hl7Message . SerializeMessage ( true ) . Equals ( _input [ key ] . SerializeMessage ( true ) ) )
235
- {
236
- matchFound = true ;
237
- break ;
238
- }
239
- }
240
-
227
+ hl7Message . ParseMessage ( ) . Should ( ) . BeTrue ( ) ;
241
228
} ) ;
242
229
await minioClient . GetObjectAsync ( getObjectArgs ) ;
243
- if ( retryCount ++ < 3 && ! matchFound )
244
- {
245
- goto RetryVerifyFileUpload ;
246
- }
247
- matchFound . Should ( ) . BeTrue ( ) ;
248
230
}
249
231
}
250
232
}
You can’t perform that action at this time.
0 commit comments