From 24637dddeb5e8ad766cdd974338763621e47e279 Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Thu, 21 Jan 2021 22:18:22 +0900 Subject: [PATCH] Fix a db query issue Signed-off-by: Jongmin Kim --- test/service/test_domain_config_service.py | 2 ++ test/service/test_user_config_service.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/service/test_domain_config_service.py b/test/service/test_domain_config_service.py index 500aa3e..2137f8e 100644 --- a/test/service/test_domain_config_service.py +++ b/test/service/test_domain_config_service.py @@ -20,6 +20,8 @@ class TestDomainConfigService(unittest.TestCase): @classmethod def setUpClass(cls): config.init_conf(package='spaceone.config') + config.set_service_config() + config.set_global(DATABASE_SUPPORT_AWS_DOCUMENT_DB=True) connect('test', host='mongomock://localhost') cls.domain_id = utils.generate_id('domain') diff --git a/test/service/test_user_config_service.py b/test/service/test_user_config_service.py index 7711898..cecb132 100644 --- a/test/service/test_user_config_service.py +++ b/test/service/test_user_config_service.py @@ -20,6 +20,8 @@ class TestUserConfigService(unittest.TestCase): @classmethod def setUpClass(cls): config.init_conf(package='spaceone.config') + config.set_service_config() + config.set_global(DATABASE_SUPPORT_AWS_DOCUMENT_DB=True) connect('test', host='mongomock://localhost') cls.domain_id = utils.generate_id('domain')