This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 8fb5e54 AMBARI-24087. Fix test_missing_configs (#1611)
8fb5e54 is described below
commit 8fb5e54776062c52b847fb01b0d7690b794c04d4
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Mon Jun 25 21:22:39 2018 +0200
AMBARI-24087. Fix test_missing_configs (#1611)
---
.../stacks/2.0.6/HDFS/test_alert_datanode_unmounted_data_dir.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_alert_datanode_unmounted_data_dir.py
b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_alert_datanode_unmounted_data_dir.py
index 48fd983..3bdec79 100644
---
a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_alert_datanode_unmounted_data_dir.py
+++
b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_alert_datanode_unmounted_data_dir.py
@@ -54,8 +54,9 @@ class TestAlertDataNodeUnmountedDataDir(RMFTestCase):
sys.path.append(file_path)
global alert
import alert_datanode_unmounted_data_dir as alert
-
- def test_missing_configs(self):
+
+
@patch("resource_management.libraries.functions.file_system.get_and_cache_mount_points")
+ def test_missing_configs(self, get_and_cache_mount_points_mock):
"""
Check that the status is UNKNOWN when configs are missing.
"""