Skip to content

Commit

Permalink
Published new version to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Gregory committed Nov 16, 2017
1 parent d05df55 commit ac8fa13
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "12factorial",
"version": "0.5.2",
"version": "0.6.0",
"repository": {
"type": "git",
"url": "https://github.com/bobthemighty/12factorial"
Expand Down
33 changes: 33 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,4 +395,37 @@ describe('When extending a service', function () {
expect(result.myservice.username).toBe('copper king')
});
});

});


describe('When using vault integration', function () {

describe('When a value in vault is scalar', function () {

var result;

var cfg = {
creds: config.secret('secret/my-credentials')
};

beforeEach(function (done) {
// Write password here plz

config.build(cfg, { vault: { addr: 'http://localhost:8200' } })
.then(function (v) {
result = v;
done();
});
});

it('Should have read the password value', function () {
expect(result.creds.password).toBe("Brobdingnag")
});

it('Should have read the username value', function () {
expect(result.creds.password).toBe("Lilliput")
});
});

});

0 comments on commit ac8fa13

Please sign in to comment.