Voici la documentation : https://geoplateforme.pages.gpf-tech.ign.fr/documentation

Skip to content
Extraits de code Groupes Projets

test(docker): add dependencies to test publication with docker compose

Fusionnées Benoît Blanc a demandé de fusionner test/update_docker_compose vers main
4 fichiers
+ 69
5
Comparer les modifications
  • Côte à côte
  • En ligne
Fichiers
4
@@ -6,17 +6,21 @@
pip install -U -r requirements/testing.txt
```
## Lancement des dépendances (Postgres, RabbitMQ, Minio)
## Lancement des dépendances (Postgres, RabbitMQ, Minio, Road2)
Nécessite une version de `docker compose` >= 1.27
```bash
docker-compose -f tests/dev/docker-compose.dev.yml up -d
docker compose -f tests/dev/docker-compose.dev.yml up -d
```
Le serveur minio contient des stored_data qui peuvent être utilisées pour tester l'agent
Le serveur minio contient des stored_data qui peuvent être utilisées pour tester l'agent.
L'agent de publication est également démarré dans un container.
## Tests manuels
Démarrage de l'agent de publication :
Démarrage de l'agent de publication (en local) :
```bash
gpf-pub-agent-road2 -v
@@ -28,8 +32,13 @@ Dans un nouveau terminal, afin d'envoyer des messages sur le bus :
python tests/dev/mime_api_entrepot.py -f tests/fixtures/publication_itinerary_pgr/configuration.json
python tests/dev/mime_api_entrepot.py -f tests/fixtures/publication_itinerary_osrm/configuration.json
python tests/dev/mime_api_entrepot.py -f tests/fixtures/publication_itinerary_valhalla/configuration.json
python tests/dev/mime_api_entrepot.py -f tests/fixtures/unpublish_itinerary_pgr/configuration.json
python tests/dev/mime_api_entrepot.py -f tests/fixtures/unpublish_itinerary_osrm/configuration.json
python tests/dev/mime_api_entrepot.py -f tests/fixtures/unpublish_itinerary_valhalla/configuration.json
```
Si les containers Docker ont été démarré précédemment, les publications se font dans le container Road2.
## Lancement des tests unitaires
```bash
Chargement en cours