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

Increase ambari-agent test coverage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.4
    • 1.2.4
    • None
    • None

    Description

      ActionQueue.py

      • missing "Unrecognized command" testcase (L. 173)
      • /src/test/python/TestActionQueue.py:42 unused test_RetryAction stub (retry is implemented in another way)
      • /src/main/python/ambari_agent/ActionQueue.py:221 not covered case if commandresult['exitcode'] != 0:
      • /src/main/python/ambari_agent/ActionQueue.py:247 not covered case if command.has_key('roleCommand') and command['roleCommand'] == 'START':

      PuppetExecutor.py

      • configureEnviron/generate_repo_manifests/run_manifest/runCommand are not covered.

      PythonExecutor.py

      • isSuccessfull is not tested

      RepoInstaller.py

      • prepareReposInfo/generateFiles are not covered

      shell.py

      • is not covered

      Attachments

        1. AMBARI-2217.patch
          22 kB
          Sumit Mohanty
        2. AMBARI-2217-II.patch
          4 kB
          Sumit Mohanty

        Activity

          People

            sumitmohanty Sumit Mohanty
            sumitmohanty Sumit Mohanty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: