blob: c8dd4bbd73cf1487fcf032159a56d63b65a30e3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
*** 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}
Should Be Equal As Strings ${resp.status_code} 200
${count}= Evaluate sys.getsizeof(${resp.json()}) sys
# ${count} is number of objects in array
Should Be True ${count} > ${min_size}
|