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

Python UT fail on trunk

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.5.0
    • None
    • None

    Description

      ----------------------------------------------------------------------
      Failed tests:
      FAIL: test_service_check (test_service_check.TestAtlasCheck)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "/home/user/ambari/ambari-server/src/test/python/stacks/2.3/ATLAS/test_service_check.py", line 40, in test_service_check
      try_sleep = 10)
      File "/home/user/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 281, in assertResourceCalled
      self.assertEquals(name, resource.name)
      AssertionError: 'curl -s -o /dev/null -w "%

      {http_code}" http://c6401.ambari.apache.org:21000/' != u'curl -k -s -o /dev/null -w "%{http_code}

      " http://c6401.ambari.apache.org:21000/'

      FAIL: test_service_check_secure (test_service_check.TestAtlasCheck)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "/home/user/ambari/ambari-server/src/test/python/stacks/2.3/ATLAS/test_service_check.py", line 60, in test_service_check_secure
      try_sleep = 10)
      File "/home/user/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 281, in assertResourceCalled
      self.assertEquals(name, resource.name)
      AssertionError: 'curl --negotiate -u : -b ~/cookiejar.txt -c ~/cookiejar.txt -s -o /dev/null -w "%

      {http_code}" https://c6401.ambari.apache.org:21443/' != u'curl -k --negotiate -u : -b ~/cookiejar.txt -c ~/cookiejar.txt -s -o /dev/null -w "%{http_code}

      " https://c6401.ambari.apache.org:21443/'

      ----------------------------------------------------------------------
      Total run:1126
      Total errors:0
      Total failures:2
      ERROR
      INFO: AMBARI_SERVER_LIB is not set, using default /usr/lib/ambari-server
      INFO: Return code from stack upgrade command, retcode = 0
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] Ambari Views ...................................... SUCCESS [2.258s]
      [INFO] Ambari Metrics Common ............................. SUCCESS [1.391s]
      [INFO] Ambari Server ..................................... FAILURE [1:17.985s]
      [INFO] Ambari Agent ...................................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1:26.129s
      [INFO] Finished at: Thu Sep 22 13:49:12 EEST 2016
      [INFO] Final Memory: 84M/1187M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (python-test) on project ambari-server: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR] mvn <goals> -rf :ambari-server

      Attachments

        1. AMBARI-18442.patch
          2 kB
          Andrew Onischuk

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: