Update ETag implementation to work with ReadableStream
Removed "filter" around binary files, will now work with any file: types
Add test cases to cover etag hits and misses
TODO
[x] Fix spec failing for missing content length
1) Develop Greenwood With:
Default Greenwood Configuration and Workspace
Develop command with generic video container format (.mp4) behavior
should return the correct content length:
AssertionError: expected undefined to equal '2498461'
at Context. (file:///Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/packages/cli/test/cases/develop.default/develop.default.spec.js:911:55)
at process.processImmediate (node:internal/timers:471:21)
2) Develop Greenwood With:
Default Greenwood Configuration and Workspace
Develop command with audio format (.mp3) behavior
should return the correct content length:
AssertionError: expected undefined to equal '5425061'
at Context. (file:///Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/packages/cli/test/cases/develop.default/develop.default.spec.js:950:55)
at process.processImmediate (node:internal/timers:471:21)
[x] Add test case for etag header
[x] Finalize testing / clean up consoles and comments
Related Issue
resolves #1108
https://github.com/ProjectEvergreen/greenwood/assets/895923/24c2361e-4c53-4d24-a195-416036699f5d
Summary of Changes
ReadableStream
file:
typesTODO
[x] Fix spec failing for missing content length