mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 22:37:29 +00:00
fix(svc-bkp-nfs-2-local): deploy the NFS server with the backup guide
The published Production guide of svc-bkp-nfs-2-local deployed only that role, so the web-app-docs CLI replay (PR 3103 Backup·NFS#0) ran no svc-storage-nfs-server task, nothing created /srv/nfs and the backup unit stopped with 'ERROR: /srv/nfs missing'. guide_companions adds the NFS server to the guide and its replay. 🎯 Fix: 85 % 💥 Break: 5 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 81 🚦 Gate: ⛔ fix 85 % < 90 Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5e84004541
commit
cf21af080b
2 files changed
+14
No files matched your search
@@ -7,6 +7,7 @@ import unittest
|
||||
from pathlib import Path
|
||||
|
||||
from cli.build.docs.readme.generate import generate_readme
|
||||
from utils.cache.files import PROJECT_ROOT
|
||||
from utils.roles.mapping import (
|
||||
ROLE_FILE_TASKS_MAIN,
|
||||
ROLE_FILE_TEMPL_COMPOSE,
|
||||
@@ -89,5 +90,16 @@ class TestServiceProviderCountry(unittest.TestCase):
|
||||
self.assertNotIn("service_provider", block)
|
||||
|
||||
|
||||
class TestGuideCompanions(unittest.TestCase):
|
||||
def test_backup_nfs_guide_deploys_the_export_it_backs_up(self) -> None:
|
||||
role = "svc-bkp-nfs-2-local"
|
||||
text, _ = generate_readme(PROJECT_ROOT / "roles" / role, role)
|
||||
block = text.split("### Production", 1)[1].split("## Credits", 1)[0]
|
||||
apps = re.search(r"^APP=(\S+)$", block, re.MULTILINE)
|
||||
|
||||
self.assertIsNotNone(apps)
|
||||
self.assertEqual(apps.group(1).split(","), [role, "svc-storage-nfs-server"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user