blob: 4c392d6e77ac3b2f3caa60c05406eafd02d552f4 (
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}
|