Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet committed Mar 6, 2024
1 parent cd35a9d commit f549f8d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,15 @@ export default function (providerContext: FtrProviderContext) {
.expect(403);
});

it('should not allow non superusers', async () => {
it('should allow user with all access', async () => {
const buf = fs.readFileSync(testPkgArchiveTgz);
await supertestWithoutAuth
.post(`/api/fleet/epm/packages`)
.auth(testUsers.fleet_all_int_all.username, testUsers.fleet_all_int_all.password)
.set('kbn-xsrf', 'xxxx')
.type('application/gzip')
.send(buf)
.expect(403);
.expect(200);
});
});
}

0 comments on commit f549f8d

Please sign in to comment.