[jira] [Updated] (AMBARI-21816) test_kms_server timing issue
[ https://issues.apache.org/jira/browse/AMBARI-21816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doroszlai, Attila updated AMBARI-21816: --- Resolution: Fixed Status: Resolved (was: Patch Available) > 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)
[jira] [Updated] (AMBARI-21816) test_kms_server timing issue
[ https://issues.apache.org/jira/browse/AMBARI-21816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doroszlai, Attila updated AMBARI-21816: --- Status: Patch Available (was: In Progress) > 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: 10m > 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)
[jira] [Updated] (AMBARI-21816) test_kms_server timing issue
[ https://issues.apache.org/jira/browse/AMBARI-21816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated AMBARI-21816: Labels: pull-request-available (was: ) > 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 > > > 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)
[jira] [Updated] (AMBARI-21816) test_kms_server timing issue
[ https://issues.apache.org/jira/browse/AMBARI-21816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doroszlai, Attila updated AMBARI-21816: --- Fix Version/s: (was: 3.0.0) trunk > 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: trunk > > > 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)
[jira] [Updated] (AMBARI-21816) test_kms_server timing issue
[ https://issues.apache.org/jira/browse/AMBARI-21816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Swapan Shridhar updated AMBARI-21816: - Fix Version/s: (was: 2.6.1) > 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 > > > 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] [Updated] (AMBARI-21816) test_kms_server timing issue
[ https://issues.apache.org/jira/browse/AMBARI-21816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Swapan Shridhar updated AMBARI-21816: - Fix Version/s: (was: 2.6.0) 2.6.1 > 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)