diff options
author | Ethan Lynn <ethanlynnl@vmware.com> | 2018-06-13 14:44:33 +0800 |
---|---|---|
committer | Ethan Lynn <ethanlynnl@vmware.com> | 2018-06-13 14:44:33 +0800 |
commit | f7765a56512b5dbad612fd6abee52dd22ada3238 (patch) | |
tree | 39b7dd0d91773dc2a97585585dff397bfe69a722 | |
parent | 40aa9b56ed90a11a776d86889e3a565539524b41 (diff) |
Add test_list_servers
Add test_list_servers
Change-Id: Ic263cf5670c5e7d624e4d16b7ef889cacbf8e8a0
Issue-ID: MULTICLOUD-199
Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
-rw-r--r-- | vio/vio/tests/test_fake_nova_view.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vio/vio/tests/test_fake_nova_view.py b/vio/vio/tests/test_fake_nova_view.py index c1c725d..5e56f0f 100644 --- a/vio/vio/tests/test_fake_nova_view.py +++ b/vio/vio/tests/test_fake_nova_view.py @@ -51,6 +51,14 @@ class TestFakeNovaServer(unittest.TestCase): resp = self.view.delete(req, "abcd", Server) self.assertEqual(204, resp.status_code) + def test_list_servers(self): + req = mock.Mock() + req.META = { + "HTTP_X_AUTH_TOKEN": Token + } + resp = self.view.get(req, "abcd") + self.assertEqual(200, resp.status_code) + class TestFakeNovaHypervisors(unittest.TestCase): |