addNodeToResource(cib, "res1", "node2", "20");
add_xmlnode_to_cibToResource(cib, "res1", "node2", "20");
test(void){    (void)_ha_msg_h_Id;        xmlNodePtr cib = NULL;    cib = readCibXmlFile(CIB_FILENAME);        updateHaNode(cib,newHaNode("node1", CIB_VAL_NODETYPE_NODE));    updateHaNode(cib,newHaNode("node2", CIB_VAL_NODETYPE_NODE));    updateHaNode(cib,newHaNode("node3", CIB_VAL_NODETYPE_PING));    updateHaNode(cib,newHaNode("node4", CIB_VAL_NODETYPE_NODE));    updateResource(cib, newResource("res1", "apache", "my web site", "1"));    updateResource(cib, newResource("res2", "drbd", "data for apache", "2"));    updateResource(cib, newResource("res3", "dhcp", "dhcp", "1"));         addNodeToResource(cib, "res2", "node1", "10");    addNodeToResource(cib, "res2", "node2", "100");    addNodeToResource(cib, "res2", "node3", "5");    addNodeToResource(cib, "res1", "node2", "20");    addNodeToResource(cib, "res3", "node2", "-1");    addNodeToResource(cib, "res3", "node4", "10");        updateConstraint(cib, createSimpleConstraint("con1", CIB_VAL_CONTYPE_AFTER, "res1", "res2"));    updateConstraint(cib, createVariableConstraint("con2", CIB_VAL_CONTYPE_VAR, "res1",						   "KERNEL_RELEASE", "2.4.20-gentoo-r9"));    updateCibStatus(cib, "res2", "1", "node1", CIB_VAL_RESSTATUS_STARTING);    updateCibStatus(cib, "res3", "1", "node4", CIB_VAL_RESSTATUS_RUNNING);    activateCibXml(cib);        updateCibStatus(cib, "res2", "1", "node1", CIB_VAL_RESSTATUS_FAILED);    updateConstraint(cib, createInternalConstraint("res2", "1", "node1", CIB_VAL_CLEARON_STONITH));    updateCibStatus(cib, "res2", "1", "node3", CIB_VAL_RESSTATUS_RUNNING);    updateCibStatus(cib, "res2", "2", "node1", CIB_VAL_RESSTATUS_STARTING);    updateCibStatus(cib, "res1", "1", "node1", CIB_VAL_RESSTATUS_STARTING);    updateHaNode(cib,newHaNode("node2", CIB_VAL_NODETYPE_PING));    updateResource(cib, newResource("res2", "drbd", "apache data", "2"));    activateCibXml(cib);        FNRET(0);}