summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vio/vio/tests/test_fake_nova_view.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/vio/vio/tests/test_fake_nova_view.py b/vio/vio/tests/test_fake_nova_view.py
index 40278e5..6fbae51 100644
--- a/vio/vio/tests/test_fake_nova_view.py
+++ b/vio/vio/tests/test_fake_nova_view.py
@@ -164,6 +164,20 @@ class TestFakeNovaServer(unittest.TestCase):
self.assertEqual(405, resp.status_code)
+class TestFakeNovaHypervisorUptime(unittest.TestCase):
+
+ def setUp(self):
+ self.view = views.FakeNovaHypervisorsUptime()
+
+ def test_get_hypervisor_uptime(self):
+ req = mock.Mock()
+ req.META = {
+ "HTTP_X_AUTH_TOKEN": Token
+ }
+ resp = self.view.get(req, "tenant1", "hypervisor1")
+ self.assertEqual(200, resp.status_code)
+
+
class TestFakeNovaHypervisors(unittest.TestCase):
def setUp(self):