summaryrefslogtreecommitdiffstats
path: root/vio
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-04-11 11:59:22 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-11 11:59:22 +0000
commit3cc037e5b4922cb5a1f3b89602482808a8cb041e (patch)
tree505442fad3960c0a9154823e1be32f6b9dcc1190 /vio
parent05cffa755e43fa8e7c4b1baa4eb0071050436699 (diff)
parentf35a89304ffee58a46a932ee9df710523a876d18 (diff)
Merge "Add UT for add_servers function"
Diffstat (limited to 'vio')
-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": [{