Following tests are failing when I run 'mvn clean tests' on ambari-server
with latest trunk code.

test_start_ha_default
test_start_ha_secured
test_service_check_default
test_service_check_secured
test_service_check_default
test_service_check_secured


All have same error message: NameError: global name 'as_user' is not
defined

Example:

ERROR: test_service_check_secured (test_service_check.TestServiceCheck)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vagrant/ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File
"/home/vagrant/ambari/ambari-server/src/test/python/stacks/1.3.2/HDFS/test_service_check.py",
line 40, in test_service_check_secured
    config_file="secured.json"
  File
"/home/vagrant/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 118, in executeScript
    method(RMFTestCase.env)
  File
"/home/vagrant/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/stacks/HDP/1.3.2/services/HDFS/package/scripts/service_check.py",
line 35, in service_check
    test_dir_exists = as_user(format("hadoop fs -test -e {dir}"),
params.smoke_user)
NameError: global name 'as_user' is not defined

----------------------------------------------------------------------

Is there something that I am missing?

-Pankaj

Reply via email to