@@ -55,7 +55,8 @@ func Test_Hook_Execute_V2_Protocol(t *testing.T) {
5555 opts : HookExecOpts {
5656 Hook : HookScript {Name : "happypath" , Command : "echo {}" },
5757 Env : map [string ]string {
58- "BATMAN" : "robin hood" ,
58+ "BATMAN" : "robin" ,
59+ "WHOAMI" : "lumpy space princess" ,
5960 "YIN" : "yang" ,
6061 },
6162 Exec : & MockExec {
@@ -68,17 +69,17 @@ func Test_Hook_Execute_V2_Protocol(t *testing.T) {
6869 check : func (t * testing.T , response string , err error , mockExec ExecInterface ) {
6970 require .Equal (t , `{"message": "hello world"}` , response )
7071 require .Equal (t , nil , err )
71- require .Contains (t , mockExec .(* MockExec ).mockCommand .Env , `BATMAN=robin hood` )
72+ require .Contains (t , mockExec .(* MockExec ).mockCommand .Env , `BATMAN=robin` )
73+ require .Contains (t , mockExec .(* MockExec ).mockCommand .Env , `WHOAMI=lumpy space princess` )
7274 require .Contains (t , mockExec .(* MockExec ).mockCommand .Env , `YIN=yang` )
7375 },
7476 },
7577 "successful execution with payload > 64kb" : {
7678 opts : HookExecOpts {
7779 Hook : HookScript {Name : "happypath" , Command : "echo {}" },
7880 Env : map [string ]string {
79- "batman" : "robin" ,
80- "BATMAN" : "robin" ,
81- "YIN" : "yang" ,
81+ "BATMAN" : "robin" ,
82+ "YIN" : "yang" ,
8283 },
8384 Exec : & MockExec {
8485 mockCommand : & MockCommand {
0 commit comments