summaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2019-08-22 11:03:11 -0500
committerBrian Freeman <bf1936@att.com>2019-08-22 11:03:20 -0500
commit1e830f4827c5bd49be4edd6bb8be27066e271dc5 (patch)
treeb547419668b20ce79e6cb58f2779d1260ee10a42 /robot/resources
parent7cf5e64d66957467566fc1b9787b983d8fc21879 (diff)
Add missing models.robot
Issue-ID: INT-1139 Change-Id: Ib2f2b6370875599304f1516806c27997155cec70 Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/aai/models.robot18
1 files changed, 18 insertions, 0 deletions
diff --git a/robot/resources/aai/models.robot b/robot/resources/aai/models.robot
new file mode 100644
index 00000000..d8de2a40
--- /dev/null
+++ b/robot/resources/aai/models.robot
@@ -0,0 +1,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}