"use strict";

module.exports.createTestRateLimiter = createTestRateLimiter;


function createTestRateLimiter(options) {
    var rateLimiter = require("../lib/rate-limiter/");
    // returns a RateLimiter instance that neither initializes a config nor starts the proxy

    function TestRateLimiter(options) {
        rateLimiter.RateLimiter.call(this, options);
    }

    TestRateLimiter.prototype = Object.create(rateLimiter.RateLimiter.prototype);
    TestRateLimiter.prototype.loadConfig = function () {
    };
    TestRateLimiter.prototype.initProxy = function () {
    };

    return new TestRateLimiter(options);
}

module.exports.configMock = {
    "log4js.path": __dirname + "/../lib/log4js-configuration.json",

    "forwarded_headers": {
        "X-TEST-FORWARDED-FOR": {
            "ignored_ip_ranges": [
                "127.0.0.0/8",
                "10.0.0.0/8",
                "172.16.0.0/12",
                "192.0.2.0/24",
                "12.34.0.0/16"
            ]
        }
    }
};

@@ -620,390 +620,4 @@
 ;%0A%7D%0A
-%0Amodule.exports.configMock = %7B%0A    %22log4js.path%22: __dirname + %22/../lib/log4js-configuration.json%22,%0A%0A    %22forwarded_headers%22: %7B%0A        %22X-TEST-FORWARDED-FOR%22: %7B%0A            %22ignored_ip_ranges%22: %5B%0A                %22127.0.0.0/8%22,%0A                %2210.0.0.0/8%22,%0A                %22172.16.0.0/12%22,%0A                %22192.0.2.0/24%22,%0A                %2212.34.0.0/16%22%0A            %5D%0A        %7D%0A    %7D%0A%7D;%0A

Remove configMock from helpers