Skip to content

feat: wire up insecure TLS option for S3 client #43

feat: wire up insecure TLS option for S3 client

feat: wire up insecure TLS option for S3 client #43

Workflow file for this run

name: Integration Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch: # Allow manual triggering
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
integration:
name: Integration Tests
runs-on: ubuntu-latest
# Don't block PR merges - integration tests are supplementary
continue-on-error: true
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Start RustFS
run: |
docker run -d --name rustfs \
-p 9000:9000 \
-p 9001:9001 \
-v rustfs-data:/data \
-e RUSTFS_ROOT_USER=accesskey \
-e RUSTFS_ROOT_PASSWORD=secretkey \
-e RUSTFS_ACCESS_KEY=accesskey \
-e RUSTFS_SECRET_KEY=secretkey \
-e RUSTFS_VOLUMES=/data \
-e RUSTFS_ADDRESS=":9000" \
-e RUSTFS_CONSOLE_ENABLE="true" \
-e RUSTFS_CONSOLE_ADDRESS=":9001" \
rustfs/rustfs:1.0.0-alpha.81
- name: Wait for RustFS
run: |
echo "Waiting for RustFS to start..."
sleep 3
for i in {1..30}; do
# Try health endpoint
if curl -sf http://localhost:9000/health > /dev/null 2>&1; then
echo "RustFS is ready!"
exit 0
fi
echo "Waiting for RustFS... ($i/30)"
sleep 2
done
echo "RustFS failed to start"
docker logs rustfs
exit 1
- name: Run integration tests
run: cargo test --package rustfs-cli --test integration --features integration -- --test-threads=1
env:
TEST_S3_ENDPOINT: http://localhost:9000
TEST_S3_ACCESS_KEY: accesskey
TEST_S3_SECRET_KEY: secretkey
- name: Show RustFS logs on failure
if: failure()
run: docker logs rustfs 2>&1 | tail -100
golden:
name: Golden Tests
runs-on: ubuntu-latest
# Don't block PR merges
continue-on-error: true
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Run golden tests
run: cargo test --package rustfs-cli --test golden --features golden
env:
# Golden tests use isolated config dir, no real S3 needed for alias tests
RC_CONFIG_DIR: ${{ runner.temp }}/rc-test-config