1. 02 Dec, 2015 3 commits
    • Luis Araujo's avatar
      Rename the analyse command to new name report · 06909ab8
      Luis Araujo authored
      This is a more accurate name for such a command. This commit also
      updates the test unit to use the new name.
      06909ab8
    • Luis Araujo's avatar
      Add support to fetch test case attachments · 9f1384a1
      Luis Araujo authored
      Now the --attachments option of the test command will fetch all
      test run and test case attachments files.
      
      These files will be saved in a directory hierarchy of the form
      <attachments-dir>/<test-run-dir>/<test-case-dir>, and each of the files
      will be saved in the specific category for each of the test runs and
      test cases.
      
      Also the output message is much simpler now, and it will only print
      a logger info message after all the files have been saved to the
      location.
      9f1384a1
    • Luis Araujo's avatar
      Merge branch 'analyse-new-layout' · 390b3c43
      Luis Araujo authored
      390b3c43
  2. 17 Nov, 2015 1 commit
    • Luis Araujo's avatar
      Add new sections to cover all job states in the test report · d93e2f90
      Luis Araujo authored
      This commit adds new sections to cover all the possible job states
      in the analyse report.
      
      It will now show the following main categories if there are jobs
      in such a states: Failed jobs, Pending jobs, Canceled jobs and
      Successful jobs.
      d93e2f90
  3. 11 Nov, 2015 1 commit
    • Luis Araujo's avatar
      Wait for job to start when using the output --live option · 65a355c6
      Luis Araujo authored
      This commit will make the output command to wait for the job to start
      when using the --live option, or will immediately exit and print a
      message showing the current job status when not using such an option.
      
      This commit also introduces some code refactoring and cleaning, specially
      in the way the errors are handled to fit better the above changes.
      65a355c6
  4. 26 Oct, 2015 1 commit
  5. 22 Oct, 2015 3 commits
    • Luis Araujo's avatar
      Change job command line interface and output · cf269024
      Luis Araujo authored
      Now the job command will only show the job name by default if no
      other option is passed, and it will require explicitly the new
      --tests option to list the job tests.
      
      This commit also makes the command output cleaner.
      
      These changes are intended to make the job command resemble how
      the test command behaves.
      cf269024
    • Luis Araujo's avatar
      Show job failure comment if available in the report · 827a7a3a
      Luis Araujo authored
      This will show the job failure comment if it is available in the
      analyse report. This comment contains information about
      infrastructure failures for the job.
      827a7a3a
    • Luis Araujo's avatar
      Wrap XMLRPC methods inside the Connection class · 8ca1b06a
      Luis Araujo authored
      This commit wraps all the XMLRPC methods inside the Connection class
      for easy and direct access from the lqa API, which will allow (among
      other things) to abstract such a details from the external code and
      commands.
      
      One of the important changes in this commit is that now the Connection
      object will create a server proxy at once and will be referenced by
      the property self._conn which will be later used by the rest of its
      methods to access the server API.
      
      Only the XMLRPC methods currently used by the lqa tool have been added
      to the Connection class, others should be added later here if required.
      8ca1b06a
  6. 21 Oct, 2015 1 commit
  7. 20 Oct, 2015 2 commits
    • Luis Araujo's avatar
      Improve test command interface options and output · 499da27a
      Luis Araujo authored
      This commit implements the following changes to the test command
      line interface:
      
      - It now won't show the test results by default, and instead the
        command line option --no-results is replaced by the option
        -r/--results to explicitly tell the command to show the results.
      - It makes the displayed output cleaner for the --info option.
      499da27a
    • Luis Araujo's avatar
      Add the options to show all the test results in analyse · 62671b2d
      Luis Araujo authored
      This commit adds the flag -a/--all-results to the analyse command
      so it expands and show all test results (not only failed results).
      
      It sets a limit to show only 500 test results for each status, and
      it prints a message to check the bundle link for further results if
      that's the case. This limit can be ignored with the --no-limit
      option.
      
      It also refactors some of the code to be cleaner for printing the
      different test results.
      62671b2d
  8. 19 Oct, 2015 1 commit
  9. 16 Oct, 2015 5 commits
  10. 05 Oct, 2015 1 commit
    • Luis Araujo's avatar
      Add the failure_comment property · 13c41ccb
      Luis Araujo authored
      This job API property will allow to fetch the failure comment for
      the job. This can be useful for reporting and debugging job issues.
      13c41ccb
  11. 02 Oct, 2015 2 commits
  12. 29 Sep, 2015 1 commit
  13. 28 Sep, 2015 3 commits
    • Luis Araujo's avatar
      Only show some job info fields if they do exist · 1e55c0d2
      Luis Araujo authored
      This offers a more concise output only showing the info relevant
      to each job status and also avoids the error during the calculation
      of the job duration if the end_time is not yet available.
      1e55c0d2
    • Luis Araujo's avatar
      Clean error message for job bundle not found in job and test commands · f8a6a984
      Luis Araujo authored
      This commit reports a cleaner error message and will exit with code
      APPLICATION_ERROR if the job bundle is not found for the job and test
      commands.
      f8a6a984
    • Luis Araujo's avatar
      Redesign the wait API with new name: waitqueue · c4367b82
      Luis Araujo authored
      This commit makes lot of changes to the current wait API, that
      it is now renamed waitqueue since this represents more clearly what
      this API is intended to be: A queue to wait for jobs completion.
      
      The API now inherits from the list object too, since it behaves the
      same to a list except from some new methods specific to wait for
      the jobs in the queue.
      
      These changes will now primarily allow (among other things) to use
      the waitqueue API independently from the lqa_tool since it also
      properly abstracts the API behaviour from such a tool.
      c4367b82
  14. 24 Sep, 2015 2 commits
    • Luis Araujo's avatar
      Change argument name to build the job id list · e19872f8
      Luis Araujo authored
      This commit changes the special argument name from 'job_id' to
      'job_ids' to build the job id list. This is a more appropriate
      name for such an argument and fixes the case where the command
      only takes a single job id (named job_id) and doesn't need to
      build a list.
      e19872f8
    • Luis Araujo's avatar
      Add the job id range notation · aa6d5264
      Luis Araujo authored
      This commit adds a range notation to specify the JOB ID in those
      commands requirng such an argument.
      
      The notation for JOB ID's can now be a range like: '0-N' to
      process jobs with ID from 0 to N. The notation keeps also working
      fine specifying a single JOB ID, or even a combination of both,
      for example: '0 1-6 20-23 99' will work as expected
      processing each of the specific JOB ID's.
      aa6d5264
  15. 22 Sep, 2015 2 commits
    • Luis Araujo's avatar
      Add the test command · 8ad9468c
      Luis Araujo authored
      This command will show information for the tests executed
      by the specified job id. It offers several options to display the
      test results and test metadata.
      
      This command can be seen like a front-end to the test API lqa_api.test.
      8ad9468c
    • Luis Araujo's avatar
      Add the liststreams command · f1dacab6
      Luis Araujo authored
      This command will list all the bundle streams the logged in user
      has access to.
      f1dacab6
  16. 18 Sep, 2015 1 commit
    • Luis Araujo's avatar
      Add job command to fetch and display job information · 05e2874f
      Luis Araujo authored
      This commit adds the new job command at lqa_tool.commands.job.
      
      This command is used to fetch and display the information of the
      specified job ids. It is basically a command line front-end that
      directly maps to methods in the job API to show job metadata.
      05e2874f
  17. 15 Sep, 2015 2 commits
  18. 11 Sep, 2015 3 commits
  19. 10 Sep, 2015 1 commit
  20. 04 Sep, 2015 2 commits
    • Luis Araujo's avatar
      Use new Test object API in fetch_results command · e7f9cfb3
      Luis Araujo authored
      Change the fetch_results code to use the new Test object API.
      
      This commit also changes the argument variable of the command to the
      more standard name job_id.
      e7f9cfb3
    • Luis Araujo's avatar
      Map test results directly to the test_run metadata · ba8f473d
      Luis Araujo authored
      This includes all the values for the results of a test, since the
      result hash can contain different fields depending on the test, and
      it also makes the code simpler, since the test results will
      directly map to the test_run structure.
      
      This commit also removes the unused self._packages variable.
      ba8f473d
  21. 01 Sep, 2015 2 commits