- Remove_Directory ${ExpDir}
- Remove_Directory ${ActDir}
- Create_Directory ${ExpDir}
- Create_Directory ${ActDir}
- Setup_Pcep_Operations
-
-Compare_Topology
- [Arguments] ${expected} ${name}
- [Documentation] Get current pcep-topology as json, normalize both expected and actual json.
- ... Save normalized jsons to files for later processing.
- ... Error codes and normalized jsons should match exactly.
- ${normexp}= Hsf_Json ${expected}
- Log ${normexp}
- Create_File ${ExpDir}${/}${name} ${normexp}
- ${resp}= RequestsLibrary.Get ses topology/pcep-topology
- Log ${resp}
- Log ${resp.text}
- ${normresp}= Hsf_Json ${resp.text}
- Log ${normresp}
- Create_File ${ActDir}${/}${name} ${normresp}
- Should_Be_Equal_As_Strings ${resp.status_code} 200
- Should_Be_Equal ${normresp} ${normexp}