Skip to content

Commit

Permalink
update api integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Nov 16, 2021
1 parent bf328c8 commit a4c68d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/test/api_integration/apis/ml/system/capabilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default ({ getService }: FtrProviderContext) => {

it('should have the right number of capabilities', async () => {
const { capabilities } = await runRequest(USER.ML_POWERUSER);
expect(Object.keys(capabilities).length).to.eql(31);
expect(Object.keys(capabilities).length).to.eql(32);
});

it('should get viewer capabilities', async () => {
Expand Down Expand Up @@ -83,6 +83,7 @@ export default ({ getService }: FtrProviderContext) => {
canGetAnnotations: true,
canCreateAnnotation: true,
canDeleteAnnotation: true,
canViewMlNodes: false,
});
});

Expand Down Expand Up @@ -121,6 +122,7 @@ export default ({ getService }: FtrProviderContext) => {
canGetAnnotations: true,
canCreateAnnotation: true,
canDeleteAnnotation: true,
canViewMlNodes: true,
});
});
});
Expand Down

0 comments on commit a4c68d9

Please sign in to comment.