AMBARI-17427. Support Atlas in kerberized environment, submit Service Check as smokeuser (dlysnichenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/48a8a072 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/48a8a072 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/48a8a072 Branch: refs/heads/trunk Commit: 48a8a072dd9cff1513bc9cbd803b5219abfa9b83 Parents: 15ecedf Author: Lisnichenko Dmitro <[email protected]> Authored: Thu Jun 30 17:43:47 2016 +0300 Committer: Lisnichenko Dmitro <[email protected]> Committed: Thu Jun 30 19:19:34 2016 +0300 ---------------------------------------------------------------------- .../ATLAS/0.1.0.2.3/package/scripts/service_check.py | 2 +- .../src/test/python/stacks/2.3/ATLAS/test_service_check.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/48a8a072/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/service_check.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/service_check.py b/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/service_check.py index 7887583..05ffc14 100644 --- a/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/service_check.py +++ b/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/service_check.py @@ -36,7 +36,7 @@ class AtlasServiceCheck(Script): user=params.smoke_test_user) try: - Execute(params.smoke_cmd, user=params.metadata_user, tries = 5, + Execute(params.smoke_cmd, user=params.smoke_test_user, tries = 5, try_sleep = 10) Logger.info('Atlas server up and running') except: http://git-wip-us.apache.org/repos/asf/ambari/blob/48a8a072/ambari-server/src/test/python/stacks/2.3/ATLAS/test_service_check.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/python/stacks/2.3/ATLAS/test_service_check.py b/ambari-server/src/test/python/stacks/2.3/ATLAS/test_service_check.py index a8b54cb..b9dd736 100644 --- a/ambari-server/src/test/python/stacks/2.3/ATLAS/test_service_check.py +++ b/ambari-server/src/test/python/stacks/2.3/ATLAS/test_service_check.py @@ -35,7 +35,7 @@ class TestAtlasCheck(RMFTestCase): ) self.assertResourceCalled('Execute', 'curl -s -o /dev/null -w "%{http_code}" http://c6401.ambari.apache.org:21000/', - user = 'atlas', + user = 'ambari-qa', tries = 5, try_sleep = 10) @@ -55,7 +55,7 @@ class TestAtlasCheck(RMFTestCase): user = 'ambari-qa') self.assertResourceCalled('Execute', 'curl --negotiate -u : -b ~/cookiejar.txt -c ~/cookiejar.txt -s -o /dev/null -w "%{http_code}" https://c6401.ambari.apache.org:21443/', - user = 'atlas', + user = 'ambari-qa', tries = 5, try_sleep = 10)
