Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-5284

Unit test test_start (TestAmbariServer.TestAmbariServer) fails intermittently

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.1
    • 1.6.0
    • test
    • None

    Description

      Test has been ignored until it is fixed.

      Failed tests:
      FAIL: test_start (TestAmbariServer.TestAmbariServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "/Users/user/workspace/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
      return func(*args, **keywargs)
      File "/Users/user/workspace/ambari/ambari-server/src/test/python/TestAmbariServer.py", line 2624, in test_start
      self.assertTrue(popen_arg0 == "/bin/su")
      AssertionError

      Call of 'ambari_server.utils.locate_file' was mocked to return constant path to files on all os. It should fix this assertion error if the reason in different path of 'su' executable.

      Attachments

        Issue Links

          Activity

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: