python-muranoclient/windc/tests/unit/test_base_driver.py
Georgy Okrokvertskhov 8994ffcab1 1. Fixed issue with main file start ./bin/windc-api
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
2013-02-11 14:13:20 -08:00

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)