[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=16214645#comment-16214645 ] Swapan Shridhar commented on AMBARI-21816: -- Moving it out of Ambari 2.6 to 2.6.1, as I have to start the release process for Ambari 2.6. > 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 >Priority: Minor > Fix For: 3.0.0, 2.6.1 > > > 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': '\n2017-08-25 > 11:02:46\n< [truncated]... != {'content': > '\n2017-08-25 11:02:45\n', 'owne > [truncated]... > - {'content': '\n2017-08-25 11:02:46\n', > ? ^ > + {'content': '\n2017-08-25 11:02:45\n', > ? ^ > - '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 (v6.4.14#64029)
[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=16284292#comment-16284292 ] Swapan Shridhar commented on AMBARI-21816: -- Moved it to 3.0 as I am started the 2.6.1 release process. > 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 >Priority: Minor > Fix For: 3.0.0, 2.6.1 > > > 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': '\n2017-08-25 > 11:02:46\n< [truncated]... != {'content': > '\n2017-08-25 11:02:45\n', 'owne > [truncated]... > - {'content': '\n2017-08-25 11:02:46\n', > ? ^ > + {'content': '\n2017-08-25 11:02:45\n', > ? ^ > - '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 (v6.4.14#64029)
[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': '\n2017-08-25 > 11:02:46\n< [truncated]... != {'content': > '\n2017-08-25 11:02:45\n', 'owne > [truncated]... > - {'content': '\n2017-08-25 11:02:46\n', > ? ^ > + {'content': '\n2017-08-25 11:02:45\n', > ? ^ > - '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)