summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vio/vio/tests/test_aai_client.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/vio/vio/tests/test_aai_client.py b/vio/vio/tests/test_aai_client.py
index ad66f40..1875d4c 100644
--- a/vio/vio/tests/test_aai_client.py
+++ b/vio/vio/tests/test_aai_client.py
@@ -96,6 +96,19 @@ class TestAAIClient(unittest.TestCase):
mock_call.assert_called_once()
@mock.patch.object(restcall, "call_req")
+ def test_add_servers(self, mock_call):
+ servers = {
+ "servers": [{
+ "name": "server-name",
+ "id": "server-id",
+ "link": "/instances/server-id",
+ "status": "ACTIVE",
+ }]
+ }
+ self.view.add_vservers(servers)
+ mock_call.assert_called_once()
+
+ @mock.patch.object(restcall, "call_req")
def test_add_networks(self, mock_call):
networks = {
"networks": [{