Skip to content

Commit

Permalink
update test for missing JWT
Browse files Browse the repository at this point in the history
Signed-off-by: merlinz01 <na@notaccessible.xyz>
  • Loading branch information
merlinz01 committed Oct 4, 2024
1 parent 754c3c8 commit 06b2812
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/jest_integration/jwt_multiauth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ describe('start OpenSearch Dashboards server', () => {

it('Verify access to login page without JWT', async () => {
console.log('Wreck access login page without JWT');
await wreck.get('http://localhost:5601/app/login', {
const response = await wreck.get('http://localhost:5601/app/home', {
rejectUnauthorized: true,
});
expect(response.res.statusCode).toEqual(302);
expect(response.res.headers.location).toEqual('/app/#?nextUrl=%2Fapp%2Fhome');
});
});

0 comments on commit 06b2812

Please # to comment.