mirror of
https://github.com/minio/minio-rs.git
synced 2025-12-06 15:26:51 +08:00
- Update all X-Amz-* headers to use capital letters after hyphens (e.g., X-Amz-Date) - Update standard HTTP headers to use proper case (e.g., If-Modified-Since) - Update X-Minio headers to follow same capitalization pattern - Aligns with AWS S3 API specification and HTTP standards
19 lines
691 B
PowerShell
19 lines
691 B
PowerShell
# Set environment variables to run tests on play.min.io
|
|
$Env:SERVER_ENDPOINT = "http://localhost:9000/"
|
|
$Env:ACCESS_KEY = if ($Env:MINIO_ROOT_USER) { $Env:MINIO_ROOT_USER } else { "minioadmin" }
|
|
$Env:SECRET_KEY = if ($Env:MINIO_ROOT_PASSWORD) { $Env:MINIO_ROOT_PASSWORD } else { "minioadmin" }
|
|
$Env:ENABLE_HTTPS = "false"
|
|
$Env:MINIO_SSL_CERT_FILE = "./tests/public.crt"
|
|
$Env:IGNORE_CERT_CHECK = "false"
|
|
$Env:SERVER_REGION = ""
|
|
|
|
# Run tests
|
|
cargo test -- --nocapture
|
|
|
|
# run one specific test and show stdout
|
|
# cargo test --test test_bucket_exists -- --nocapture
|
|
|
|
# run tests with ring instead of default-crypto
|
|
# cargo test --no-default-features --features "default-tls,ring" -- --nocapture
|
|
|