commit | 1e446b5d67daf32ea71d0ce3050e60445d7a5cc0 | [log] [tgz] |
---|---|---|
author | zhufl <zhu.fanglei@zte.com.cn> | Mon Oct 16 16:54:57 2017 +0800 |
committer | zhufl <zhu.fanglei@zte.com.cn> | Tue Oct 17 03:14:55 2017 +0000 |
tree | 4f8d4266afe490f348fef5735a1ac29521bd5d60 | |
parent | 46a0fa7cec5c0286755c2e9672abe25aee28bedb [diff] |
Rename scenario.manager._create_port to create_port This is to: 1. Rename scenario.manager._create_port to create_port, because it is used by testcases outside the file. 2. Remove namestart parameter from _create_port, because name is not important for scenario testcases and to use class name as the prefix of port name will be more indicative. 3. Remove self.assertIsNotNone(result, 'Unable to allocate port') because when using expect_empty_body = False, it's impossible to get a None result. http://git.openstack.org/cgit/openstack/tempest/tree/tempest/lib/services/network/base.py#n66 Change-Id: Ia1be5af5b6be33e67c5a1256208c0272ae109b39