You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/05/10 21:40:00 UTC
[jira] [Commented] (AMBARI-21816) test_kms_server timing issue
[ https://issues.apache.org/jira/browse/AMBARI-21816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16471158#comment-16471158 ]
Hudson commented on AMBARI-21816:
---------------------------------
SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #9225 (See [https://builds.apache.org/job/Ambari-trunk-Commit/9225/])
AMBARI-21816. test_kms_server timing issue (#1235) (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=8419a1a4bb75e24896ed16c0763a84d4b5832a90])
* (edit) ambari-server/src/test/python/stacks/2.5/RANGER_KMS/test_kms_server.py
> test_kms_server timing issue
> ----------------------------
>
> Key: AMBARI-21816
> URL: https://issues.apache.org/jira/browse/AMBARI-21816
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Reporter: Doroszlai, Attila
> Assignee: Doroszlai, Attila
> Priority: Minor
> Labels: pull-request-available
> Fix For: trunk
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Python unit test in {{test_kms_server}} occasionally fails due to timing. Expected and actual output use two separate calls to get current time, which may be different if happens to be executed around the turn of a second.
> {noformat}
> FAIL: test_start_secured (test_kms_server.TestRangerKMS)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
> return func(*args, **keywargs)
> File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/RANGER_KMS/test_kms_server.py", line 522, in test_start_secured
> mode = 0644
> File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 330, in assertResourceCalled
> self.assertEquals(kwargs, resource.arguments)
> AssertionError: {'owner': 'kms', 'content': '<ranger>\n<enabled>2017-08-25 11:02:46</enabled>\n< [truncated]... != {'content': '<ranger>\n<enabled>2017-08-25 11:02:45</enabled>\n</ranger>', 'owne [truncated]...
> - {'content': '<ranger>\n<enabled>2017-08-25 11:02:46</enabled>\n</ranger>',
> ? ^
> + {'content': '<ranger>\n<enabled>2017-08-25 11:02:45</enabled>\n</ranger>',
> ? ^
> - 'group': 'kms',
> + 'group': u'kms',
> ? +
> 'mode': 420,
> - 'owner': 'kms'}
> + 'owner': u'kms'}
> ? +
> {noformat}
> Affected code: {{test_start_default}} and {{test_start_secured}} in {{ambari-server/src/test/python/stacks/2.5/RANGER_KMS/test_kms_server.py}}.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)