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
This commit is contained in:
Chris Lu
2025-12-24 19:35:28 -08:00
parent ee0e08a32d
commit d762f8d58e
13 changed files with 34 additions and 34 deletions
+5 -5
View File
@@ -1,14 +1,14 @@
package acl
import (
"fmt"
"os"
"testing"
"fmt"
"os"
"testing"
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
"../testutil"
)
var testServer *testutil.TestServer
var testServer *testutil.Server
// TestMain sets up and tears down the test environment using weed mini
func TestMain(m *testing.M) {
+5 -5
View File
@@ -1,14 +1,14 @@
package basic
import (
"fmt"
"os"
"testing"
"fmt"
"os"
"testing"
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
"../testutil"
)
var testServer *testutil.TestServer
var testServer *testutil.Server
// TestMain sets up and tears down the test environment using weed mini
func TestMain(m *testing.M) {
+2 -2
View File
@@ -5,10 +5,10 @@ import (
"os"
"testing"
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
"../testutil"
)
var testServer *testutil.TestServer
var testServer *testutil.Server
// TestMain sets up and tears down the test environment using weed mini
func TestMain(m *testing.M) {
+2 -2
View File
@@ -5,10 +5,10 @@ import (
"os"
"testing"
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
"../testutil"
)
var testServer *testutil.TestServer
var testServer *testutil.Server
// TestMain sets up and tears down the test environment using weed mini
func TestMain(m *testing.M) {
+2 -2
View File
@@ -5,10 +5,10 @@ import (
"os"
"testing"
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
"../testutil"
)
var testServer *testutil.TestServer
var testServer *testutil.Server
// TestMain sets up and tears down the test environment using weed mini
func TestMain(m *testing.M) {
+2 -2
View File
@@ -5,10 +5,10 @@ import (
"os"
"testing"
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
"../testutil"
)
var testServer *testutil.TestServer
var testServer *testutil.Server
// TestMain sets up and tears down the test environment using weed mini
func TestMain(m *testing.M) {
+2 -2
View File
@@ -5,10 +5,10 @@ import (
"os"
"testing"
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
"../testutil"
)
var testServer *testutil.TestServer
var testServer *testutil.Server
// TestMain sets up and tears down the test environment using weed mini
func TestMain(m *testing.M) {
+5 -5
View File
@@ -1,14 +1,14 @@
package iam
import (
"fmt"
"os"
"testing"
"fmt"
"os"
"testing"
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
"../testutil"
)
var testServer *testutil.TestServer
var testServer *testutil.Server
// TestMain sets up and tears down the test environment using weed mini
func TestMain(m *testing.M) {
+2 -2
View File
@@ -5,10 +5,10 @@ import (
"os"
"testing"
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
"../testutil"
)
var testServer *testutil.TestServer
var testServer *testutil.Server
// TestMain sets up and tears down the test environment using weed mini
func TestMain(m *testing.M) {
+2 -2
View File
@@ -5,10 +5,10 @@ import (
"os"
"testing"
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
"../testutil"
)
var testServer *testutil.TestServer
var testServer *testutil.Server
// TestMain sets up and tears down the test environment using weed mini
func TestMain(m *testing.M) {
+2 -2
View File
@@ -5,10 +5,10 @@ import (
"os"
"testing"
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
"../testutil"
)
var testServer *testutil.TestServer
var testServer *testutil.Server
// TestMain sets up and tears down the test environment using weed mini
func TestMain(m *testing.M) {
+2 -2
View File
@@ -5,10 +5,10 @@ import (
"os"
"testing"
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
"../testutil"
)
var testServer *testutil.TestServer
var testServer *testutil.Server
// TestMain sets up and tears down the test environment using weed mini
func TestMain(m *testing.M) {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"os"
"testing"
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
"../testutil"
)
var testServer *testutil.TestServer