Release image version 1.12.2
[testsuite.git] / robot / resources / aai / models.robot
1 *** Settings ***
2 Documentation     Validate A&AI Models
3
4 Resource          aai_interface.robot
5 Library    Collections
6 Library    ONAPLibrary.AAI    WITH NAME    AAI
7
8 *** Variables ***
9 ${INDEX_PATH}     /aai/v16
10 ${MODELS_SPEC_PATH}    /service-design-and-creation/models/
11
12 *** Keywords ***
13 Validate Size Of AAI Models
14     [Documentation]    Query and Validates A&AI Models
15     [Arguments]     ${min_size}=100
16     ${resp}=    AAI.Run Get Request      ${AAI_FRONTEND_ENDPOINT}    ${INDEX_PATH}${MODELS_SPEC_PATH}   auth=${GLOBAL_AAI_AUTHENTICATION}
17     Should Be Equal As Strings  ${resp.status_code}         200
18     ${count}=   Evaluate    sys.getsizeof(${resp.json()})    sys
19     # ${count} is number of objects in array
20     Should Be True    ${count} > ${min_size}