${ns_delete_pol_time} 15sec
${nsconfig}
-
*** Keywords ***
Get NS List
[Documentation] Get ns instance 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}
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}
${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
${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