cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boris Stoyanov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-10068) smoketest/test_iso.py reports assertion failure
Date Fri, 08 Sep 2017 11:15:00 GMT

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

Boris Stoyanov updated CLOUDSTACK-10068:
----------------------------------------
    Description: 
The following was reported from recent smoketest runs

{code}2017-09-04 11:23:16,432 - CRITICAL - FAILED: test_02_edit_iso: ['Traceback (most recent
call last):\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run\n    testMethod()\n',
'  File "/marvin/tests/smoke/test_iso.py", line 327, in test_02_edit_iso\n    "Check if image
is bootable of updated ISO"\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 553,
in assertEqual\n    assertion_func(first, second, msg=msg)\n', '  File "/usr/lib64/python2.7/unittest/case.py",
line 546, in _baseAssertEqual\n    raise self.failureException(msg)\n', 'AssertionError: Check
if image is bootable of updated ISO\n']
2017-09-04 11:24:56,797 - CRITICAL - FAILED: test_05_iso_permissions: ['Traceback (most recent
call last):\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run\n    testMethod()\n',
'  File "/marvin/tests/smoke/test_iso.py", line 480, in test_05_iso_permissions\n    "Check
ispublic permission of ISO"\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 553,
in assertEqual\n    assertion_func(first, second, msg=msg)\n', '  File "/usr/lib64/python2.7/unittest/case.py",
line 546, in _baseAssertEqual\n    raise self.failureException(msg)\n', 'AssertionError: Check
ispublic permission of ISO\n']
{code}

It appears that asserts.equal(boolean.True, str.True) which seems to be causing the issue.
Probably related to some api changes in recent PRs. Will fix the equation to str.lower() so
it'll pass. 

  was:
The following was reported from recent smoketest runs

{code}2017-09-04 11:23:16,432 - CRITICAL - FAILED: test_02_edit_iso: ['Traceback (most recent
call last):\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run\n    testMethod()\n',
'  File "/marvin/tests/smoke/test_iso.py", line 327, in test_02_edit_iso\n    "Check if image
is bootable of updated ISO"\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 553,
in assertEqual\n    assertion_func(first, second, msg=msg)\n', '  File "/usr/lib64/python2.7/unittest/case.py",
line 546, in _baseAssertEqual\n    raise self.failureException(msg)\n', 'AssertionError: Check
if image is bootable of updated ISO\n']
2017-09-04 11:24:56,797 - CRITICAL - FAILED: test_05_iso_permissions: ['Traceback (most recent
call last):\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run\n    testMethod()\n',
'  File "/marvin/tests/smoke/test_iso.py", line 480, in test_05_iso_permissions\n    "Check
ispublic permission of ISO"\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 553,
in assertEqual\n    assertion_func(first, second, msg=msg)\n', '  File "/usr/lib64/python2.7/unittest/case.py",
line 546, in _baseAssertEqual\n    raise self.failureException(msg)\n', 'AssertionError: Check
ispublic permission of ISO\n']
{code}

It appears that asserts.equal({boolean}True,{str}True) which seems to be causing the issue.
Probably related to some api changes in recent PRs. Will fix the equation to str.lower() so
it'll pass. 


> smoketest/test_iso.py reports assertion failure
> -----------------------------------------------
>
>                 Key: CLOUDSTACK-10068
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10068
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: marvin
>            Reporter: Boris Stoyanov
>
> The following was reported from recent smoketest runs
> {code}2017-09-04 11:23:16,432 - CRITICAL - FAILED: test_02_edit_iso: ['Traceback (most
recent call last):\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run\n
   testMethod()\n', '  File "/marvin/tests/smoke/test_iso.py", line 327, in test_02_edit_iso\n
   "Check if image is bootable of updated ISO"\n', '  File "/usr/lib64/python2.7/unittest/case.py",
line 553, in assertEqual\n    assertion_func(first, second, msg=msg)\n', '  File "/usr/lib64/python2.7/unittest/case.py",
line 546, in _baseAssertEqual\n    raise self.failureException(msg)\n', 'AssertionError: Check
if image is bootable of updated ISO\n']
> 2017-09-04 11:24:56,797 - CRITICAL - FAILED: test_05_iso_permissions: ['Traceback (most
recent call last):\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run\n
   testMethod()\n', '  File "/marvin/tests/smoke/test_iso.py", line 480, in test_05_iso_permissions\n
   "Check ispublic permission of ISO"\n', '  File "/usr/lib64/python2.7/unittest/case.py",
line 553, in assertEqual\n    assertion_func(first, second, msg=msg)\n', '  File "/usr/lib64/python2.7/unittest/case.py",
line 546, in _baseAssertEqual\n    raise self.failureException(msg)\n', 'AssertionError: Check
ispublic permission of ISO\n']
> {code}
> It appears that asserts.equal(boolean.True, str.True) which seems to be causing the issue.
Probably related to some api changes in recent PRs. Will fix the equation to str.lower() so
it'll pass. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message