# BR-CFG-09

Quand un catalogue s'appelle generic, us, eu ou fr sans préfixe du catalogue, alors il est refusé avec la référence du catalogue qui le remplace (catalog:piighost/generic).

Défini dans [Configurer un pipeline par fichier, catalogue et ligne de commande](https://docs.piighost.dev/fr/domain/operations/configuration-and-catalog/#br-cfg-09).

## Où vit la règle

- [`RegexDetectorConfig._catalogs_are_refs()`](https://github.com/Athroniaeth/piighost/blob/master/src/piighost/config/models/detector.py#L56)

## Tests directs

Aucun test n'appelle ce code directement.

## Tests indirects

- [`tests/config/test_detectors.py::TestRegexCatalogs::test_a_1x_hub_reference_is_still_accepted`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_detectors.py#L41)
- [`tests/config/test_detectors.py::TestRegexCatalogs::test_a_catalog_is_pulled_at_build`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_detectors.py#L69)
- [`tests/config/test_detectors.py::TestRegexCatalogs::test_a_catalog_reference_is_accepted`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_detectors.py#L34)
- [`tests/config/test_detectors.py::TestRegexCatalogs::test_a_malformed_reference_is_rejected`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_detectors.py#L57)
- [`tests/config/test_detectors.py::TestRegexCatalogs::test_a_removed_catalog_name_points_to_its_catalog_group`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_detectors.py#L49)
- [`tests/config/test_detectors.py::TestRegexCatalogs::test_catalogs_merge_in_order_then_inline_patterns`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_detectors.py#L78)
- [`tests/config/test_detectors.py::TestRegexCatalogs::test_neither_patterns_nor_catalogs_is_rejected`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_detectors.py#L63)
- [`tests/config/test_models.py::TestDetectorConfig::test_composite_builds_from_nested_detectors`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_models.py#L49)
- [`tests/config/test_models.py::TestDetectorConfig::test_regex_builds_a_regex_detector`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_models.py#L42)
- [`tests/config/test_models.py::TestDetectorConfig::test_uncompilable_pattern_is_rejected`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_models.py#L68)
- [`tests/config/test_models.py::TestDetectorConfig::test_unknown_key_is_rejected`](https://github.com/Athroniaeth/piighost/blob/master/tests/config/test_models.py#L58)

## Utilisé par

Aucun appelant trouvé.

Lu dans le graphe du code que construit graphify, aux emplacements que donne la documentation métier.
