diff --git a/import-material/launchplane/seed-imports/catalog.json b/import-material/launchplane/seed-imports/catalog.json index 252e1db9..37540642 100644 --- a/import-material/launchplane/seed-imports/catalog.json +++ b/import-material/launchplane/seed-imports/catalog.json @@ -834,21 +834,21 @@ }, { "binding_key": "ODOO_ADMIN_PASSWORD", - "secret_class": "testing", + "secret_class": "shared_safe", "allowed_contexts": ["cm", "opw"], - "allowed_instances": ["testing"] + "allowed_instances": ["testing", "prod"] }, { "binding_key": "ODOO_DB_PASSWORD", - "secret_class": "testing", + "secret_class": "shared_safe", "allowed_contexts": ["cm", "opw"], - "allowed_instances": ["testing"] + "allowed_instances": ["testing", "prod"] }, { "binding_key": "ODOO_MASTER_PASSWORD", - "secret_class": "testing", + "secret_class": "shared_safe", "allowed_contexts": ["cm", "opw"], - "allowed_instances": ["testing"] + "allowed_instances": ["testing", "prod"] } ] } diff --git a/tests/test_product_onboarding.py b/tests/test_product_onboarding.py index 7d557999..1ad8fecf 100644 --- a/tests/test_product_onboarding.py +++ b/tests/test_product_onboarding.py @@ -323,6 +323,17 @@ def test_launchplane_seed_import_catalog_validates_contracts(self) -> None: "ODOO_MASTER_PASSWORD", ], ) + odoo_rules = { + rule["binding_key"]: rule + for rule in entry["rules"] + if rule["binding_key"].startswith("ODOO_") + } + for binding_key in ODOO_SECRET_KEYS: + self.assertEqual(odoo_rules[binding_key]["secret_class"], "shared_safe") + self.assertEqual(odoo_rules[binding_key]["allowed_contexts"], ["cm", "opw"]) + self.assertEqual( + odoo_rules[binding_key]["allowed_instances"], ["testing", "prod"] + ) else: self.fail(f"Unexpected seed import kind: {entry['kind']}")