Flux typiques du CLI
Lancer un scénario et le tester (agent / CI)
Section intitulée « Lancer un scénario et le tester (agent / CI) »aseptic start "Paiement de commandes" --json # démarre Docker si besoin et attend healthyaseptic status --json # URLs effectives de chaque micro# ... appels HTTP de test contre ces URLs ...aseptic stopaseptic daemon stopstart démarre déjà Docker tout seul. Si votre CI le lance de l’extérieur, ajoutez
--no-docker.
Définir un mock et le vérifier
Section intitulée « Définir un mock et le vérifier »aseptic mock operations catalog-coreaseptic mock skeleton catalog-core GET /catalog/api/v1/scopes > body.jsonaseptic mock save catalog-core --data '{"method":"GET","pathPrefix":"/catalog/api/v1/scopes","active":0,"variants":[{"label":"200","status":200,"jsonBody":[]}]}'aseptic mock probe GET /catalog/api/v1/scopesPartager un scénario
Section intitulée « Partager un scénario »aseptic scenario export "Paiement de commandes" --include-run# (envoyer le .aseptic.yml) ... et sur l'autre machine :aseptic scenario import paiement-de-commandes.aseptic.yml # voir le planaseptic scenario import paiement-de-commandes.aseptic.yml --apply --mocks unionDéboguer un micro qui échoue
Section intitulée « Déboguer un micro qui échoue »aseptic statusaseptic logs orders-core -n 500aseptic logs --errorsaseptic restart orders-coreaseptic logs orders-core -f