Skip to content

Commit

Permalink
update security tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Jul 27, 2023
1 parent 6b8403b commit 6fc50c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function ({ getService }: FtrProviderContext) {
it('API endpoint response contains default security headers', async () => {
const { header } = await supertest
.get(`/internal/security/me`)
.set(svlCommonApi.getCommonRequestHeader())
.set(svlCommonApi.getInternalRequestHeader())
.expect(200);

expect(header).toBeDefined();
Expand All @@ -41,7 +41,7 @@ export default function ({ getService }: FtrProviderContext) {
it('redirect endpoint response contains default security headers', async () => {
const { header } = await supertest
.get(`/login`)
.set(svlCommonApi.getCommonRequestHeader())
.set(svlCommonApi.getInternalRequestHeader())
.expect(302);

expect(header).toBeDefined();
Expand Down

0 comments on commit 6fc50c1

Please sign in to comment.