2 Documentation Test suite to verify AD-SAL based Northbound is OK
3 Suite Setup Create Session session http://${CONTROLLER}:${RESTPORT} auth=${AUTH} headers=${HEADERS}
4 Suite Teardown Delete All Sessions
6 Library RequestsLibrary
7 Library ../../../libraries/Common.py
8 Variables ../../../variables/Variables.py
9 Variables ../../../variables/lispflowmapping/Variables.py
10 Resource ../../../libraries/Utils.txt
13 ${NB_KEY} /lispflowmapping/nb/v2/default/key
14 ${NB_MAPPING} /lispflowmapping/nb/v2/default/mapping
19 [Documentation] Add key for mapping registration
20 ${resp} RequestsLibrary.Put session ${NB_KEY} ${add_key}
22 Should Be Equal As Strings ${resp.status_code} 200
25 [Documentation] Add mapping to database
26 ${resp} RequestsLibrary.Put session ${NB_MAPPING} ${add_mapping}
28 Should Be Equal As Strings ${resp.status_code} 200
31 [Documentation] Get a mapping from the database
32 ${resp} RequestsLibrary.Get session ${NB_MAPPING}/0/1/${EID_V4}/32
34 Should Be Equal As Strings ${resp.status_code} 200
35 Dictionaries Should Be Equal ${resp.json()} ${get_mapping}