8994ffcab1
2. Added router to Route /datacenters/ and /services/ URLs 3. Added stubs for windc/core/api. 4. Fixed start-up process for service ------------------------------------------------- Now it is working service which will reply for curl http://localhost:8181/tenant_id/datacenters/ curl http://localhost:8181/tenant_id/datacenters/dc_id/services curl http://localhost:8181/tenant_id/datacenters/dc_id/services/service_id
15 lines
248 B
Python
15 lines
248 B
Python
import unittest
|
|
import mock
|
|
|
|
|
|
from windc.api.v1.router import API
|
|
|
|
|
|
class TestBaseDriver(unittest.TestCase):
|
|
def setUp(self):
|
|
super(TestBaseDriver, self).setUp()
|
|
self.conf = mock.Mock()
|
|
|
|
def testAPI(self):
|
|
api = API(None)
|