Просмотр исходного кода

AMBARI-5984. Ganglia directory customization failing on trunk on perf cluster (aonishuk)

Andrew Onishuk 11 лет назад
Родитель
Сommit
902e62f21c

+ 0 - 5
ambari-server/src/test/python/stacks/1.3.2/GANGLIA/test_ganglia_server.py

@@ -21,8 +21,6 @@ limitations under the License.
 from stacks.utils.RMFTestCase import *
 from mock.mock import MagicMock, call, patch
 
-@patch("os.path.exists", new = MagicMock(return_value=False))
-@patch("os.path.islink", new = MagicMock(return_value=False))
 class TestGangliaServer(RMFTestCase):
 
   def test_configure_default(self):
@@ -183,9 +181,6 @@ class TestGangliaServer(RMFTestCase):
         group = "root",
         mode = 0755,
     )
-    self.assertResourceCalled('Directory', '/var/lib/ganglia/rrds',
-        action = ['delete'],
-    )
     self.assertResourceCalled('Directory', '/var/lib/ganglia/rrds',
         owner = 'nobody',
         group = 'nobody',

+ 0 - 5
ambari-server/src/test/python/stacks/2.0.6/GANGLIA/test_ganglia_server.py

@@ -21,8 +21,6 @@ limitations under the License.
 from stacks.utils.RMFTestCase import *
 from mock.mock import MagicMock, call, patch
 
-@patch("os.path.exists", new = MagicMock(return_value=False))
-@patch("os.path.islink", new = MagicMock(return_value=False))
 class TestGangliaServer(RMFTestCase):
 
   def test_configure_default(self):
@@ -173,9 +171,6 @@ class TestGangliaServer(RMFTestCase):
                               group = "root",
                               mode = 0755,
                               )
-    self.assertResourceCalled('Directory', '/var/lib/ganglia/rrds',
-                              action = ['delete'],
-                              )
     self.assertResourceCalled('Directory', '/var/lib/ganglia/rrds',
                               owner = 'nobody',
                               group = 'nobody',