Create test error callout and verify associations

Resolves  openbmc/openbmc-test-automation#806

Change-Id: I10030ce15df46a1611a1c47c08b5bc7b778636ef
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_association.robot b/tests/test_association.robot
index ba56890..478f17c 100755
--- a/tests/test_association.robot
+++ b/tests/test_association.robot
@@ -46,6 +46,30 @@
     Should Contain  ${jsondata}["data"]["AdditionalData"]}  0x0DEADEAD
 
 
+Create Test Error Callout And Verify Associations
+    [Documentation]  Create test error callout and verify associations.
+    [Tags]  Create_Test_Error_Callout_And_Verify_Associations
+
+    # Test error log association entry example:
+    # "associations": [
+    #   [
+    #        "callout",
+    #        "fault",
+    #        "/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0"
+    #   ]
+    # ]
+
+    Create Test Error With Callout
+    ${elog_entry}=  Get Elog URL List
+    ${resp}=  OpenBMC Get Request  ${elog_entry[0]}
+    ${jsondata}=  To JSON  ${resp.content}
+    List Should Contain Value  ${jsondata}["data"]["associations"]}  callout
+    List Should Contain Value  ${jsondata}["data"]["associations"]}  fault
+    List Should Contain Value
+    ...  ${jsondata}["data"]["associations"]}
+    ...  /xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0
+
+
 Create Test Error Callout And Delete
     [Documentation]  Create Test Error Callout And Delete.
     [Tags]  Create_Test_Error_Callout_And_Delete