[
https://issues.apache.org/jira/browse/CLOUDSTACK-7353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14100685#comment-14100685
]
ASF subversion and git services commented on CLOUDSTACK-7353:
-------------------------------------------------------------
Commit bbd1da19d4c4e7e9c0aa5754aa4df43520a86370 in cloudstack's branch
refs/heads/master from [~gpshilamkar]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=bbd1da1 ]
CLOUDSTACK-7353: Fixed issue with list VM in test_projects.py
> [Automation] Test case test_09_project_suspend, trying list VM under project
> after deleting this
> -------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-7353
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7353
> Project: CloudStack
> Issue Type: Test
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Automation
> Affects Versions: 4.5.0
> Reporter: Rayees Namathponnan
> Assignee: Girish Shilamkar
> Fix For: 4.5.0
>
>
> Run the test
> integration.component.test_projects.TestProjectSuspendActivate.test_09_project_suspend
>
> This test case fails with below error
> {noformat}
> est_09_project_suspend
> (integration.component.test_projects.TestProjectSuspendActivate): DEBUG:
> ===Jobid:0655909d-4dbc-4bab-aabb-ccd532ff7435 ; StartTime:Thu Aug 14 13:26:44
> 2014 ; EndTime:Thu Aug 14 13:26:54 2014 ; TotalTime:-10===
> test_09_project_suspend
> (integration.component.test_projects.TestProjectSuspendActivate): DEBUG:
> Response : {jobprocstatus : 0, created : u'2014-08-14T17:13:43-0700',
> jobresult : {affinitygroup : [], nic : [], securitygroup : [], tags : []},
> cmd : u'org.apache.cloudstack.api.command.admin.vm.DestroyVMCmdByAdmin',
> userid : u'db822ed4-23f9-11e4-9ac6-1a6f7bb0d0a8', jobstatus : 1, jobid :
> u'0655909d-4dbc-4bab-aabb-ccd532ff7435', jobresultcode : 0, jobinstanceid :
> u'2def69e5-cb26-4506-8069-3237f049498b', jobresulttype : u'object',
> jobinstancetype : u'VirtualMachine', accountid :
> u'db8223a8-23f9-11e4-9ac6-1a6f7bb0d0a8'}
> test_09_project_suspend
> (integration.component.test_projects.TestProjectSuspendActivate): DEBUG:
> Destroying VM: 2def69e5-cb26-4506-8069-3237f049498b
> test_09_project_suspend
> (integration.component.test_projects.TestProjectSuspendActivate): DEBUG:
> Payload: {'apiKey':
> u'uBqUNp_2XuCg6uwv_LMLO2W6drySk_RYAiVlcdSda1yBfLTiC2SAlFk2LX9HLLpPkAs0zoTzASxzSN0OSUnfoQ',
> 'projectid': u'463389ae-64fc-42b4-a555-a15dbbe455e4', 'response': 'json',
> 'listall': True, 'command': 'listVirtualMachines', 'signature':
> 'mzQe0vheGxDPynM+QkNzOJv12d8='}
> test_09_project_suspend
> (integration.component.test_projects.TestProjectSuspendActivate): DEBUG:
> ========Sending GET Cmd : listVirtualMachines=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection
> (1): 10.223.49.195
> requests.packages.urllib3.connectionpool: DEBUG: "GET
> /client/api?apiKey=uBqUNp_2XuCg6uwv_LMLO2W6drySk_RYAiVlcdSda1yBfLTiC2SAlFk2LX9HLLpPkAs0zoTzASxzSN0OSUnfoQ&projectid=463389ae-64fc-42b4-a555-a15dbbe455e4&command=listVirtualMachines&signature=mzQe0vheGxDPynM%2BQkNzOJv12d8%3D&response=json&listall=True
> HTTP/1.1" 200 39
> test_09_project_suspend
> (integration.component.test_projects.TestProjectSuspendActivate): DEBUG:
> Response : None
> test_09_project_suspend
> (integration.component.test_projects.TestProjectSuspendActivate): CRITICAL:
> FAILED: test_09_project_suspend: ['Traceback (most recent call last):\n', '
> File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run\n
> testMethod()\n', ' File
> "/Repo_30X/ipcl/cloudstack/test/integration/component/test_projects.py", line
> 1625, in test_09_project_suspend\n "Check for a valid list accounts
> response"\n', ' File "/usr/local/lib/python2.7/unittest/case.py", line 494,
> in assertEqual\n assertion_func(first, second, msg=msg)\n', ' File
> "/usr/local/lib/python2.7/unittest/case.py", line 487, in _baseAssertEqual\n
> raise self.failureException(msg)\n', 'AssertionError: Check for a valid
> list accounts response\n']
> --------------------- >> end captured logging << ---------------------
> Stacktrace
> File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run
> testMethod()
> File
> "/Repo_30X/ipcl/cloudstack/test/integration/component/test_projects.py", line
> 1625, in test_09_project_suspend
> "Check for a valid list accounts response"
> File "/usr/local/lib/python2.7/unittest/case.py", line 494, in assertEqual
> assertion_func(first, second, msg=msg)
> File "/usr/local/lib/python2.7/unittest/case.py", line 487, in
> _baseAssertEqual
> raise self.failureException(msg)
> 'Check for a valid list accounts response\n-------------------- >> begin
> captured stdout << ---------------------\n=== TestName:
> test_09_project_suspend | Status : FAILED ===\n\n\n--------------------- >>
> end captured stdout << ----------------------\n-------------------- >> begin
> captured logging <<
> --------------------\ntest_08_cleanup_after_project_delete (int
> {noformat}
> Test case trying to list the VMs under project, after deleting the VM
> {noformat}
> 1612 # Destroy Stopped VM
> 1613 virtual_machine.delete(self.apiclient)
> 1614 self.debug("Destroying VM: %s" % virtual_machine.id)
> 1615
> 1616 # Check status of all VMs associated with project
> 1617 vms = VirtualMachine.list(
> 1618 self.apiclient,
> 1619 projectid=self.project.id,
> 1620 listall=True
> 1621 )
> 1622 self.assertEqual(
> 1623 isinstance(vms, list),
> 1624 True,
> 1625 "Check for a valid list accounts response"
> 1626 )
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)