mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-03 00:08:22 +00:00
refactor(cloudflare): read the community.general pin from requirements, drop the plugin copy
The community.general version now lives only in requirements/requirements.galaxy.yml and requirements/requirements.git.yml, which utils/update/galaxy.py rewrites together. REVIEWED_COMMUNITY_GENERAL in plugins/action/cloudflare_records_converged.py had no runtime use and existed only for a test, so it goes. The module-defaults test compares the resolved collection with the galaxy pin via declared_pins(); the pin-equals-plugin-copy test is removed. A repo-wide lint for test-only production constants follows in its own PR. Related: https://github.com/infinito-nexus/core/pull/3210 🎯 Fix: 92 % 💥 Break: 2 % 💸 Tokens: 100 % ⏱️ Velocity: 100 % 🛡️ Security: 100 % 🏆 Score: 90 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e0c7467083
commit
df36f1ce7e
2 files changed
+4
-9
No files matched your search
@@ -703,23 +703,19 @@ class TestModuleDefaultsMatchThePlugin(unittest.TestCase):
|
||||
):
|
||||
collection = _resolved_community_general()
|
||||
manifest = json.loads(read_text(str(collection / "MANIFEST.json")))
|
||||
pins = dict(
|
||||
declared_pins(PROJECT_ROOT / "requirements" / "requirements.galaxy.yml")
|
||||
)
|
||||
defaults = _argument_spec_defaults(
|
||||
collection / "plugins" / "modules" / "cloudflare_dns.py"
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
manifest["collection_info"]["version"], plugin.REVIEWED_COMMUNITY_GENERAL
|
||||
manifest["collection_info"]["version"], pins["community.general"]
|
||||
)
|
||||
self.assertEqual(defaults["priority"], plugin.MODULE_PRIORITY)
|
||||
self.assertEqual(defaults["proxied"], plugin.MODULE_PROXIED)
|
||||
|
||||
def test_a_new_community_general_pin_forces_a_review_of_the_plugin(self):
|
||||
pins = dict(
|
||||
declared_pins(PROJECT_ROOT / "requirements" / "requirements.galaxy.yml")
|
||||
)
|
||||
|
||||
self.assertEqual(pins["community.general"], plugin.REVIEWED_COMMUNITY_GENERAL)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user