Should Contain Match ${flowList} *actions=pop_nsh*
Should Contain Match ${flowList} *actions=push_nsh*
-Check Service Function Types
+Check Service Function Types Added
[Arguments] ${elements}
[Documentation] Check that the service function types are updated with the service function names
Check For Elements At URI ${SERVICE_FUNCTION_TYPES_URI} ${elements}
+Check Service Function Types Removed
+ [Arguments] ${elements}
+ [Documentation] Check that the service function names are removed from the service function types
+ Check For Elements Not At URI ${SERVICE_FUNCTION_TYPES_URI} ${elements}
+
Switch Ips In Json Files
[Arguments] ${json_dir} ${container_names}
${normalized_dir}= OperatingSystem.Normalize Path ${json_dir}/*.json
Add Elements To URI From File ${SERVICE_FORWARDERS_URI} ${SERVICE_FORWARDERS_FILE}
Add Elements To URI From File ${SERVICE_NODES_URI} ${SERVICE_NODES_FILE}
Add Elements To URI From File ${SERVICE_FUNCTIONS_URI} ${SERVICE_FUNCTIONS_FILE}
- Wait Until Keyword Succeeds 60s 2s Check Service Function Types ${SF_NAMES}
+ Wait Until Keyword Succeeds 60s 2s Check Service Function Types Added ${SF_NAMES}
Add Elements To URI From File ${SERVICE_CHAINS_URI} ${SERVICE_CHAINS_FILE}
Add Elements To URI From File ${SERVICE_METADATA_URI} ${SERVICE_METADATA_FILE}
Add Elements To URI From File ${SERVICE_FUNCTION_PATHS_URI} ${SERVICE_FUNCTION_PATHS_FILE}
Remove All Elements At URI ${SERVICE_CLASSIFIERS_URI}
Remove All Elements At URI ${SERVICE_FUNCTION_ACLS_URI}
Remove All Elements At URI ${SERVICE_FUNCTIONS_URI}
+ Wait Until Keyword Succeeds 60s 2s Check Service Function Types Removed ${SF_NAMES}
Remove All Elements At URI ${SERVICE_FORWARDERS_URI}
Remove All Elements At URI ${SERVICE_NODES_URI}
Remove All Elements At URI ${SERVICE_CHAINS_URI}
[Documentation] Prepare Basic Test Environment. Logical SFF
Add Elements To URI From File ${SERVICE_FORWARDERS_URI} ${SERVICE_FORWARDERS_FILE}
Add Elements To URI From File ${SERVICE_FUNCTIONS_URI} ${SERVICE_FUNCTIONS_FILE}
- Wait Until Keyword Succeeds 60s 2s Check Service Function Types ${SF_NAMES}
+ Wait Until Keyword Succeeds 60s 2s Check Service Function Types Added ${SF_NAMES}
Add Elements To URI From File ${SERVICE_CHAINS_URI} ${SERVICE_CHAINS_FILE}
Add Elements To URI From File ${SERVICE_FUNCTION_PATHS_URI} ${SERVICE_FUNCTION_PATHS_FILE}
Remove All Elements If Exist ${SERVICE_CHAINS_URI}
Remove All Elements If Exist ${SERVICE_FORWARDERS_URI}
Remove All Elements If Exist ${SERVICE_FUNCTIONS_URI}
+ Wait Until Keyword Succeeds 60s 2s Check Service Function Types Removed ${SF_NAMES}
Create All Elements
[Documentation] Delete all provisioned elements
Add Elements To URI From File ${SERVICE_FUNCTIONS_URI} ${SERVICE_FUNCTIONS_FILE}
- Wait Until Keyword Succeeds 60s 2s Check Service Function Types ${SF_NAMES}
+ Wait Until Keyword Succeeds 60s 2s Check Service Function Types Added ${SF_NAMES}
Add Elements To URI From File ${SERVICE_FORWARDERS_URI} ${SERVICE_FORWARDERS_FILE}
Add Elements To URI From File ${SERVICE_CHAINS_URI} ${SERVICE_CHAINS_FILE}
Add Elements To URI From File ${SERVICE_FUNCTION_PATHS_URI} ${SERVICE_FUNCTION_PATHS_FILE}
Add Elements To URI From File ${SERVICE_NODES_URI} ${SERVICE_NODES_FILE}
Add Elements To URI From File ${SERVICE_FUNCTION_TYPES_URI} ${SERVICE_FUNCTION_TYPES_FILE}
Add Elements To URI From File ${SERVICE_FUNCTIONS_URI} ${SERVICE_FUNCTIONS_FILE}
- Wait Until Keyword Succeeds 60s 2s Check Service Function Types ${SF_NAMES}
+ Wait Until Keyword Succeeds 60s 2s Check Service Function Types Added ${SF_NAMES}
Add Elements To URI From File ${SERVICE_CHAINS_URI} ${SERVICE_CHAINS_FILE}
Add Elements To URI From File ${SERVICE_FUNCTION_PATHS_URI} ${SERVICE_FUNCTION_PATHS_FILE}
Clean Datastore
[Documentation] Remove All Elements
Remove All Elements If Exist ${SERVICE_FUNCTIONS_URI}
+ Wait Until Keyword Succeeds 60s 2s Check Service Function Types Removed ${SF_NAMES}
Remove All Elements If Exist ${SERVICE_FORWARDERS_URI}
Remove All Elements If Exist ${SERVICE_NODES_URI}
Remove All Elements If Exist ${SERVICE_CHAINS_URI}
Add Elements To URI From File ${SERVICE_FORWARDERS_URI} ${SERVICE_FORWARDERS_FILE}
Add Elements To URI From File ${SERVICE_NODES_URI} ${SERVICE_NODES_FILE}
Add Elements To URI From File ${SERVICE_FUNCTIONS_URI} ${SERVICE_FUNCTIONS_FILE}
- Wait Until Keyword Succeeds 60s 2s Check Service Function Types ${SERVICE_FUNCTION_NAMES}
+ Wait Until Keyword Succeeds 60s 2s Check Service Function Types Added ${SERVICE_FUNCTION_NAMES}
Add Elements To URI From File ${SERVICE_CHAINS_URI} ${SERVICE_CHAINS_FILE}
Add Elements To URI From File ${SERVICE_FUNCTION_PATHS_URI} ${SERVICE_FUNCTION_PATHS_FILE}
Clean Datastore After Tests
[Documentation] Clean All Items In Datastore After Tests
Remove All Elements At URI ${SERVICE_FUNCTIONS_URI}
+ Wait Until Keyword Succeeds 60s 2s Check Service Function Types Removed ${SERVICE_FUNCTION_NAMES}
Remove All Elements At URI ${SERVICE_FORWARDERS_URI}
Remove All Elements At URI ${SERVICE_NODES_URI}
Remove All Elements At URI ${SERVICE_CHAINS_URI}