Skip to content

Commit

Permalink
fix: TOOLS-2768 changing namespace index-type config results in incor…
Browse files Browse the repository at this point in the history
…rect info call
  • Loading branch information
Jesse Schmidt committed Dec 7, 2023
1 parent dd0d730 commit b4ccdc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/live_cluster/client/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ async def info_set_config_namespace(
self, param, value, namespace, set_=None, subcontext=None
):
new_param = param
if subcontext and subcontext != "storage-engine":
if subcontext and subcontext not in {"storage-engine", "index-type"}:
delimiter = "."

if subcontext == "geo2dsphere-within":
Expand Down
4 changes: 2 additions & 2 deletions test/unit/live_cluster/client/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1278,11 +1278,11 @@ async def test_info_set_config_namespace_success(self):
self.assertEqual(actual, ASINFO_RESPONSE_OK)

actual = await self.node.info_set_config_namespace(
"foo", "bar", "buff", subcontext="index-type"
"mounts-size-limit", "50", "buff", subcontext="index-type"
)

self.info_mock.assert_called_with(
"set-config:context=namespace;id=buff;index-type.foo=bar", self.ip
"set-config:context=namespace;id=buff;mounts-size-limit=50", self.ip
)
self.assertEqual(actual, ASINFO_RESPONSE_OK)

Expand Down

0 comments on commit b4ccdc0

Please sign in to comment.