Script to test Quixote moulinettes locally
Project description
Dulcinea
Script allowing to test Quixote moulinettes locally.
Install
pip install -r requirements.txt
How to use dulcinea
usage: dulcinea.py [-h] -c CONFIG_FILE -i INFO_FILE [-r ROOT_DIR] moulinette_directory
positional arguments:
moulinette_directory
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"
}
Blueprint
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
@quixote.fetcher
def fetch_by_copying():
fetch.copy(path_to_the_dummy_delivery_folder)
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
andactivity_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for etna_dulcinea-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3ea33b2bfad203ab14ad845d07fb1394897bae01502eb5f99c5486fde09d75f |
|
MD5 | 0c9dad9c07dc0ca97ec5f47738cccea9 |
|
BLAKE2b-256 | 1cbef73b74094e682df584c272e91f3251afb52d809809a1778b1f17d014d6ea |