From 20b4f9cf0b662de4a7665b2a82593ef0205f5e06 Mon Sep 17 00:00:00 2001 From: JosephKeenan Date: Tue, 23 Nov 2021 12:18:28 +0000 Subject: Allow separate registration of DMIDataPlugin and DmiModelPugin Moved relevant code from NetworkCmProxyDataServiceImp to DmiOperations Split DmiOperations into DMiData... and DMIModelOperations Merged update-operation changes Added tests for error message validation in NetworkCmProxyDataServiceImplSpec Removede @Service from DMIOperations and added @component to DmiDataOperations & DmiModelOperations Verify sync robot test is now hardened Added exitonfailure so robot tests stop after first encountered failed test Issue-ID: CPS-736 Change-Id: I0b40931cc8cd4fc0452328a0a7e0f60e6fc38d0a Signed-off-by: JosephKeenan Signed-off-by: ToineSiebelink Signed-off-by: DylanB95EST --- csit/tests/cps-model-sync/cps-model-sync.robot | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'csit/tests') diff --git a/csit/tests/cps-model-sync/cps-model-sync.robot b/csit/tests/cps-model-sync/cps-model-sync.robot index 340577e2c..31931c16b 100644 --- a/csit/tests/cps-model-sync/cps-model-sync.robot +++ b/csit/tests/cps-model-sync/cps-model-sync.robot @@ -19,7 +19,7 @@ */ *** Settings *** -Documentation NCMP-DMI - Model Sync +Documentation NCMP-DMI - Registration & Model Sync Library Collections Library OperatingSystem @@ -33,7 +33,6 @@ Suite Setup Create Session DMI_URL http://${DMI_HOST}:${DMI_POR ${auth} Basic Y3BzdXNlcjpjcHNyMGNrcyE= ${basePath} /dmi - *** Test Cases *** Register node & sync models ${uri}= Set Variable ${basePath}/v1/inventory/cmHandles @@ -48,11 +47,10 @@ Verify Sync ${jsonData}= Get Binary File ${DATADIR}${/}postModuleRequestBody.json ${response}= POST On Session DMI_URL ${uri} headers=${headers} data=${jsonData} ${responseJson}= Set Variable ${response.json()} - ${moduleCount}= Get length ${responseJson['schemas']} Should Be Equal As Strings ${response.status_code} 200 FOR ${item} IN @{responseJson['schemas']} - IF "${item}.get('moduleName')" == "stores" - Should Be Equal As Strings "${item}.get('revision')" 2020-09-15 - Should Be Equal As Strings "${item}.get('namespace')" org:onap:ccsdk:sample + IF "${item['moduleName']}" == "stores" + Should Be Equal As Strings "${item['revision']}" "2020-09-15" + Should Be Equal As Strings "${item['namespace']}" "org:onap:ccsdk:sample" + END END - END -- cgit 1.2.3-korg