auth header added tests

This commit is contained in:
ashubham 2015-03-12 13:40:49 -07:00
parent ab5c3e5c81
commit f55ffa356a

View File

@ -17,6 +17,7 @@ describe('lib/http-proxy/common.js', function () {
},
headers: {'fizz': 'bang', 'overwritten':true},
localAddress: 'local.address',
auth:'username:pass'
},
{
method : 'i',
@ -37,6 +38,7 @@ describe('lib/http-proxy/common.js', function () {
expect(outgoing.headers.fizz).to.eql('bang');
expect(outgoing.headers.overwritten).to.eql(true);
expect(outgoing.localAddress).to.eql('local.address');
expect(outgoing.auth).to.eql('username:pass');
});
it('should not override agentless upgrade header', function () {