From e41436c9eeee43f06492f304d4832a07c4d11a70 Mon Sep 17 00:00:00 2001 From: songbaisen Date: Tue, 3 Jul 2018 14:58:49 +0800 Subject: [PATCH] Fix the unit test error 1. What is the problem? the unit test can not pass. 2. What is the solution to the problem? add the segmentation_id to the subnet. 3. What the features to be implemented in the Tricircle to realize the solution? no Signed-off-by: song baisen Change-Id: I023a46af393b94cc3c4f2ec9f5636e740fa12224 Co-Authored-By: tangzhuo , zhiyuan_cai --- tricircle/tests/unit/network/test_central_plugin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tricircle/tests/unit/network/test_central_plugin.py b/tricircle/tests/unit/network/test_central_plugin.py index 6b64790f..b05b4f35 100644 --- a/tricircle/tests/unit/network/test_central_plugin.py +++ b/tricircle/tests/unit/network/test_central_plugin.py @@ -1632,7 +1632,8 @@ class PluginTest(unittest.TestCase, 'project_id': project_id, 'description': 'description', 'host_routes': [], - 'dns_nameservers': [] + 'dns_nameservers': [], + 'segment_id': 'b85fd910-e483-4ef1-bdf5-b0f747d0b0d5' } TOP_NETS.append(test_utils.DotDict(t_net)) TOP_SUBNETS.append(test_utils.DotDict(t_subnet)) @@ -1671,7 +1672,8 @@ class PluginTest(unittest.TestCase, 'project_id': project_id, 'description': 'description', 'host_routes': [], - 'dns_nameservers': [] + 'dns_nameservers': [], + 'segment_id': 'b85fd910-e483-4ef1-bdf5-b0f747d0b0d5' } if region_name == 'pod_1': BOTTOM1_NETS.append(test_utils.DotDict(b_net))