feat(id-file): enable authn_mappings + team_memberships#594
Conversation
|
Rationale for
|
…geted-sync-cli-v2' into feature/chun-id-targeted-sync-cli-v2 # Conflicts: # datadog_sync/model/team_memberships.py # datadog_sync/utils/import_state.py # datadog_sync/utils/state.py # tests/unit/test_team_memberships_id_file.py
|
Codex Findings |
What
authn_mappingsandteam_membershipsto_ID_FILE_SUPPORTED_TYPESteam_membershipsid-file fan-out inget_resources_by_ids(...)(team_id-> N membership resources)team_memberships(no source-state mutation during fetch)team_memberships.import_resource(_id=...)usage; fan-out is handled byget_resources_by_ids(...)asyncio.run(...)in new tests for Python 3.12 compatibilityWhy
Validation
pytest tests/unit/test_team_memberships_id_file.py tests/unit/test_authn_mappings_id_file.py tests/unit/test_get_resources_by_ids_experiment.py::test_id_file_allowlist_rejects_non_monitors_v1 tests/unit/test_get_resources_by_ids_experiment.py::test_id_file_allowlist_accepts_monitors