robot access to list instead of map 61/95261/2
authorjhh <jorge.hernandez-herrero@att.com>
Mon, 9 Sep 2019 18:59:23 +0000 (13:59 -0500)
committerjhh <jorge.hernandez-herrero@att.com>
Mon, 9 Sep 2019 19:26:11 +0000 (14:26 -0500)
Issue-ID: POLICY-2063
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I4fdff6f2d95af87e36108412a92e8f2936d7f6fd
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
tests/policy/api/api-test.robot

index 959df40..3106078 100644 (file)
@@ -61,7 +61,7 @@ RetrieveMonitoringPolicyTypes
      ${resp}=   Get Request   policy  /policy/api/v1/policytypes/onap.policies.Monitoring     headers=${headers}
      Log    Received response from policy ${resp.text}
      Should Be Equal As Strings    ${resp.status_code}     200
-     Dictionary Should Contain Key    ${resp.json()['policy_types'][0]}  onap.policies.Monitoring
+     List Should Contain Value    ${resp.json()['policy_types']}  onap.policies.Monitoring
 
 
 CreateNewMonitoringPolicy