Add aai model size post install check 46/95746/2
authorBrian Freeman <bf1936@att.com>
Mon, 16 Sep 2019 12:50:06 +0000 (07:50 -0500)
committerDaniel Rose <dr695h@att.com>
Mon, 16 Sep 2019 14:41:28 +0000 (14:41 +0000)
Issue-ID: INT-1139
Change-Id: I95a63b7ab3ea29433e8f24cb1839349de7587faa
Signed-off-by: Brian Freeman <bf1936@att.com>
robot/resources/aai/models.robot
robot/testsuites/post-install-tests.robot

index d8de2a4..4c392d6 100644 (file)
@@ -14,5 +14,7 @@ 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}
index c11fd7b..06636b7 100644 (file)
@@ -6,6 +6,7 @@ Documentation     Testing Installation
 Test Timeout      10 second
 
 Resource          ../resources/mr_interface.robot
+Resource          ../resources/aai/models.robot
 
 *** Test Cases ***
 
@@ -16,4 +17,5 @@ Basic DMAAP Message Router ACL Update Test
 
 Basic AAI Service Design Models Size Test
     [Tags]   aaimodels   postinstall
+    [Timeout]   60
     Validate Size Of AAI Models