Skip to content

Commit

Permalink
Add support for node storage in cluster config
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiushin committed Jul 12, 2024
1 parent cd77f16 commit 34e334e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions deker_server_adapters/cluster_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Node:
port: str
protocol: str = "http"
id: Optional[str] = None
storage: Optional[str] = None

@cached_property
def url(self) -> Uri:
Expand Down
3 changes: 2 additions & 1 deletion tests/test_cases/test_cluster/test_httpx_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from deker import VArray
from deker.ctx import CTX
from deker.uri import Uri
from pytest_httpx import HTTPXMock

from deker_server_adapters.consts import NON_LEADER_WRITE
Expand All @@ -21,6 +20,7 @@ def test_new_cluster_config_is_applied_after_non_leader_error(
"host": "newhost.owm.io",
"port": 80,
"protocol": "http",
"storage": "file:///tmp/deker_server"
}
],
"raft": [
Expand All @@ -29,6 +29,7 @@ def test_new_cluster_config_is_applied_after_non_leader_error(
"host": "newhost.owm.io",
"port": 80,
"protocol": "http",
"storage": "file:///tmp/deker_server"
}
],
}
Expand Down

0 comments on commit 34e334e

Please sign in to comment.