@@ -146,8 +146,7 @@ async def check_admin_api_health(config: ResourceConfig) -> bool:
146146 try :
147147 response = await client .get (f"{ config .app_url } /api/admin/health" )
148148 if response .status_code == 200 :
149- data = response .json ()
150- print_success (f"Admin API healthy (API key required: { data .get ('api_key_required' , False )} )" )
149+ print_success ("Admin API is healthy" )
151150 return True
152151 else :
153152 print_error (f"Admin API returned { response .status_code } " )
@@ -391,28 +390,23 @@ async def run_application_tests(config: ResourceConfig, dry_run: bool = False) -
391390 print_warning (f"Health check failed: { e } " )
392391 results ["health" ] = False
393392
394- # Test 3: Brief Parsing (POST /api/brief/parse )
395- print_step ("Testing Brief Parsing (POST /api/brief/parse )" )
393+ # Test 3: Chat API (POST /api/chat )
394+ print_step ("Testing Chat API (POST /api/chat )" )
396395 try :
397396 response = await client .post (
398- f"{ app_url } /api/brief/parse " ,
399- json = {"brief_text " : "Create an ad for calm interior paint for homeowners. " },
397+ f"{ app_url } /api/chat " ,
398+ json = {"message " : "Hello" , "conversation_id" : "test-post-deploy " },
400399 headers = {"Content-Type" : "application/json" }
401400 )
402401 if response .status_code == 200 :
403- data = response .json ()
404- if "brief" in data :
405- print_success (f"Brief parsed: { data ['brief' ].get ('overview' , '' )[:60 ]} ..." )
406- results ["brief_parse" ] = True
407- else :
408- print_error (f"Unexpected response: { data } " )
409- results ["brief_parse" ] = False
402+ print_success ("Chat API responding" )
403+ results ["chat_api" ] = True
410404 else :
411- print_error (f"Failed: { response .status_code } - { response . text [: 200 ] } " )
412- results ["brief_parse " ] = False
405+ print_error (f"Failed: { response .status_code } " )
406+ results ["chat_api " ] = False
413407 except Exception as e :
414408 print_error (f"Failed: { e } " )
415- results ["brief_parse " ] = False
409+ results ["chat_api " ] = False
416410
417411 # Test 4: Product Search (GET /api/products)
418412 print_step ("Testing Product Search (GET /api/products?search=blue)" )
0 commit comments