Tests needing fixing for recent minio
Also:
- set minimum tested version to 8.10
- remove building with cabal 3.6
- update stack.yaml to add crypton-connection
Update live server test env var handling
This change adds support for requesting temporary object storage
credentials using the STS API. Some breaking changes are introduced to
enable this support:
- `Credentials` type has been removed. Use the `CredentialValue` type
instead. Corresponding to this the type signature for `setCreds` has
changed, though the functionality is the same.
- The type alias `Provider` has been renamed to `CredentialLoader` to
avoid naming confusion.
This exports a new module for retrieving STS based credentials, however
they are not yet convenient to use in the library - the session token
needs to be included as a custom header and may not be possible with all
APIs.
This turns on the GHC option `-Werror` to ensure that warnings fail the
build in dev mode. The flag is enabled in the CI.
README is updated with cabal based instructions.
- Also update standard S3 endpoints
- Unify code that determines if path style or virtual style must be used for
regular and presigned requests
Fixes#160
* CI: Add support for GHC 8.10, stack and live-server testing
* Fix live-server tests for all platforms
* Fix windows tests
* Fix resourcet cleanup exceptions
* Mark minio-hs builds GHC 8.4, 8.8 on windows experimental
* Use minio with erasure code backend for tests
* Fix matrix combinations for cabal and stack
Co-authored-by: Krishnan Parthasarathi <kp@minio.io>
It appeared that some s3 servers (Yandex storage in particular)
honour `Accept-Encoding: gzip` request headeer. In such a case
servers can't send `Content-Length` header as transfer size differ
from the body size.
The simplest solution for this problem is to force http-client
to send `Accept-Encoding: identity` header in the HeadObject
request.
Co-authored-by: Aditya Manthramurthy <donatello@users.noreply.github.com>
* Disable live-server tests by default
- They will always be run by our CI
- Also update and fix example in README.
* Update examples and add them to build
- Also drop support for GHC 8.2.2
* Bump up version for new release
* Fix to build with GHC 8.8 and fix error handling bug
To work with the addition of MonadFail constraint to parseTimeM in the time
library, the underlying monad was changed from Either to Maybe as it has a
MonadFail instance.
* Update build to run tests against local minio server