Piotr Kliczewski has uploaded a new change for review. Change subject: yml: parameter type fixes for StoragePool.spmStart ......................................................................
yml: parameter type fixes for StoragePool.spmStart Change-Id: I49072827b8ac04f720d50aca8e5a24b4be7582b7 Signed-off-by: Piotr Kliczewski <[email protected]> --- M lib/api/vdsm-api.yml M tests/vdsmapi_test.py 2 files changed, 17 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/04/59704/1 diff --git a/lib/api/vdsm-api.yml b/lib/api/vdsm-api.yml index a289b7f..670eed7 100644 --- a/lib/api/vdsm-api.yml +++ b/lib/api/vdsm-api.yml @@ -8602,11 +8602,13 @@ - description: Deprecated. The lver of the previous SPM name: prevLver - type: int + type: string + datatype: int - description: This parameter is not used name: enableScsiFencing - type: boolean + type: string + datatype: boolean - defaultvalue: null description: The maximum number of hosts that could be in the cluster @@ -8616,7 +8618,8 @@ - defaultvalue: null description: The expected Storage Domain version of the master domain name: domVersion - type: int + type: string + datatype: int return: description: A task UUID type: *UUID diff --git a/tests/vdsmapi_test.py b/tests/vdsmapi_test.py index bff578c..04297b1 100644 --- a/tests/vdsmapi_test.py +++ b/tests/vdsmapi_test.py @@ -580,3 +580,14 @@ _schema.schema().verify_retval( vdsmapi.MethodRep('Host', 'hostdevListByCaps'), ret) + + def test_start_spm(self): + params = {u'prevLver': u'-1', + u'enableScsiFencing': u'false', + u'storagepoolID': u'636d9c59-f7ba-4115-87a1-44d6563a9610', + u'prevID': -1, + u'domVersion': u'3', + u'maxHostID': 250} + + _schema.schema().verify_args( + vdsmapi.MethodRep('StoragePool', 'spmStart'), params) -- To view, visit https://gerrit.ovirt.org/59704 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I49072827b8ac04f720d50aca8e5a24b4be7582b7 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Piotr Kliczewski <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/admin/lists/[email protected]
