Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
Browse files Browse the repository at this point in the history
…-ref HEAD~1..HEAD --fix'
  • Loading branch information
kibanamachine committed Jan 3, 2023
1 parent 36d8637 commit 166a034
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions x-pack/test/fleet_api_integration/apis/agents/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,19 +204,25 @@ export default function ({ getService }: FtrProviderContext) {
await superTestWithoutAuth
.get(`/api/fleet/agent_status`)
.set('kbn-xsrf', 'xxxx')
.auth(testUsers.endpoint_fleet_all_integr_read_policy.username, testUsers.endpoint_fleet_all_integr_read_policy.password)
.auth(
testUsers.endpoint_fleet_all_integr_read_policy.username,
testUsers.endpoint_fleet_all_integr_read_policy.password
)
.expect(200);
});

it('should not work without adequate package privileges', async () => {
await superTestWithoutAuth
.get(`/api/fleet/agent_status`)
.set('kbn-xsrf', 'xxxx')
.auth(testUsers.endpoint_fleet_read_integr_none.username, testUsers.endpoint_fleet_read_integr_none.password)
.auth(
testUsers.endpoint_fleet_read_integr_none.username,
testUsers.endpoint_fleet_read_integr_none.password
)
.expect(403, {
error: 'Forbidden',
message: 'Forbidden',
statusCode: 403
statusCode: 403,
});
});
});
Expand Down

0 comments on commit 166a034

Please sign in to comment.