terascope / teraslice

Scalable data processing pipelines in JavaScript
https://terascope.github.io/teraslice/
Apache License 2.0
50 stars 13 forks source link

Fix e2e s3 asset test that could never fail #3585

Closed busma13 closed 3 months ago

busma13 commented 3 months ago

Fix an e2e test that double checks that in s3 asset storage mode the asset is not stored in elasticsearch under the blob key. I was using teraslice.assets.list() which returns asset metadata from ES, but never returns the blob key, so the test would always pass. The function now uses the elasticsearch client within the test harness to get the complete records for each asset.