Skip to content

Commit 4915107

Browse files
author
Andrei Neagu
committed
renamed
1 parent cb2ae81 commit 4915107

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/dynamic_sidecar/volumes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
@log_decorator(_logger, level=logging.DEBUG)
16-
async def save_volume_state(
16+
async def update_volume_status(
1717
rabbitmq_rpc_client: RabbitMQRPCClient,
1818
*,
1919
node_id: NodeID,
@@ -23,7 +23,7 @@ async def save_volume_state(
2323
rpc_namespace = get_rpc_namespace(node_id)
2424
result = await rabbitmq_rpc_client.request(
2525
rpc_namespace,
26-
TypeAdapter(RPCMethodName).validate_python("save_volume_state"),
26+
TypeAdapter(RPCMethodName).validate_python("update_volume_status"),
2727
status=status,
2828
category=category,
2929
)

services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rest/volumes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ async def put_volume_state(
2626
app: Annotated[FastAPI, Depends(get_application)],
2727
volume_category: Annotated[VolumeCategory, PathParam(..., alias="id")],
2828
) -> None:
29-
await volumes.save_volume_state(app, status=item.status, category=volume_category)
29+
await volumes.update_volume_status(
30+
app, status=item.status, category=volume_category
31+
)

services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rpc/_volumes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@router.expose()
1212
@validate_call(config={"arbitrary_types_allowed": True})
13-
async def save_volume_state(
13+
async def update_volume_status(
1414
app: FastAPI, *, status: VolumeStatus, category: VolumeCategory
1515
) -> None:
16-
await volumes.save_volume_state(app, status=status, category=category)
16+
await volumes.update_volume_status(app, status=status, category=category)

services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/services/volumes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from ..models.shared_store import get_shared_store
55

66

7-
async def save_volume_state(
7+
async def update_volume_status(
88
app: FastAPI, *, status: VolumeStatus, category: VolumeCategory
99
) -> None:
1010
shared_store = get_shared_store(app)

services/dynamic-sidecar/tests/unit/api/rpc/test__volumes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def test_volumes_state_saved_ok(
4242
status=initial_expected_status
4343
)
4444

45-
await volumes.save_volume_state(
45+
await volumes.update_volume_status(
4646
rpc_client,
4747
node_id=settings.DY_SIDECAR_NODE_ID,
4848
status=VolumeStatus.CONTENT_WAS_SAVED,
@@ -66,7 +66,7 @@ async def test_volumes_state_saved_error(
6666
settings: ApplicationSettings = app.state.settings
6767

6868
with pytest.raises(RPCServerError, match="ValidationError"):
69-
await volumes.save_volume_state(
69+
await volumes.update_volume_status(
7070
rpc_client,
7171
node_id=settings.DY_SIDECAR_NODE_ID,
7272
status=VolumeStatus.CONTENT_WAS_SAVED,

0 commit comments

Comments
 (0)