Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Script to test Quixote moulinettes locally

Project description


Script allowing to test Quixote moulinettes locally.


pip install -r requirements.txt

How to use dulcinea

usage: [-h] -c CONFIG_FILE -i INFO_FILE [-r ROOT_DIR] moulinette_directory

positional arguments:

optional arguments:
  -h, --help                                show this help message and exit
  -c CONFIG_FILE, --config-file CONFIG_FILE json file containing the user informations
  -i INFO_FILE,	 --info-file INFO_FILE      json file containing the information of the jobs to execute
  -r ROOT_DIR,	--root-dir ROOT_DIR         directory where the jobs will be executed

Conf file example

The conf file must be given using the -c option and contain usefull meta-data to insert in the context such as the user's information

  "intra_user": "login_z",
  "intra_password": "superPassSecure",
  "gitlab_token": "superCuteToken"


In order to test the moulinette locally, the script must be able to fetch some dummy delivery to test.

Usually, it is achieved by replacing the fetching step with a "local" fetch using the fetch.copy built-in:

import quixote.fetch.copy as fetch

def fetch_by_copying():

The dummy delivery folder must contain a directory for each group_id specified in the info file which will act as dummy delivery for the specific job. See the documentation for fetch.copy.

Info file example

The info file must be given using the -i option and should contain the meta-data of all dummy deliveries.

        "module_id": 1,
        "activity_id": 1,
        "group_id": 1
        "module_id": 1,
        "activity_id": 1,
        "group_id": 2

The values for module_id and activity_id don't really matter, they are just dummy values to insert into the context. group_id however must match the directory name inside the dummy delivery folder.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for etna-dulcinea, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size etna_dulcinea-1.0.1-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page