Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

test(sandbox): drop TEST-NET DNS fixture from Cube tests

wizardchen6cc7a9e15bb1
diff --git a/internal/application/service/tenant_sandbox_config_test.go b/internal/application/service/tenant_sandbox_config_test.go
index 9bb3d4021..60fdb8aa4 100644
--- a/internal/application/service/tenant_sandbox_config_test.go
+++ b/internal/application/service/tenant_sandbox_config_test.go
@@ -118,7 +118,7 @@ func TestSandboxIdentityChanged(t *testing.T) {
old: cubeCfg("key-a", "https://cube.example.com", "https://proxy.example.com", "cube.app"),
new: func() *types.TenantSandboxConfig {
cfg := cubeCfg("key-a", "https://cube.example.com", "https://proxy.example.com", "cube.app")
- cfg.Cube.DNSServers = []string{"192.0.2.53"}
+ cfg.Cube.DNSServers = []string{"8.8.8.8"}
return cfg
}(),
want: false,
diff --git a/internal/sandbox/cube_template_catalog_test.go b/internal/sandbox/cube_template_catalog_test.go
index b523314a4..fd57596f0 100644
--- a/internal/sandbox/cube_template_catalog_test.go
+++ b/internal/sandbox/cube_template_catalog_test.go
@@ -424,7 +424,7 @@ func TestCubeRemoteClientReplaceStandardTemplateRebuildsInPlace(t *testing.T) {
http.NotFound(w, r)
}
})
- client.config.CubeDNSServers = []string{"192.0.2.53"}
+ client.config.CubeDNSServers = []string{"8.8.8.8"}
template, err := client.ReplaceStandardTemplate(context.Background())
require.NoError(t, err)
@@ -432,7 +432,7 @@ func TestCubeRemoteClientReplaceStandardTemplateRebuildsInPlace(t *testing.T) {
require.Equal(t, "building", template.Status)
require.Equal(t, int32(0), deleted.Load(), "in-place rebuild must keep the stored template ID")
require.Equal(t, int32(0), created.Load())
- require.Equal(t, []any{"192.0.2.53"}, payload["dns"])
+ require.Equal(t, []any{"8.8.8.8"}, payload["dns"])
require.Equal(t, true, payload["allowInternetAccess"])
}