Skip to content

Commit

Permalink
a simple digest authentication test
Browse files Browse the repository at this point in the history
  • Loading branch information
mishal.alexander committed Jan 6, 2024
1 parent 1925222 commit 549f2a3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cypress/e2e/api-tests/simpleDigestAuthentication.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
describe('Digest Authentication', () => {
it('A simple digest authentication test', () => {
cy.request({
method: 'GET',
url: 'https://postman-echo.com/basic-auth',
auth: {
username: 'postman',
password: 'password',
method: 'digest'
}
})
.then((response) => {
expect(response.status).to.eq(200);
expect(response.body.authenticated).to.eq(true);
})
})
})

0 comments on commit 549f2a3

Please sign in to comment.