|
|
|
@ -14,14 +14,9 @@ func TestSeaweedMQIntegration_E2E(t *testing.T) { |
|
|
|
// Skip by default - requires real SeaweedMQ setup
|
|
|
|
t.Skip("Integration test requires real SeaweedMQ setup - run manually") |
|
|
|
|
|
|
|
// Test configuration
|
|
|
|
agentAddress := "localhost:17777" // Default SeaweedMQ Agent address
|
|
|
|
|
|
|
|
// Start the gateway with SeaweedMQ backend
|
|
|
|
gatewayServer := gateway.NewServer(gateway.Options{ |
|
|
|
Listen: ":0", // random port
|
|
|
|
AgentAddress: agentAddress, |
|
|
|
UseSeaweedMQ: true, |
|
|
|
}) |
|
|
|
|
|
|
|
err := gatewayServer.Start() |
|
|
|
@ -242,7 +237,6 @@ func TestSeaweedMQGateway_ModeSelection(t *testing.T) { |
|
|
|
t.Run("InMemoryMode", func(t *testing.T) { |
|
|
|
server := gateway.NewServer(gateway.Options{ |
|
|
|
Listen: ":0", |
|
|
|
UseSeaweedMQ: false, |
|
|
|
}) |
|
|
|
|
|
|
|
err := server.Start() |
|
|
|
@ -263,8 +257,6 @@ func TestSeaweedMQGateway_ModeSelection(t *testing.T) { |
|
|
|
t.Run("SeaweedMQModeFallback", func(t *testing.T) { |
|
|
|
server := gateway.NewServer(gateway.Options{ |
|
|
|
Listen: ":0", |
|
|
|
AgentAddress: "invalid:99999", // Invalid address
|
|
|
|
UseSeaweedMQ: true, |
|
|
|
}) |
|
|
|
|
|
|
|
err := server.Start() |
|
|
|
@ -293,7 +285,6 @@ func TestSeaweedMQGateway_ConfigValidation(t *testing.T) { |
|
|
|
name: "ValidInMemory", |
|
|
|
options: gateway.Options{ |
|
|
|
Listen: ":0", |
|
|
|
UseSeaweedMQ: false, |
|
|
|
}, |
|
|
|
shouldWork: true, |
|
|
|
}, |
|
|
|
@ -301,8 +292,6 @@ func TestSeaweedMQGateway_ConfigValidation(t *testing.T) { |
|
|
|
name: "ValidSeaweedMQWithAgent", |
|
|
|
options: gateway.Options{ |
|
|
|
Listen: ":0", |
|
|
|
AgentAddress: "localhost:17777", |
|
|
|
UseSeaweedMQ: true, |
|
|
|
}, |
|
|
|
shouldWork: true, // May fail if no agent, but config is valid
|
|
|
|
}, |
|
|
|
@ -310,8 +299,6 @@ func TestSeaweedMQGateway_ConfigValidation(t *testing.T) { |
|
|
|
name: "SeaweedMQWithoutAgent", |
|
|
|
options: gateway.Options{ |
|
|
|
Listen: ":0", |
|
|
|
UseSeaweedMQ: true, |
|
|
|
// AgentAddress is empty
|
|
|
|
}, |
|
|
|
shouldWork: true, // Should fall back to in-memory
|
|
|
|
}, |
|
|
|
|