You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/07/22 20:32:38 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14070650#comment-14070650 ] 

ASF subversion and git services commented on CLOUDSTACK-7044:
-------------------------------------------------------------

Commit 613eb12104af5c27935091127a1a19941f96e336 in cloudstack's branch refs/heads/master from [~ashutoshk]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=613eb12 ]

CLOUDSTACK-7044: Portable IP Range test case changes - reading portable ip range from test_data.py file


> [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
>            Assignee: Ashutosk Kelkar
>             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)