@@ -43,11 +43,16 @@ const OPENCLAW_END = "# Git TLS CA bundle fix (NemoClaw#2270).";
4343const HERMES_END = "# OpenShell injects SSL_CERT_FILE/CURL_CA_BUNDLE for its L7 proxy CA." ;
4444
4545describe ( "corporate proxy CA runtime helper guard (#8292)" , ( ) => {
46- it . each ( [ "missing" , "symlink" ] as const ) (
47- "exits before sourcing or merging when the deployed helper is %s and fallback is unavailable" ,
48- ( deployedMode ) => {
49- const dir = tmpDir ( `nemoclaw-corp-helper-${ deployedMode } -` ) ;
50- const result = runCorporateCaHelperGuard ( OPENCLAW_START , dir , deployedMode ) ;
46+ it . each ( [
47+ { agent : "OpenClaw" , script : OPENCLAW_START , end : OPENCLAW_END , mode : "missing" as const } ,
48+ { agent : "OpenClaw" , script : OPENCLAW_START , end : OPENCLAW_END , mode : "symlink" as const } ,
49+ { agent : "Hermes" , script : HERMES_START , end : HERMES_END , mode : "missing" as const } ,
50+ { agent : "Hermes" , script : HERMES_START , end : HERMES_END , mode : "symlink" as const } ,
51+ ] ) (
52+ "exits $agent before sourcing or merging when the deployed helper is $mode and fallback is unavailable" ,
53+ ( { agent, script, end, mode } ) => {
54+ const dir = tmpDir ( `nemoclaw-${ agent . toLowerCase ( ) } -helper-${ mode } -` ) ;
55+ const result = runCorporateCaHelperGuard ( script , dir , mode , end ) ;
5156
5257 expect ( result . status ) . not . toBe ( 0 ) ;
5358 expect ( result . stderr ) . toContain ( "required corporate CA runtime helper is missing or unsafe" ) ;
0 commit comments