summaryrefslogtreecommitdiffstats
path: root/robot/resources/aai/models.robot
blob: d8de2a40d40ad2d5d23eab9491b247b46127981f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
*** Settings ***
Documentation   Validate A&AI Models

Resource          aai_interface.robot
Library    Collections
Library    ONAPLibrary.AAI    WITH NAME    AAI

*** Variables ***
${INDEX_PATH}     /aai/v16
${MODELS_SPEC_PATH}    /service-design-and-creation/models/

*** Keywords ***
Validate Size Of AAI Models
    [Documentation]    Query and Validates A&AI Models 
    [Arguments]     ${min_size}=100
    ${resp}=    AAI.Run Get Request      ${AAI_FRONTEND_ENDPOINT}    ${INDEX_PATH}${MODELS_SPEC_PATH}   auth=${GLOBAL_AAI_AUTHENTICATION}
    ${count}=   Evaluate    sys.getsizeof(${resp.json()})    sys
    Should Be True    ${count} > ${min_size}