@@ -21,8 +21,6 @@ import (
2121 "fmt"
2222
2323 webhookv1alpha1 "github.com/agentic-layer/agent-runtime-operator/internal/webhook/v1alpha1"
24- . "github.com/onsi/ginkgo/v2"
25- . "github.com/onsi/gomega"
2624 appsv1 "k8s.io/api/apps/v1"
2725 corev1 "k8s.io/api/core/v1"
2826 "k8s.io/apimachinery/pkg/api/errors"
@@ -144,7 +142,7 @@ var _ = Describe("Agent Controller", func() {
144142 probe := reconciler .generateReadinessProbe (agent )
145143 Expect (probe ).NotTo (BeNil ())
146144 Expect (probe .HTTPGet ).NotTo (BeNil ())
147- Expect (probe .HTTPGet .Path ).To (Equal (fmt . Sprintf ( a2aAgentCardEndpoint ) ))
145+ Expect (probe .HTTPGet .Path ).To (Equal (a2aAgentCardEndpoint ))
148146 Expect (probe .HTTPGet .Port .IntValue ()).To (Equal (8000 ))
149147 Expect (probe .InitialDelaySeconds ).To (Equal (int32 (10 )))
150148 })
@@ -178,7 +176,7 @@ var _ = Describe("Agent Controller", func() {
178176 probe := reconciler .generateReadinessProbe (agent )
179177 Expect (probe ).NotTo (BeNil ())
180178 Expect (probe .HTTPGet ).NotTo (BeNil ())
181- Expect (probe .HTTPGet .Path ).To (Equal (fmt . Sprintf ( a2aAgentCardEndpoint ) ))
179+ Expect (probe .HTTPGet .Path ).To (Equal (a2aAgentCardEndpoint ))
182180 })
183181
184182 It ("should return nil probe for agents with no recognized protocols" , func () {
@@ -242,7 +240,7 @@ var _ = Describe("Agent Controller", func() {
242240 Expect (probe ).NotTo (BeNil ())
243241 Expect (probe .HTTPGet ).NotTo (BeNil ())
244242 Expect (probe .HTTPGet .Port .IntValue ()).To (Equal (3000 ))
245- Expect (probe .HTTPGet .Path ).To (Equal (fmt . Sprintf ( a2aAgentCardEndpoint ) ))
243+ Expect (probe .HTTPGet .Path ).To (Equal (a2aAgentCardEndpoint ))
246244 })
247245
248246 It ("should use custom port from OpenAI protocol" , func () {
@@ -304,7 +302,7 @@ var _ = Describe("Agent Controller", func() {
304302 probe := reconciler .generateReadinessProbe (agent )
305303 Expect (probe ).NotTo (BeNil ())
306304 Expect (probe .HTTPGet ).NotTo (BeNil ())
307- Expect (probe .HTTPGet .Path ).To (Equal (fmt . Sprintf ( a2aAgentCardEndpoint ) ))
305+ Expect (probe .HTTPGet .Path ).To (Equal (a2aAgentCardEndpoint ))
308306 Expect (probe .HTTPGet .Port .IntValue ()).To (Equal (8000 ))
309307 })
310308
@@ -426,11 +424,11 @@ var _ = Describe("Agent Controller", func() {
426424 // Test with unspecified path field (should use default /a2a)
427425 protocolNoPath := & runtimev1alpha1.AgentProtocol {Type : "A2A" }
428426 pathDefault := reconciler .getA2AHealthPath (protocolNoPath )
429- Expect (pathDefault ).To (Equal (fmt . Sprintf ( a2aAgentCardEndpoint ) ))
427+ Expect (pathDefault ).To (Equal (a2aAgentCardEndpoint ))
430428
431429 // Test with nil protocol (should use default)
432430 pathNil := reconciler .getA2AHealthPath (nil )
433- Expect (pathNil ).To (Equal (fmt . Sprintf ( a2aAgentCardEndpoint ) ))
431+ Expect (pathNil ).To (Equal (a2aAgentCardEndpoint ))
434432 })
435433 })
436434
@@ -659,7 +657,7 @@ var _ = Describe("Agent Controller", func() {
659657 desiredContainer := reconciler .findAgentContainer (desiredDeployment .Spec .Template .Spec .Containers )
660658
661659 Expect (existingContainer .ReadinessProbe .HTTPGet .Path ).To (Equal ("/health" ))
662- Expect (desiredContainer .ReadinessProbe .HTTPGet .Path ).To (Equal (fmt . Sprintf ( a2aAgentCardEndpoint ) ))
660+ Expect (desiredContainer .ReadinessProbe .HTTPGet .Path ).To (Equal (a2aAgentCardEndpoint ))
663661 })
664662
665663 It ("should not trigger update when probes are identical" , func () {
0 commit comments