cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Santhosh Kumar Edukulla (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-6164) [Automation]: Alter base.py for Host Create changes
Date Mon, 24 Feb 2014 15:07:19 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-6164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Santhosh Kumar Edukulla updated CLOUDSTACK-6164:
------------------------------------------------

    Description: 
Currently,Host class has a create method, uses addHost Command, but

1. It does not verify the output of addHost command is valid output in all forms. 
2. Tests some times directly goes to using Host post Host.create, but we are not sure whether
the host is up or not, they have to explicitly call again listHosts api call, so every where
host is added list host is called. Instead, the create method now returns the FAILED or host
object based upon the api success and whether the host is up.
3. Added a try\except block and return FAILED to tests in case of an exception.



  was:
Currently,Host class has a create method and use addHost Command. 

1. It does not verify the output of addHost command is valid output in all forms. 
2. Tests some times directly goes to using Host post Host.create, but we are not sure whether
the host is up or not, they have to explicitly call again listHosts api call, so every where
host is added list host is called. Instead, the create method now returns the FAILED or host
object based upon the api success and whether the host is up.
3. Added a try\except block and return FAILED to tests in case of an exception.




> [Automation]: Alter base.py for Host Create changes
> ---------------------------------------------------
>
>                 Key: CLOUDSTACK-6164
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6164
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: Santhosh Kumar Edukulla
>            Assignee: Santhosh Kumar Edukulla
>
> Currently,Host class has a create method, uses addHost Command, but
> 1. It does not verify the output of addHost command is valid output in all forms. 
> 2. Tests some times directly goes to using Host post Host.create, but we are not sure
whether the host is up or not, they have to explicitly call again listHosts api call, so every
where host is added list host is called. Instead, the create method now returns the FAILED
or host object based upon the api success and whether the host is up.
> 3. Added a try\except block and return FAILED to tests in case of an exception.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message