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

Broken Python Unit Tests in branch-2.6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.6.1
    • 2.6.1
    • None
    • None

    Description

      AMBARI-22561 seems to have broken 4 unit tests...

      ERROR: test_upgrade_23_with_type (test_oozie_server.TestOozieServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/jhurley/src/apache/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
          return func(*args, **keywargs)
        File "/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_oozie_server.py", line 1343, in test_upgrade_23_with_type
          mocks_dict = mocks_dict)
        File "/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 159, in executeScript
          method(RMFTestCase.env, *command_args)
        File "/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server.py", line 123, in pre_upgrade_restart
          OozieUpgrade.prepare_libext_directory(upgrade_type=upgrade_type)
        File "/Users/jhurley/src/apache/ambari/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server_upgrade.py", line 72, in prepare_libext_directory
          lzo_utils.install_lzo_if_needed()
        File "/Users/jhurley/src/apache/ambari/ambari-common/src/main/python/resource_management/libraries/functions/lzo_utils.py", line 85, in install_lzo_if_needed
          Script.repository_util.create_repo_files()
        File "/Users/jhurley/src/apache/ambari/ambari-common/src/main/python/resource_management/libraries/functions/repository_util.py", line 53, in create_repo_files
          if self.command_repository.version_id is None:
      AttributeError: RepositoryUtil instance has no attribute 'command_repository'
      
      ----------------------------------------------------------------------
      Total run:1200
      Total errors:4
      Total failures:0
      

      Attachments

        1. AMBARI-22575.patch
          12 kB
          Andrew Onischuk

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              jonathanhurley Jonathan Hurley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: