milvus/tests/python_client/milvus_client
Li Yiyang d927b95a03
test: Add RBAC prefix isolation tests (#48381)
## Summary
- Add `TestMilvusClientRbacPrefixIsolation` class to
`test_milvus_client_rbac.py`
- Validates RBAC metadata integrity and permission isolation when
usernames/roles have prefix relationships (e.g. `user1` vs `user11`),
covering issue #47998 and PR #48053
- Single test method with setup/teardown per run, using random prefix
for test data isolation

## Related Issues
issue: #47998
pr: #48053

## Test Report
https://zilliverse.feishu.cn/docx/HaFld6sCyoMz19xOsC3cPCqdncg

## Test plan
- [x] Verified on v2.6.9 (pre-fix): FAIL on #03 DescribeUser
(empty-string role) and #23 ListDatabases
- [x] Verified on master-20260319 (post-fix): all PASS
- [x] Teardown cleans up all test data using `force_drop`, no residual
data

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: lyyyuna <yiyang.li@zilliz.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 11:27:29 +08:00
..
expressions
test_add_field_feature.py test: fix 4 flaky tests across Go and Python (#47907) 2026-02-28 19:03:20 +08:00
test_milvus_client_alias.py
test_milvus_client_alter.py enhance: add async warmup policy support for caching layer (#47627) 2026-03-10 14:45:23 +08:00
test_milvus_client_analyzer.py
test_milvus_client_collection.py enhance: increase default maxVectorFieldNum from 4 to 10 (#47866) 2026-02-26 14:18:47 +08:00
test_milvus_client_compact.py
test_milvus_client_data_integrity.py
test_milvus_client_data_integrity_new.py
test_milvus_client_database.py
test_milvus_client_delete.py test: enable search by ids on null vectors tests for #47065 (#47559) 2026-02-05 14:17:49 +08:00
test_milvus_client_geometry.py
test_milvus_client_highlighter.py test: add entity TTL E2E test cases (#47948) 2026-03-06 14:37:22 +08:00
test_milvus_client_hybrid_search.py test: enable search by ids on null vectors tests for #47065 (#47559) 2026-02-05 14:17:49 +08:00
test_milvus_client_index.py
test_milvus_client_insert.py test: Add scipy.sparse insert tests and hybrid search coverage for add_field (#47885) 2026-02-28 10:57:23 +08:00
test_milvus_client_json_path_index.py
test_milvus_client_minhash.py test: add MinHash DIDO function test suite (#47324) 2026-03-18 17:17:30 +08:00
test_milvus_client_partial_update.py test: add MinHash DIDO function test suite (#47324) 2026-03-18 17:17:30 +08:00
test_milvus_client_partition.py test: Migrate partition key test cases from v1 ORM to v2 MilvusClient (#48182) 2026-03-13 10:39:39 +08:00
test_milvus_client_partition_key.py test: Migrate partition key test cases from v1 ORM to v2 MilvusClient (#48182) 2026-03-13 10:39:39 +08:00
test_milvus_client_partition_key_isolation.py test: Migrate partition key test cases from v1 ORM to v2 MilvusClient (#48182) 2026-03-13 10:39:39 +08:00
test_milvus_client_query.py test: enable search by ids on null vectors tests for #47065 (#47559) 2026-02-05 14:17:49 +08:00
test_milvus_client_rbac.py test: Add RBAC prefix isolation tests (#48381) 2026-03-23 11:27:29 +08:00
test_milvus_client_search.py
test_milvus_client_search_iterator.py test: enable search by ids on null vectors tests for #47065 (#47559) 2026-02-05 14:17:49 +08:00
test_milvus_client_search_order.py test: add e2e test case for search order by (#47616) 2026-02-11 17:22:42 +08:00
test_milvus_client_snapshot.py fix: make snapshot creation idempotent to prevent callback retry loop [DataCoord] (#47580) 2026-02-09 18:51:52 +08:00
test_milvus_client_struct_array.py test: enable search by ids on null vectors tests for #47065 (#47559) 2026-02-05 14:17:49 +08:00
test_milvus_client_struct_array_element_search.py test: add struct array element search tests for phase 2 (#47688) 2026-03-18 17:15:27 +08:00
test_milvus_client_three_valued_logic.py test: add e2e tests for three-valued logic with nullable fields (#47582) 2026-02-06 10:55:51 +08:00
test_milvus_client_timestamptz.py test: restructure timestamptz e2e cases with shared collection (#47670) 2026-02-09 18:55:52 +08:00
test_milvus_client_upsert.py test: enable search by ids on null vectors tests for #47065 (#47559) 2026-02-05 14:17:49 +08:00