Add assertion of name to test_list_portgroups test

Change-Id: Ic745433cd425c874b14ab99a4e326cf41a1d15cf
diff --git a/ironic_tempest_plugin/tests/api/admin/test_portgroups.py b/ironic_tempest_plugin/tests/api/admin/test_portgroups.py
index 25e1133..4a5b84b 100644
--- a/ironic_tempest_plugin/tests/api/admin/test_portgroups.py
+++ b/ironic_tempest_plugin/tests/api/admin/test_portgroups.py
@@ -31,7 +31,8 @@
         _, self.chassis = self.create_chassis()
         _, self.node = self.create_node(self.chassis['uuid'])
         _, self.portgroup = self.create_portgroup(
-            self.node['uuid'], address=data_utils.rand_mac_address())
+            self.node['uuid'], address=data_utils.rand_mac_address(),
+            name=data_utils.rand_name('portgroup'))
 
     @decorators.idempotent_id('110cd302-256b-4ddc-be10-fc6c9ad8e649')
     def test_create_portgroup_with_address(self):
@@ -69,3 +70,5 @@
                       [i['uuid'] for i in body['portgroups']])
         self.assertIn(self.portgroup['address'],
                       [i['address'] for i in body['portgroups']])
+        self.assertIn(self.portgroup['name'],
+                      [i['name'] for i in body['portgroups']])