File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -302,14 +302,6 @@ func TestSnykCodeTestHandler(t *testing.T) {
302302 "org" : "my-snyk-org" ,
303303 },
304304 },
305- {
306- name : "Test fail trust" ,
307- args : map [string ]interface {}{
308- "path" : tmpDir ,
309- "org" : "my-snyk-org" ,
310- },
311- requireTrust : true ,
312- },
313305 }
314306
315307 for _ , tc := range testCases {
@@ -332,10 +324,6 @@ func TestSnykCodeTestHandler(t *testing.T) {
332324 require .NotNil (t , result )
333325 textContent , ok := result .Content [0 ].(mcp.TextContent )
334326 require .True (t , ok )
335- if tc .requireTrust {
336- require .Contains (t , textContent .Text , "Please run 'snyk_trust' first" )
337- return
338- }
339327 content := strings .TrimSpace (textContent .Text )
340328
341329 // Parse the enhanced JSON response
Original file line number Diff line number Diff line change 240240 " code" ,
241241 " test"
242242 ],
243+ "ignoreTrust" : true ,
243244 "outputMapper" : " CodeOutputMapper" ,
244245 "standardParams" : [" sarif" ],
245246 "params" : [
380381 " iac" ,
381382 " test"
382383 ],
384+ "ignoreTrust" : true ,
383385 "standardParams" : [],
384386 "params" : [
385387 {
You can’t perform that action at this time.
0 commit comments