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
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}
Should Contain Match ${flowList} *actions=pop_nsh*
Should Contain Match ${flowList} *actions=push_nsh*
+Check Service Function Types
+ [Documentation] Check that the service function types are updated with the service function names
+ ${elements}= Create List "name":"firewall-1" "name":"dpi-1"
+ Check For Elements 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
[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
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}
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
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}
+
+Check Service Function Types
+ [Documentation] Check that the service function types are updated with the service functions names
+ ${elements}= Create List "name":"firewall-1" "name":"dpi-1"
+ Check For Elements At URI ${SERVICE_FUNCTION_TYPES_URI} ${elements}
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
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}
+Check Service Function Types
+ [Documentation] Check that the service function types are updated with the service function names
+ ${elements}= Create List "name":"firewall-1" "name":"dpi-1" "name":"dpi-2"
+ Check For Elements At URI ${SERVICE_FUNCTION_TYPES_URI} ${elements}
+
End Suite
Clean Datastore
Delete All Sessions