Api tests to cover network mtu attribute

Including Api tests to check for network object
to include new mtu attributes.

Change-Id: Iaa295b03715c3df4585ae443ddd655df1f107dc5
This commit is contained in:
Pradeep Kilambi 2015-03-17 13:03:03 -07:00
parent 41486020f6
commit 74e5f9a6ac
1 changed files with 3 additions and 3 deletions

View File

@ -205,14 +205,14 @@ class NetworksTestJSON(base.BaseNetworkTest):
# Verify the details of a network
body = self.client.show_network(self.network['id'])
network = body['network']
for key in ['id', 'name']:
for key in ['id', 'name', 'mtu']:
self.assertEqual(network[key], self.network[key])
@test.attr(type='smoke')
@test.idempotent_id('867819bb-c4b6-45f7-acf9-90edcf70aa5e')
def test_show_network_fields(self):
# Verify specific fields of a network
fields = ['id', 'name']
fields = ['id', 'name', 'mtu']
body = self.client.show_network(self.network['id'],
fields=fields)
network = body['network']
@ -233,7 +233,7 @@ class NetworksTestJSON(base.BaseNetworkTest):
@test.idempotent_id('6ae6d24f-9194-4869-9c85-c313cb20e080')
def test_list_networks_fields(self):
# Verify specific fields of the networks
fields = ['id', 'name']
fields = ['id', 'name', 'mtu']
body = self.client.list_networks(fields=fields)
networks = body['networks']
self.assertNotEmpty(networks, "Network list returned is empty")