mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 11:46:35 +00:00
An inventory group web-app-cst-<name> with applications.<id>.custom: true and
a pinned source {url, version, path} is pulled into roles/ before the play,
read raw (Jinja, Ansible tags and credential URLs refused), placed through a
staging directory under an exclusive lock, and owned by a marker that names
its own directory, so a pull or roles-clean never replaces or removes a
directory it did not place and a failed pull leaves roles/ as it was.
Directory inventories, host lists and non-UTF-8 files behave as Ansible
reads them; generated test deploys pass --skip-pull. make roles-pull,
roles-clean and roles list, INFINITO_EXTRA_MOUNTS for local sources, the
web-app-cst category, the reserved prefix lint and a central
repository_files() that also yields the gitignored custom roles let every
lint scan them like in-tree roles. Supersedes the uncommitted 045 External
Roles draft and reuses its fetch, sync and mount design.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
28 lines
737 B
Python
28 lines
737 B
Python
from __future__ import annotations
|
|
|
|
import unittest
|
|
|
|
from cli.administration.deploy.dedicated import command as dedicated_main
|
|
|
|
|
|
class TestDedicatedMainParser(unittest.TestCase):
|
|
def test_build_parser_has_expected_core_args(self):
|
|
parser = dedicated_main.build_parser()
|
|
|
|
opts = {a.dest for a in parser._actions}
|
|
|
|
self.assertIn("inventory", opts)
|
|
self.assertIn("limit", opts)
|
|
self.assertIn("password_file", opts)
|
|
self.assertIn("skip_build", opts)
|
|
self.assertIn("skip_pull", opts)
|
|
self.assertIn("id", opts)
|
|
self.assertIn("verbose", opts)
|
|
self.assertIn("diff", opts)
|
|
|
|
self.assertNotIn("logs", opts)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|