fix ldap test

This commit is contained in:
Girish Ramakrishnan
2021-07-07 12:59:17 -07:00
parent bbbfc4da05
commit caa8104dda
5 changed files with 347 additions and 977 deletions
-4
View File
@@ -110,7 +110,6 @@ exports = module.exports = {
_validatePortBindings: validatePortBindings,
_validateAccessRestriction: validateAccessRestriction,
_translatePortBindings: translatePortBindings,
_MOCK_GET_BY_IP_APP_ID: ''
};
const appdb = require('./appdb.js'),
@@ -525,9 +524,6 @@ function getByIpAddress(ip, callback) {
assert.strictEqual(typeof ip, 'string');
assert.strictEqual(typeof callback, 'function');
// this is only used by the ldap test. the apps tests still uses proper docker
if (constants.TEST && exports._MOCK_GET_BY_IP_APP_ID) return get(exports._MOCK_GET_BY_IP_APP_ID, callback);
appdb.getByIpAddress(ip, function (error, app) {
if (error) return callback(error);