Commit Graph
7 Commits
Author SHA1 Message Date
Chris Lu 754fae92ec Normalize TestMain filenames: ensure s3_test_main_test.go used across S3 tests 2025-12-24 19:59:55 -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 d762f8d58e fix: use relative imports for testutil in all s3_test_main.go files
- Change imports from absolute module path 'github.com/seaweedfs/seaweedfs/test/s3/testutil'
  to relative path '../testutil'
- Fixes module resolution issues when running tests from individual directories
- All test directories now compile and load testutil correctly
- Enables tests to run with 'go test ./...' from any test subdirectory
2025-12-24 19:35:28 -08:00
Chris Lu ee0e08a32d refactor: add test-with-server targets to all S3 test directories
- Add test-with-server target to acl, basic, delete, etag Makefiles
- Simplify test-with-server to use TestMain-based server auto-management
- Update tagging, cors, filer_group, retention, remote_cache, sse Makefiles
- Add TEST_PATTERN support for CI/CD parameterized testing
- Remove complex manual server management from test-with-server
- All targets now delegate to TestMain for consistent, simplified server lifecycle
- Backward compatible with existing make targets for manual testing
2025-12-24 19:30:57 -08:00
Chris Lu 56f9b5b6ab feat: add weed mini TestMain support to all S3 integration tests
- Added s3_test_main.go with auto-managed weed mini server to:
  - acl, basic, copying, cors, delete, etag, filer_group, iam
  - remote_cache, retention, sse, tagging (12 additional test suites)
- All tests now support automatic server lifecycle management via TestMain
- Backward compatible with USE_EXTERNAL_SERVER=true for CI pipelines
- No changes required to existing test files
- All 13 S3 test suites now use consistent weed mini infrastructure

This enables:
- Tests to run independently with self-managed server
- Simplified CI/CD pipelines
- Reduced infrastructure complexity
- Consistent test infrastructure across all S3 tests
2025-12-24 19:25:11 -08:00
chrislu 4a764dbb37 fmt 2025-12-19 15:33:16 -08:00
Chris Lu 51c2ab0107 fix: admin UI bucket deletion with filer group configured (#7735) 2025-12-13 19:04:12 -08:00