[
https://issues.apache.org/jira/browse/AMBARI-9300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yurii Shylov updated AMBARI-9300:
---------------------------------
Attachment: AMBARI-9300.patch
> Tests fail with python 2.6
> --------------------------
>
> Key: AMBARI-9300
> URL: https://issues.apache.org/jira/browse/AMBARI-9300
> Project: Ambari
> Issue Type: Bug
> Components: ambari-agent
> Affects Versions: 2.0.0
> Reporter: Yurii Shylov
> Assignee: Yurii Shylov
> Fix For: 2.0.0
>
> Attachments: AMBARI-9300.patch
>
>
> Test fails with next error:
> {code}
> ======================================================================
> ERROR: test_get_params_from_filesystem_JAAS
> (TestSecurityCommons.TestSecurityCommons)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/var/lib/jenkins/workspace/test-your-branch-python/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py",
> line 146, in test_get_params_from_filesystem_JAAS
> self.assertIn('test_jaas', result)
> AttributeError: 'TestSecurityCommons' object has no attribute 'assertIn'
> ----------------------------------------------------------------------
> {code}
> According to [unittest
> documentation|https://docs.python.org/2/library/unittest.html] assertIn was
> added in python 2.7:
> || Method||Checks that||New in||
> |assertIn(a, b)|a in b|2.7|
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)