Skip to content

Commit 363605f

Browse files
committed
fix FTR test
1 parent be88eac commit 363605f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • x-pack/platform/test/agent_builder_api_integration/apis/plugins

x-pack/platform/test/agent_builder_api_integration/apis/plugins/installation.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)