You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Chandan Purushothama (JIRA)" <ji...@apache.org> on 2014/07/08 01:19:34 UTC
[jira] [Updated] (CLOUDSTACK-7044) [Automation] Remove
"getPortableIpRangeServices" from common.py and move portableIpRange
information to test_data.py
[ https://issues.apache.org/jira/browse/CLOUDSTACK-7044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chandan Purushothama updated CLOUDSTACK-7044:
---------------------------------------------
Issue Type: Test (was: Bug)
> [Automation] Remove "getPortableIpRangeServices" from common.py and move portableIpRange information to test_data.py
> --------------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-7044
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7044
> Project: CloudStack
> Issue Type: Test
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: Automation, Test
> Affects Versions: 4.5.0
> Reporter: Chandan Purushothama
> Fix For: 4.5.0
>
>
> We do not have cloudstack config files present in the code. Hence anyone new who wants to run the test_portable_ip.py test cases do not have any information about what needs to be provided in the config file for the tests execution. Pushing such data to test_data.py gives an idea about what data should be used.
> Kindly remove the below method from common.py and add the data to test_data.py. Please remove the method references from test_portable_ip.py too.
> def getPortableIpRangeServices(config):
> """ Reads config values related to portable ip and fills up
> services accordingly"""
> services = {}
> attributeError = False
> if config.portableIpRange.startip:
> services["startip"] = config.portableIpRange.startip
> else:
> attributeError = True
> if config.portableIpRange.endip:
> services["endip"] = config.portableIpRange.endip
> else:
> attributeError = True
> if config.portableIpRange.netmask:
> services["netmask"] = config.portableIpRange.netmask
> else:
> attributeError = True
> if config.portableIpRange.gateway:
> services["gateway"] = config.portableIpRange.gateway
> else:
> attributeError = True
> if config.portableIpRange.vlan:
> services["vlan"] = config.portableIpRange.vlan
> if attributeError:
> services = FAILED
> return services
--
This message was sent by Atlassian JIRA
(v6.2#6252)