File tree Expand file tree Collapse file tree
x-pack/platform/test/agent_builder_api_integration/apis/plugins Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,8 +115,11 @@ export default function ({ getService }: FtrProviderContext) {
115115 . set ( 'elastic-api-version' , '2023-10-31' ) ;
116116 } ;
117117
118- const listSkills = async ( ) => {
119- const response = await supertest . get ( '/api/agent_builder/skills' ) . expect ( 200 ) ;
118+ const listSkills = async ( { includePlugins = false } : { includePlugins ?: boolean } = { } ) => {
119+ const response = await supertest
120+ . get ( '/api/agent_builder/skills' )
121+ . query ( { include_plugins : includePlugins } )
122+ . expect ( 200 ) ;
120123 return response . body . results as Array < {
121124 id : string ;
122125 name : string ;
@@ -126,7 +129,7 @@ export default function ({ getService }: FtrProviderContext) {
126129 } ;
127130
128131 const findPluginSkill = async ( skillId : string ) => {
129- const skills = await listSkills ( ) ;
132+ const skills = await listSkills ( { includePlugins : true } ) ;
130133 return skills . find ( ( s ) => s . id === skillId ) ;
131134 } ;
132135
You can’t perform that action at this time.
0 commit comments