Convert arguments of CompareStream into String
[integration/test.git] / csit / libraries / Netvirt.robot
1 *** Settings ***
2 Library           RequestsLibrary
3 Variables         ../variables/netvirt/Modules.py
4
5 *** Keywords ***
6 Get Model Dump
7     [Arguments]    ${controller_ip}
8     [Documentation]    Will output a list of mdsal models using ${data_models} list
9     # while feature request in bug 7892 is not done, we will quickly timeout and not retry the model dump get
10     # request. This is because when it's done in a failed cluster state, it could take 20s for the reesponse to
11     # to come back as the internal clustering times out waiting for a leader which will not come. When bug 7892
12     # is resolved, we can remove the timeout=1 and max_retries=0, but likely have to modify the request itself to
13     # pass a timeout to restconf
14     Create Session    model_dump_session    http://${controller_ip}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}    timeout=1    max_retries=0
15     : FOR    ${model}    IN    @{data_models}
16     \    ${resp}=    RequestsLibrary.Get Request    model_dump_session    restconf/${model}
17     \    Log    ${resp.status_code}
18     \    ${pretty_output}=    To Json    ${resp.content}    pretty_print=True
19     \    Log    ${pretty_output}