| commit | 6361797c7345888df3158f1e92988ddb244c66b6 | [log] [tgz] | 
|---|---|---|
| author | zhufl <zhu.fanglei@zte.com.cn> | Wed Nov 16 16:59:41 2016 +0800 | 
| committer | zhufl <zhu.fanglei@zte.com.cn> | Thu Nov 17 10:29:59 2016 +0800 | 
| tree | 720110e6bda9ddfcaf8e040bc3df7094715a825a | |
| parent | 8696cc815ab69aa9d7de6147ed9f40bbebff2115 [diff] | 
Move list_hosts to resource_setup in test_hosts_negative In HostsAdminNegativeTestJSON, hosts can be get in resource_setup to avoid getting them repeatedly in each testcase. Besides, when a nonexistent hostname is needed, we can use the string 'nonexistent_hostname' directly instead of creating a random host name. Thus the whole code will look clearer. Change-Id: Icbd10ec5cd0356763634ad4f92cad85e32d71ee6