var assert = require('assert'),
	ACSNode = require('../index'),
	request = require('request-ssl');

describe('Security Test', function() {
	this.timeout(10000);

	it('should validate DEFAULT_API_ENTRY_POINT',function(done){
		if (process.env.TRAVIS) {
			assert.equal(process.env.FINGERPRINT_DEFAULT, ACSNode.DEFAULT_API_ENTRY_POINT_FINGERPRINT);
			done();
		} else {
			request.getFingerprintForURL(ACSNode.DEFAULT_API_ENTRY_POINT, function(err,fingerprint){
				assert.ifError(err);
				assert.equal(fingerprint, ACSNode.DEFAULT_API_ENTRY_POINT_FINGERPRINT);
				done();
			});
		}
	});

	it('should validate DEFAULT_API_TEST_ENTRY_POINT',function(done){
		if (process.env.TRAVIS) {
			assert.equal(process.env.FINGERPRINT_TEST, ACSNode.DEFAULT_API_ENTRY_POINT_FINGERPRINT);
			done();
		} else {
			request.getFingerprintForURL(ACSNode.DEFAULT_API_TEST_ENTRY_POINT, function(err,fingerprint){
				assert.ifError(err);
				assert.equal(fingerprint, ACSNode.DEFAULT_API_TEST_ENTRY_POINT_FINGERPRINT);
				done();
			});
		}
	});

});
@@ -151,24 +151,76 @@
 ut(10000);%0A%0A
+%09var fingerprintRegex = /%5ESHA1%5CsFingerprint=(.*)/;%0A%0A
 %09it('should 
@@ -344,16 +344,47 @@
 _DEFAULT
+.replace(fingerprintRegex,'$1')
 , ACSNod
@@ -806,16 +806,47 @@
 INT_TEST
+.replace(fingerprintRegex,'$1')
 , ACSNod

trim off prefix from SHA1