forked from alexeisnyk/juice-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for unlocking KeePass file of support team
- Loading branch information
1 parent
0ff9c98
commit ae29cb9
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,3 +51,4 @@ config/*.yml | |
!config/7ms.yml | ||
!config/mozilla.yml | ||
!config/unsafe.yml | ||
/.dejavurc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const chai = require('chai') | ||
const expect = chai.expect | ||
|
||
const path = require('path') | ||
const kpio = require('keepass.io') | ||
|
||
describe('keePass', () => { | ||
it('should unlock support team KeePass file with photo of readheaded call center employee', (done) => { | ||
const db = new kpio.Database() | ||
db.addCredential(new kpio.Credentials.Keyfile(path.join(__dirname, '../../frontend/src/assets/public/images/carousel/6.jpg'))) | ||
db.loadFile(path.join(__dirname, '../../ftp/incident-support.kdbx'), function (err) { | ||
expect(err).to.equal(undefined) | ||
return done() | ||
}) | ||
}) | ||
}) |