[Tags] Push
${body} OperatingSystem.Get File ${FLOW}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put Request session ${REST_CONTEXT}/table=0/flow=2 headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CONTEXT}/flow-node-inventory:table=0/flow=2 headers=${HEADERS_XML} data=${body}
Log ${resp.content}
BuiltIn.Should_Match "${resp.status_code}" "20?"
Verify after adding flow config
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/table=0/flow=2?${RFC8040_CONFIG_CONTENT}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/flow-node-inventory:table=0/flow=2?${RFC8040_CONFIG_CONTENT}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ${FLOW_NAME}
Verify after adding flow operational
[Documentation] Verify the flow
${elements}= Create List meter-id flow
- Wait Until Keyword Succeeds 6s 2s Check For Elements At URI ${REST_CONTEXT}/table=0/flow=2?${RFC8040_OPERATIONAL_CONTENT} ${elements}
+ Wait Until Keyword Succeeds 6s 2s Check For Elements At URI ${REST_CONTEXT}/flow-node-inventory:table=0/flow=2?${RFC8040_OPERATIONAL_CONTENT} ${elements}
Remove the flow
[Documentation] Remove the flow
- ${resp} RequestsLibrary.Delete Request session ${REST_CONTEXT}/table=0/flow=2
+ ${resp} RequestsLibrary.Delete Request session ${REST_CONTEXT}/flow-node-inventory:table=0/flow=2
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow
[Documentation] Verify the flow removal
[Tags] Get
- ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/table=0/flow=2?${RFC8040_CONFIG_CONTENT}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/flow-node-inventory:table=0/flow=2?${RFC8040_CONFIG_CONTENT}
Should Not Contain ${resp.content} ${FLOW_NAME}
Delete the meter