ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doroszlai, Attila (JIRA)" <>
Subject [jira] [Created] (AMBARI-21816) test_kms_server timing issue
Date Fri, 25 Aug 2017 12:06:00 GMT
Doroszlai, Attila created AMBARI-21816:

             Summary: test_kms_server timing issue
                 Key: AMBARI-21816
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
            Reporter: Doroszlai, Attila
            Priority: Minor
             Fix For: 3.0.0, 2.6.0

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.

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/",
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/",
line 522, in test_start_secured
    mode = 0644
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/",
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'}
?           +


Affected code: {{test_start_default}} and {{test_start_secured}} in {{ambari-server/src/test/python/stacks/2.5/RANGER_KMS/}}.

This message was sent by Atlassian JIRA

View raw message