diff --git a/packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/webserver/licenses/licensed_items.py b/packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/webserver/licenses/licensed_items.py index a063983718c..cb20f00be0a 100644 --- a/packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/webserver/licenses/licensed_items.py +++ b/packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/webserver/licenses/licensed_items.py @@ -44,7 +44,7 @@ async def get_licensed_items( @log_decorator(_logger, level=logging.DEBUG) -async def get_purchased_licensed_items_for_wallet( +async def get_available_licensed_items_for_wallet( rabbitmq_rpc_client: RabbitMQRPCClient, *, product_name: ProductName, @@ -56,7 +56,7 @@ async def get_purchased_licensed_items_for_wallet( result: LicensedItemGet = await rabbitmq_rpc_client.request( WEBSERVER_RPC_NAMESPACE, TypeAdapter(RPCMethodName).validate_python( - "get_purchased_licensed_items_for_wallet" + "get_available_licensed_items_for_wallet" ), product_name=product_name, user_id=user_id, diff --git a/services/web/server/src/simcore_service_webserver/licenses/_rpc.py b/services/web/server/src/simcore_service_webserver/licenses/_rpc.py index b9a12e8a3c9..0b5d1b65fe9 100644 --- a/services/web/server/src/simcore_service_webserver/licenses/_rpc.py +++ b/services/web/server/src/simcore_service_webserver/licenses/_rpc.py @@ -46,7 +46,7 @@ async def get_licensed_items( @router.expose(reraise_if_error_type=(NotImplementedError,)) -async def get_purchased_licensed_items_for_wallet( +async def get_available_licensed_items_for_wallet( app: web.Application, *, product_name: ProductName, diff --git a/services/web/server/tests/unit/with_dbs/04/licenses/test_licenses_rpc.py b/services/web/server/tests/unit/with_dbs/04/licenses/test_licenses_rpc.py index 30eb906cd0e..6888711b2da 100644 --- a/services/web/server/tests/unit/with_dbs/04/licenses/test_licenses_rpc.py +++ b/services/web/server/tests/unit/with_dbs/04/licenses/test_licenses_rpc.py @@ -19,8 +19,8 @@ from servicelib.rabbitmq import RabbitMQRPCClient from servicelib.rabbitmq.rpc_interfaces.webserver.licenses.licensed_items import ( checkout_licensed_item_for_wallet, + get_available_licensed_items_for_wallet, get_licensed_items, - get_purchased_licensed_items_for_wallet, release_licensed_item_for_wallet, ) from settings_library.rabbit import RabbitSettings @@ -147,7 +147,7 @@ async def test_license_checkout_workflow( assert result.total == 1 with pytest.raises(NotImplementedError): - await get_purchased_licensed_items_for_wallet( + await get_available_licensed_items_for_wallet( rpc_client, user_id=logged_user["id"], product_name=osparc_product_name,