Set-OPS-Public/promo/formation/dev-02/slides/pratique.html

26 lines
3.9 KiB
HTML
Raw Normal View History

<section id="pratique" data-transition="fade" style="background:#F3F5FA;color:#0E1530;font-family:'IBM Plex Sans', Arial, sans-serif;padding:128px 128px 160px;display:flex;flex-direction:column;gap:40px">
<div style="display:flex;flex-direction:column;gap:16px">
<p style="font-size:24px;letter-spacing:3px;text-transform:uppercase;color:#0A6B78;font-weight:600">Pratique · sur votre poste</p>
<h2 style="font-family:'Source Serif 4', Georgia, serif;font-size:72px;font-weight:400;line-height:1.1;color:#0E1530">Faire refuser son contrat.</h2>
</div>
<div style="display:flex;gap:48px;align-items:stretch">
<div style="width:820px;display:flex;flex-direction:column;gap:12px">
<p style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:22px;color:#0E1530;background:#E3E8F2;padding:12px 18px;border-radius:10px">git clone &lt;Set-OPS-public&gt; &amp;&amp; cd Set-OPS-public</p>
<p style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:22px;color:#0E1530;background:#E3E8F2;padding:12px 18px;border-radius:10px">python3 scripts/app_contrat.py verifier ../mon-application</p>
<p style="font-size:24px;color:#5A6785">puis, une à une :</p>
<p style="font-size:24px;color:#5A6785"> ajoutez une clé inventée</p>
<p style="font-size:24px;color:#5A6785"> retirez <span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">{port}</span> de <span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">demarrer</span></p>
<p style="font-size:24px;color:#5A6785"> écrivez <span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">racine: ../ailleurs</span></p>
</div>
<div style="flex:1;display:flex;flex-direction:column;gap:20px">
<div style="display:flex;gap:16px"><p style="font-family:'Source Serif 4', Georgia, serif;font-size:36px;color:#0A6B78;width:40px">1</p><p style="font-size:28px;line-height:1.4;color:#3A4560;flex:1">Le contrat d’exemple passe-t-il tel quel ?</p></div>
<div style="display:flex;gap:16px"><p style="font-family:'Source Serif 4', Georgia, serif;font-size:36px;color:#0A6B78;width:40px">2</p><p style="font-size:28px;line-height:1.4;color:#3A4560;flex:1">Quelle faute le validateur nomme-t-il pour une clé inventée ?</p></div>
<div style="display:flex;gap:16px"><p style="font-family:'Source Serif 4', Georgia, serif;font-size:36px;color:#0A6B78;width:40px">3</p><p style="font-size:28px;line-height:1.4;color:#3A4560;flex:1">Et sans <span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">{port}</span> dans la commande ?</p></div>
<div style="display:flex;gap:16px"><p style="font-family:'Source Serif 4', Georgia, serif;font-size:36px;color:#0A6B78;width:40px">4</p><p style="font-size:28px;line-height:1.4;color:#3A4560;flex:1">Pourquoi <span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">..</span> est-il refusé dans un chemin ?</p></div>
</div>
</div>
<p style="position:absolute;left:128px;bottom:64px;width:1400px;font-size:24px;color:#5A6785">Set-OPS · Formation · Module D2 — Le contrat</p>
<p style="position:absolute;right:128px;bottom:64px;width:120px;text-align:right;font-size:24px;color:#5A6785">10</p>
<aside>Pratique. Clonez le dépôt public de Set-OPS : le validateur est dans scripts, et les deux contrats d’exemple dans exemples/applications. Copiez l’un d’eux dans un dépôt d’essai et vérifiez-le : il doit passer tel quel. Puis faites-le refuser, une faute à la fois. Ajoutez une clé inventée : le validateur la nomme. Retirez le motif {port} de la commande de démarrage : il refuse, parce que Set-OPS ne pourrait plus vous donner votre port. Écrivez une racine qui remonte hors du dépôt : refusée, parce qu’un chemin du contrat ne doit jamais sortir du dépôt. À chaque refus, demandez-vous ce qui se serait passé sur le serveur si la faute était passée.</aside>
</section>