summaryrefslogtreecommitdiff
path: root/openstack_dashboard/test/test_data/neutron_data.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_dashboard/test/test_data/neutron_data.py')
-rw-r--r--openstack_dashboard/test/test_data/neutron_data.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/openstack_dashboard/test/test_data/neutron_data.py b/openstack_dashboard/test/test_data/neutron_data.py
index 62297e5..25928b5 100644
--- a/openstack_dashboard/test/test_data/neutron_data.py
+++ b/openstack_dashboard/test/test_data/neutron_data.py
@@ -46,6 +46,7 @@ def data(TEST):
46 TEST.ip_availability = utils.TestDataContainer() 46 TEST.ip_availability = utils.TestDataContainer()
47 TEST.qos_policies = utils.TestDataContainer() 47 TEST.qos_policies = utils.TestDataContainer()
48 TEST.tp_ports = utils.TestDataContainer() 48 TEST.tp_ports = utils.TestDataContainer()
49 TEST.neutron_availability_zones = utils.TestDataContainer()
49 50
50 # Data return by neutronclient. 51 # Data return by neutronclient.
51 TEST.api_agents = utils.TestDataContainer() 52 TEST.api_agents = utils.TestDataContainer()
@@ -361,7 +362,8 @@ def data(TEST):
361 'distributed': True, 362 'distributed': True,
362 'external_gateway_info': 363 'external_gateway_info':
363 {'network_id': ext_net['id']}, 364 {'network_id': ext_net['id']},
364 'tenant_id': '1'} 365 'tenant_id': '1',
366 'availability_zone_hints': ['nova']}
365 TEST.api_routers.add(router_dict) 367 TEST.api_routers.add(router_dict)
366 TEST.routers.add(neutron.Router(router_dict)) 368 TEST.routers.add(neutron.Router(router_dict))
367 router_dict = {'id': '10e3dc42-1ce1-4d48-87cf-7fc333055d6c', 369 router_dict = {'id': '10e3dc42-1ce1-4d48-87cf-7fc333055d6c',
@@ -879,3 +881,12 @@ def data(TEST):
879 {'trunk_id': tdata['trunk_id'], 881 {'trunk_id': tdata['trunk_id'],
880 'segmentation_type': 'vlan', 882 'segmentation_type': 'vlan',
881 'segmentation_id': tdata['tag_2']})) 883 'segmentation_id': tdata['tag_2']}))
884
885 # Availability Zones
886 TEST.neutron_availability_zones.add(
887 {
888 'state': 'available',
889 'resource': 'router',
890 'name': 'nova'
891 }
892 )