X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Flib%2Fcli%2Fns_lib.robot;h=254bc6a7087a80cce90c14ef428407b3809e5720;hb=d7b6ab0f6ff6c5870d724dc1cfdc4c3d17eb1e35;hp=8be124ddaa09bcd586f91a4a2e09033fb665b342;hpb=50c11f69610287a65b5e19042eb6a493e69fff64;p=osm%2Fdevops.git diff --git a/robot-systest/lib/cli/ns_lib.robot b/robot-systest/lib/cli/ns_lib.robot index 8be124dd..254bc6a7 100644 --- a/robot-systest/lib/cli/ns_lib.robot +++ b/robot-systest/lib/cli/ns_lib.robot @@ -31,7 +31,6 @@ ${ns_delete_max_wait_time} 1min ${ns_delete_pol_time} 15sec ${nsconfig} - *** Keywords *** Get NS List [Documentation] Get ns instance list @@ -43,6 +42,7 @@ Get NS List Launch Network Services and Return [Arguments] ${vim_name} ${ns_config}='' + [Documentation] Get Configuration parameter to create Newtork service Run Keyword If ${ns_config}=='' Get NS Config ... ELSE Set NS Config ${ns_config} @@ -56,11 +56,15 @@ Launch Network Services and Return Set NS Config [Arguments] ${ns_config} + [Documentation] Set NS Configuration variable + ${nsconfig}= Get Variable Value ${ns_config} '' Set Test Variable ${nsconfig} Get NS Config + [Documentation] Get NS Configuration from Environment Variable + ${nsconfig}= Get Environment Variable NS_CONFIG '' Set Test Variable ${nsconfig} @@ -111,7 +115,7 @@ Check For NS Instance To Configured ${rc} ${stdout}= Run and Return RC and Output osm ns-list --filter name="${ns_name}" log ${stdout} Should Be Equal As Integers ${rc} ${success_return_code} - Should Contain Any ${stdout} configured failed + Should Contain Any ${stdout} READY BROKEN Check For NS Instance For Failure @@ -120,7 +124,7 @@ Check For NS Instance For Failure ${rc} ${stdout}= Run and Return RC and Output osm ns-list --filter name="${ns_name}" log ${stdout} Should Be Equal As Integers ${rc} ${success_return_code} - Should Not Contain ${stdout} failed + Should Not Contain ${stdout} BROKEN Check For NS Instance To Be Delete