зеркало из https://github.com/mozilla/MozDef.git
Update loginput and restapi configs for tests
This commit is contained in:
Родитель
e001ab896b
Коммит
8ed5badc0e
|
@ -9,8 +9,8 @@ COPY cron /opt/mozdef/envs/mozdef/cron
|
|||
COPY .flake8 /opt/mozdef/envs/mozdef/.flake8
|
||||
|
||||
COPY docker/compose/tester/files/tests_config.conf /opt/mozdef/envs/mozdef/tests/config.conf
|
||||
COPY docker/compose/tester/files/loginput_config.conf /opt/mozdef/envs/mozdef/loginput/index.conf
|
||||
COPY docker/compose/tester/files/rest_config.conf /opt/mozdef/envs/mozdef/rest/index.conf
|
||||
COPY docker/compose/tester/files/loginput_index.conf /opt/mozdef/envs/mozdef/tests/loginput/index.conf
|
||||
COPY docker/compose/tester/files/rest_index.conf /opt/mozdef/envs/mozdef/tests/rest/index.conf
|
||||
|
||||
USER root
|
||||
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
mqserver=rabbitmq
|
||||
mquser=guest
|
||||
mqpassword=guest
|
||||
listen_host=127.0.0.1
|
||||
listen_host=0.0.0.0
|
|
@ -1,5 +1,5 @@
|
|||
[options]
|
||||
kibanaurl=http://localhost:9090/app/kibana
|
||||
kibanaurl=http://nginx:9090/app/kibana
|
||||
esservers=http://elasticsearch:9200
|
||||
mongohost=mongodb
|
||||
mongoport=3002
|
|
@ -14,7 +14,7 @@ class LoginputTestSuite(HTTPTestSuite):
|
|||
|
||||
def setup(self):
|
||||
sample_config = DotDict()
|
||||
sample_config.configfile = os.path.join(os.path.dirname(__file__), 'loginput_index.conf')
|
||||
sample_config.configfile = os.path.join(os.path.dirname(__file__), 'index.conf')
|
||||
OptionParser.parse_args = mock.Mock(return_value=(sample_config, {}))
|
||||
from loginput import index
|
||||
self.application = index.application
|
||||
|
|
|
@ -20,7 +20,7 @@ class RestTestSuite(HTTPTestSuite):
|
|||
|
||||
def setup(self):
|
||||
sample_config = RestTestDict()
|
||||
sample_config.configfile = os.path.join(os.path.dirname(__file__), 'rest_index.conf')
|
||||
sample_config.configfile = os.path.join(os.path.dirname(__file__), 'index.conf')
|
||||
OptionParser.parse_args = mock.Mock(return_value=(sample_config, {}))
|
||||
|
||||
from rest import index
|
||||
|
|
Загрузка…
Ссылка в новой задаче