shweta agarwal created CLOUDSTACK-9273:
------------------------------------------
Summary: 'listProjects' doesn't return tags 'vmstopped' or
'vmrunning' when their value is zero
Key: CLOUDSTACK-9273
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9273
Project: CloudStack
Issue Type: Test
Security Level: Public (Anyone can view this level - this is the default.)
Components: Automation
Reporter: shweta agarwal
Automating a Test case to verify that listproject api returns vmrunning and
vmstopped tags when their value is even zero
Automating against the bug
REPRO STEPS
==================
1. Create a project
2. Create a VM in this project
3. Do an API call with command like this
command=listProjects&account=admin&domainid=<YOUR DOMAIN ID HERE>&response=json
5. Take a look at the output. vmstopped tag would be missing since there are no
VMs in stopped state(assuming the newly created Vms in running', stop the VM
and run the API call now we would not get a tag vmrunning in the response
however we would observe vmstopepd tag.
EXPECTED BEHAVIOR
==================
API response should contain 'vmstopped' and 'vmrunning' when their values are
zero for API call 'listProjects'.
ACTUAL BEHAVIOR
==================
API response should contain 'vmstopped' and 'vmrunning' when their values are
zero for API call 'listProjects'.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)