bstinson / rats

Forked from rats 5 years ago
Clone
README.rst

RATS

Author:Pierre-Yves Chibon <pingou@pingoured.fr>

RATS is the Run Another Test Service, an application aimed to be an API used by consumers (such as Bodhi or Pagure) to ask for a certain test to be re-run by the test system (that will need to listen to this rats' messages).

Homepage: https://pagure.io/rats

Get it running

Manually

  • Install the needed system libraries:

    sudo dnf install git python2-virtualenv
    

    Note

    On Fedora 23 and earlier or on RHEL and derivative (CentOS, Scientific Linux) the package python2-virtualenv is named python-virtualenv

  • Retrieve the sources:

    git clone https://pagure.io/rats.git
    cd rats
    
  • Install dependencies

    • create the virtualenv:

      virtualenv rats_env
      source ./rats_env/bin/activate
      
    • Install the dependencies:

      pip install -r requirements.txt
      
  • Create rats/client_secrets.json:

    cd rats
    oidc-register https://iddev.fedorainfracloud.org http://localhost:5050
    
  • Run the webserver:

    ./runserver.py
    
  • To get some profiling information you can also run it as:

    ./runserver.py --profile
    

This will launch the application at http://localhost:5050

  • Run the worker:

    celery worker -A rats.lib.tasks
    
  • To run unit-tests:

    • Install the dependencies:

      pip install -r test-requirements.txt
      
    • Run it:

      nosetests