Skip to content

Commit 78b3c88

Browse files
authored
fix: test whether vo='dummyVO' results in lowercase indexname
1 parent 1f7a426 commit 78b3c88

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

diracx-db/tests/opensearch/test_search.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ async def prefilled_db(request):
105105
impl = request.param
106106
async with resolve_fixtures_hack(request, impl) as dummy_opensearch_db:
107107
await dummy_opensearch_db.upsert("dummyvo", 798811211, DOC1)
108-
await dummy_opensearch_db.upsert("dummyvo", 998811211, DOC2)
108+
# the following line tests if the index name is made properly lowercase in case
109+
# the VO has capital letters e.g. "diracAdmin"
110+
await dummy_opensearch_db.upsert("dummyVO", 998811211, DOC2)
109111
await dummy_opensearch_db.upsert("dummyvo", 798811212, DOC3)
110112

111113
# Force a refresh to make sure the documents are available

0 commit comments

Comments
 (0)