Commit Graph
3 Commits
Author SHA1 Message Date
Chris Lu 7dfa361e6e testutil: pick dynamic metrics port to avoid bind conflicts in tests 2025-12-24 20:06:08 -08:00
Chris Lu ef1d703054 Complete S3 integration test modernization
- Implement TestMain-based auto server management for all 13 S3 test suites
- Fix import paths to use full module names instead of relative imports
- Update Makefiles to use correct build targets and binary detection
- Enhance testutil with improved binary discovery and credential handling
- Fix test session creation to use explicit AWS credentials
- Validate infrastructure with successful test execution
- Update documentation with implementation details and usage instructions

All S3 test suites now support:
- make test-with-server: Auto-managed server lifecycle
- make test-external: Use existing server (for CI/CD)
- Consistent build and dependency checking
- Proper error handling and logging
2025-12-24 19:42:30 -08:00
Chris Lu b8121e0fe4 refactor: modernize S3 integration tests to use weed mini
- Added testutil/server.go with shared server lifecycle management
- Created testutil/server_test.go for server management tests
- Added versioning/s3_test_main.go with automatic TestMain implementation
- Simplified versioning/Makefile to use weed mini for test automation
- Tests now auto-manage weed mini server via TestMain
- Support for USE_EXTERNAL_SERVER=true to run against existing server
- Significant reduction in test infrastructure complexity
- All tests passing with weed mini
2025-12-24 19:20:17 -08:00