CORD-3157 initialize config module in xosapi test cases

Change-Id: Id3dc860f8ee816f3099aa48a31ac59f27608d050
diff --git a/xos/xos_client/xosapi/test_config.yaml b/xos/xos_client/xosapi/test_config.yaml
new file mode 100644
index 0000000..ae389f4
--- /dev/null
+++ b/xos/xos_client/xosapi/test_config.yaml
@@ -0,0 +1,26 @@
+
+# Copyright 2017-present Open Networking Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+name: test-coreapi
+logging:
+  version: 1
+  handlers:
+    console:
+      class: logging.StreamHandler
+  loggers:
+    'multistructlog':
+      handlers:
+          - console
diff --git a/xos/xos_client/xosapi/test_orm.py b/xos/xos_client/xosapi/test_orm.py
index d97da1d..6c2661c 100644
--- a/xos/xos_client/xosapi/test_orm.py
+++ b/xos/xos_client/xosapi/test_orm.py
@@ -29,6 +29,11 @@
 
 class TestORM(unittest.TestCase):
     def setUp(self):
+        from xosconfig import Config
+        test_path = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
+        config = os.path.join(test_path, "test_config.yaml")
+        Config.clear()
+        Config.init(config, 'synchronizer-config-schema.yaml')
         if (USE_FAKE_STUB):
             sys.path.append(PARENT_DIR)
 
diff --git a/xos/xos_client/xosapi/test_wrapper.py b/xos/xos_client/xosapi/test_wrapper.py
index a9318a1..6eef1f3 100644
--- a/xos/xos_client/xosapi/test_wrapper.py
+++ b/xos/xos_client/xosapi/test_wrapper.py
@@ -34,6 +34,12 @@
 
 class TestWrappers(unittest.TestCase):
     def setUp(self):
+        from xosconfig import Config
+        test_path = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
+        config = os.path.join(test_path, "test_config.yaml")
+        Config.clear()
+        Config.init(config, 'synchronizer-config-schema.yaml')
+
         if (USE_FAKE_STUB):
             sys.path.append(PARENT_DIR)