QA:Testcase Retrace Server CLI
From FedoraProject
Description
This test case tests Retrace Server's command line interface.
How to test
You need ABRT crashes (whole directories) that need retrace - caught by CCpp.
- Run
abrt-retrace-client create -d /path/ABRT_crash_directory - Run
abrt-retrace-client create -k -d /path/ABRT_crash_directory, the-koption disables HTTPS certificate check. - Run
abrt-retrace-client status -k -t task_id -p task_passwordwith task_id and task_password obtained fromcreateaction. - Run
abrt-retrace-client status -k -t task_id -p task_passwordwith a wrong combination of task_id and task_password. - Run
abrt-retrace-client log -k -t task_id -p task_passwordwhile the job is stillPENDING. - Run
abrt-retrace-client log -k -t task_id -p task_passwordafter the job is finished (by success or failure). - Run
abrt-retrace-client backtrace -k -t task_id -p task_passwordafter the job is finished successfully. - Run
abrt-retrace-client backtrace -k -t task_id -p task_passwordafter the job is finished by failure. - Run
abrt-retrace-client batch -k -d /path/ABRT_crash_directory. - Run
abrt-retrace-client create -d /path/ABRT_crash_directory, replacing coredump, executable or package file by some random content. - Run
abrt-retrace-client create -d /path/ABRT_crash_directory --url URL, with URL different toretrace01.fedoraproject.org.
Expected Results
- The command should fail because of untrusted HTTPS certificate.
- The job should be started, task_id and task_password returned on stdout.
- One of the values
PENDING,FINISHED_SUCCESS,FINISHED_FAILUREshould be returned on stdout. - HTTP
404 Not Foundor403 Forbiddenerror code should be returned depending on whether task with task_id exists or not. Should be the same withlogandbacktraceactions. - HTTP
404 Not Founderror code should be returned. Should be the same withbacktraceaction. - Plaintext log should be returned on stdout.
- Plaintext backtrace should be returned on stdout.
- HTTP
404 Not Founderror code should be returned. - All actions should happen at once - create, periodically ask for status, download log / backtrace depending on whether the result was successful or not.
- The task should finish by failure.
- The upload should fail.