@@ -63,12 +63,14 @@ var _ = Describe("OME Agent Framework", Ordered, func() {
6363
6464 // Check for all agent commands
6565 TestLogger .Info ("Verifying help output contains all agent commands" )
66+ Expect (stdout ).To (ContainSubstring ("completion" ))
6667 Expect (stdout ).To (ContainSubstring ("enigma" ))
68+ Expect (stdout ).To (ContainSubstring ("fine-tuned-adapter" ))
69+ Expect (stdout ).To (ContainSubstring ("help" ))
6770 Expect (stdout ).To (ContainSubstring ("hf-download" ))
71+ Expect (stdout ).To (ContainSubstring ("model-metadata" ))
6872 Expect (stdout ).To (ContainSubstring ("replica" ))
69- Expect (stdout ).To (ContainSubstring ("training-agent" ))
7073 Expect (stdout ).To (ContainSubstring ("serving-agent" ))
71- Expect (stdout ).To (ContainSubstring ("fine-tuned-adapter" ))
7274 })
7375
7476 // Version flag test removed as it might not be implemented
@@ -105,16 +107,6 @@ var _ = Describe("OME Agent Framework", Ordered, func() {
105107 Expect (stdout ).To (ContainSubstring ("--debug" ))
106108 })
107109
108- It ("should display the training-agent help" , func () {
109- stdout , stderr , err := RunAgent (binaryPath , "training-agent" , "--help" )
110- Expect (err ).NotTo (HaveOccurred ())
111- Expect (stderr ).To (BeEmpty ())
112-
113- Expect (stdout ).To (ContainSubstring ("OME Training Agent" ))
114- Expect (stdout ).To (ContainSubstring ("--config" ))
115- Expect (stdout ).To (ContainSubstring ("--debug" ))
116- })
117-
118110 It ("should display the serving-agent help" , func () {
119111 stdout , stderr , err := RunAgent (binaryPath , "serving-agent" , "--help" )
120112 Expect (err ).NotTo (HaveOccurred ())
@@ -158,13 +150,6 @@ var _ = Describe("OME Agent Framework", Ordered, func() {
158150 Expect (stderr ).To (ContainSubstring ("no config file provided" ))
159151 })
160152
161- It ("should report an error for training-agent" , func () {
162- _ , stderr , err := RunAgent (binaryPath , "training-agent" )
163-
164- Expect (err ).To (HaveOccurred ())
165- Expect (stderr ).To (ContainSubstring ("no config file provided" ))
166- })
167-
168153 It ("should report an error for serving-agent" , func () {
169154 _ , stderr , err := RunAgent (binaryPath , "serving-agent" )
170155
@@ -306,7 +291,6 @@ debug: false
306291 "enigma" ,
307292 "hf-download" ,
308293 "replica" ,
309- "training-agent" ,
310294 "serving-agent" ,
311295 "fine-tuned-adapter" ,
312296 }
@@ -378,15 +362,6 @@ output: ` + mockDataDir + `/output
378362 Expect (stdout ).To (ContainSubstring ("Replica agent started" ))
379363 })
380364
381- XIt ("should start the training-agent" , func () {
382- stdout , _ , err := RunAgent (binaryPath , "training-agent" , "--config" , configPaths ["training-agent" ])
383-
384- // In a real test, you would need to mock the dependencies
385- // This is just an example of how to structure the test
386- Expect (err ).NotTo (HaveOccurred ())
387- Expect (stdout ).To (ContainSubstring ("Training agent started" ))
388- })
389-
390365 XIt ("should start the serving-agent" , func () {
391366 stdout , _ , err := RunAgent (binaryPath , "serving-agent" , "--config" , configPaths ["serving-agent" ])
392367
0 commit comments