@@ -17,12 +17,12 @@ import (
1717 mcpv1alpha1 "github.com/stacklok/toolhive/cmd/thv-operator/api/v1alpha1"
1818)
1919
20- var _ = Describe ("VirtualMCPServer Inline Auth with Local Incoming" , Ordered , func () {
20+ var _ = Describe ("VirtualMCPServer Inline Auth with Anonymous Incoming" , Ordered , func () {
2121 var (
2222 testNamespace = "default"
23- mcpGroupName = "test-inline-auth-local -group"
24- vmcpServerName = "test-vmcp-inline-auth-local "
25- backend1Name = "backend-fetch-inline-local "
23+ mcpGroupName = "test-inline-auth-anon -group"
24+ vmcpServerName = "test-vmcp-inline-auth-anon "
25+ backend1Name = "backend-fetch-inline-anon "
2626 timeout = 5 * time .Minute
2727 pollingInterval = 5 * time .Second
2828 vmcpNodePort int32
@@ -40,7 +40,7 @@ var _ = Describe("VirtualMCPServer Inline Auth with Local Incoming", Ordered, fu
4040 Namespace : testNamespace ,
4141 },
4242 Spec : mcpv1alpha1.MCPGroupSpec {
43- Description : "Test MCP Group for VirtualMCP inline auth with local incoming" ,
43+ Description : "Test MCP Group for VirtualMCP inline auth with anonymous incoming" ,
4444 },
4545 }
4646 Expect (k8sClient .Create (ctx , mcpGroup )).To (Succeed ())
@@ -89,7 +89,7 @@ var _ = Describe("VirtualMCPServer Inline Auth with Local Incoming", Ordered, fu
8989 return fmt .Errorf ("backend not ready yet, phase: %s" , server .Status .Phase )
9090 }, timeout , pollingInterval ).Should (Succeed ())
9191
92- By ("Creating VirtualMCPServer with local incoming and inline outgoing auth" )
92+ By ("Creating VirtualMCPServer with anonymous incoming and inline outgoing auth" )
9393 vmcpServer := & mcpv1alpha1.VirtualMCPServer {
9494 ObjectMeta : metav1.ObjectMeta {
9595 Name : vmcpServerName ,
@@ -100,7 +100,7 @@ var _ = Describe("VirtualMCPServer Inline Auth with Local Incoming", Ordered, fu
100100 Name : mcpGroupName ,
101101 },
102102 IncomingAuth : & mcpv1alpha1.IncomingAuthConfig {
103- Type : "local " ,
103+ Type : "anonymous " ,
104104 },
105105 OutgoingAuth : & mcpv1alpha1.OutgoingAuthConfig {
106106 Source : "inline" ,
@@ -146,21 +146,21 @@ var _ = Describe("VirtualMCPServer Inline Auth with Local Incoming", Ordered, fu
146146 })
147147 })
148148
149- Context ("when using local incoming with inline outgoing auth" , func () {
150- It ("should configure inline outgoing auth with local incoming" , func () {
149+ Context ("when using anonymous incoming with inline outgoing auth" , func () {
150+ It ("should configure inline outgoing auth with anonymous incoming" , func () {
151151 By ("Verifying VirtualMCPServer has inline auth configuration" )
152152 vmcpServer := & mcpv1alpha1.VirtualMCPServer {}
153153 err := k8sClient .Get (ctx , types.NamespacedName {
154154 Name : vmcpServerName ,
155155 Namespace : testNamespace ,
156156 }, vmcpServer )
157157 Expect (err ).ToNot (HaveOccurred ())
158- Expect (vmcpServer .Spec .IncomingAuth .Type ).To (Equal ("local " ))
158+ Expect (vmcpServer .Spec .IncomingAuth .Type ).To (Equal ("anonymous " ))
159159 Expect (vmcpServer .Spec .OutgoingAuth .Source ).To (Equal ("inline" ))
160160 })
161161
162162 It ("should proxy tool calls with inline auth configuration" , func () {
163- By ("Creating MCP client with local auth" )
163+ By ("Creating MCP client with anonymous auth" )
164164 serverURL := fmt .Sprintf ("http://localhost:%d/mcp" , vmcpNodePort )
165165 mcpClient , err := client .NewStreamableHttpClient (serverURL )
166166 Expect (err ).ToNot (HaveOccurred ())
@@ -196,7 +196,7 @@ var _ = Describe("VirtualMCPServer Inline Auth with Local Incoming", Ordered, fu
196196 }
197197 Expect (targetToolName ).ToNot (BeEmpty ())
198198
199- GinkgoWriter .Printf ("Calling tool '%s' with local incoming and inline outgoing auth\n " , targetToolName )
199+ GinkgoWriter .Printf ("Calling tool '%s' with anonymous incoming and inline outgoing auth\n " , targetToolName )
200200
201201 callRequest := mcp.CallToolRequest {}
202202 callRequest .Params .Name = targetToolName
@@ -209,7 +209,7 @@ var _ = Describe("VirtualMCPServer Inline Auth with Local Incoming", Ordered, fu
209209 Expect (result ).ToNot (BeNil ())
210210 Expect (result .Content ).ToNot (BeEmpty ())
211211
212- GinkgoWriter .Printf ("Local auth with inline outgoing: tool call succeeded\n " )
212+ GinkgoWriter .Printf ("Anonymous auth with inline outgoing: tool call succeeded\n " )
213213 })
214214 })
215215})
0 commit comments